2024-compiler/tests/10_编译错误示例/grammar_diff.html

75 lines
10 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
table.diff {font-family:Courier; border:medium;}
.diff_header {background-color:#e0e0e0}
td.diff_header {text-align:right}
.diff_next {background-color:#c0c0c0}
.diff_add {background-color:#aaffaa}
.diff_chg {background-color:#ffff77}
.diff_sub {background-color:#ffaaaa}
</style>
</head>
<body>
<table class="diff" id="difflib_chg_to10__top"
cellspacing="0" cellpadding="0" rules="groups" >
<colgroup></colgroup> <colgroup></colgroup> <colgroup></colgroup>
<colgroup></colgroup> <colgroup></colgroup> <colgroup></colgroup>
<tbody>
<tr><td class="diff_next" id="difflib_chg_to10__0"><a href="#difflib_chg_to10__top">t</a></td><td class="diff_header" id="from10_1">1</td><td nowrap="nowrap">program#int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"><a href="#difflib_chg_to10__top">t</a></td><td class="diff_header" id="to10_1">1</td><td nowrap="nowrap">program#int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_2">2</td><td nowrap="nowrap">compUnit#int&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_2">2</td><td nowrap="nowrap">compUnit#int&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_3">3</td><td nowrap="nowrap">decl#int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_3">3</td><td nowrap="nowrap">decl#int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_4">4</td><td nowrap="nowrap">varDecl#int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_4">4</td><td nowrap="nowrap">varDecl#int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_5">5</td><td nowrap="nowrap">bType#int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_5">5</td><td nowrap="nowrap">bType#int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_6">6</td><td nowrap="nowrap">int#int&nbsp;move</td><td class="diff_next"></td><td class="diff_header" id="to10_6">6</td><td nowrap="nowrap">int#int&nbsp;move<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_7">7</td><td nowrap="nowrap">varDef#IDN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_7">7</td><td nowrap="nowrap">varDef#IDN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_8">8</td><td nowrap="nowrap">IDN#IDN&nbsp;move</td><td class="diff_next"></td><td class="diff_header" id="to10_8">8</td><td nowrap="nowrap">IDN#IDN&nbsp;move<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_9">9</td><td nowrap="nowrap">argVarDef#=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_9">9</td><td nowrap="nowrap">argVarDef#=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_10">10</td><td nowrap="nowrap">=#=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move</td><td class="diff_next"></td><td class="diff_header" id="to10_10">10</td><td nowrap="nowrap">=#=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_11">11</td><td nowrap="nowrap">initVal#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_11">11</td><td nowrap="nowrap">initVal#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_12">12</td><td nowrap="nowrap">exp#INT&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_12">12</td><td nowrap="nowrap">exp#INT&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_13">13</td><td nowrap="nowrap">assignExp#INT&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_13">13</td><td nowrap="nowrap">assignExp#INT&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_14">14</td><td nowrap="nowrap">eqExp#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_14">14</td><td nowrap="nowrap">eqExp#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_15">15</td><td nowrap="nowrap">relExp#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_15">15</td><td nowrap="nowrap">relExp#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_16">16</td><td nowrap="nowrap">addExp#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_16">16</td><td nowrap="nowrap">addExp#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_17">17</td><td nowrap="nowrap">mulExp#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_17">17</td><td nowrap="nowrap">mulExp#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_18">18</td><td nowrap="nowrap">unaryExp#INT&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_18">18</td><td nowrap="nowrap">unaryExp#INT&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_19">19</td><td nowrap="nowrap">number#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to10_19">19</td><td nowrap="nowrap">number#INT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_20">20</td><td nowrap="nowrap">INT#INT&nbsp;move</td><td class="diff_next"></td><td class="diff_header" id="to10_20">20</td><td nowrap="nowrap">INT#INT&nbsp;move<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_21">21</td><td nowrap="nowrap">mulExpAtom#void&nbsp;r<span class="diff_chg">educti</span>o<span class="diff_chg">n</span></td><td class="diff_next"></td><td class="diff_header" id="to10_21">21</td><td nowrap="nowrap">mulExpAtom#void&nbsp;<span class="diff_add">e</span>r<span class="diff_chg">r</span>o<span class="diff_chg">r
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_22">22</td><td nowrap="nowrap"><span class="diff_sub">addExpAtom#void&nbsp;reduction</span></td><td class="diff_next"></td><td class="diff_header"></td><td nowrap="nowrap"></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_23">23</td><td nowrap="nowrap"><span class="diff_sub">relExpAtom#void&nbsp;reduction</span></td><td class="diff_next"></td><td class="diff_header"></td><td nowrap="nowrap"></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_24">24</td><td nowrap="nowrap"><span class="diff_sub">eqExpAtom#void&nbsp;&nbsp;reduction</span></td><td class="diff_next"></td><td class="diff_header"></td><td nowrap="nowrap"></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_25">25</td><td nowrap="nowrap"><span class="diff_sub">assignExpAtom#void&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</span></td><td class="diff_next"></td><td class="diff_header"></td><td nowrap="nowrap"></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from10_26">26</td><td nowrap="nowrap"><span class="diff_sub">argVarDecl#void&nbsp;error</span></td><td class="diff_next"></td><td class="diff_header"></td><td nowrap="nowrap"></td></tr>
</tbody>
</table>
<table class="diff" summary="Legends">
<tr> <th colspan="2"> Legends </th> </tr>
<tr> <td> <table border="" summary="Colors">
<tr><th> Colors </th> </tr>
<tr><td class="diff_add">&nbsp;Added&nbsp;</td></tr>
<tr><td class="diff_chg">Changed</td> </tr>
<tr><td class="diff_sub">Deleted</td> </tr>
</table></td>
<td> <table border="" summary="Links">
<tr><th colspan="2"> Links </th> </tr>
<tr><td>(f)irst change</td> </tr>
<tr><td>(n)ext change</td> </tr>
<tr><td>(t)op</td> </tr>
</table></td> </tr>
</table>
</body>
</html>