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

77 lines
11 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_to8__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_to8__0"><a href="#difflib_chg_to8__top">t</a></td><td class="diff_header" id="from8_1">1</td><td nowrap="nowrap">program#int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"><a href="#difflib_chg_to8__top">t</a></td><td class="diff_header" id="to8_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="from8_2">2</td><td nowrap="nowrap">compUnit#int&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_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="from8_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="to8_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="from8_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="to8_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="from8_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="to8_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="from8_6">6</td><td nowrap="nowrap">int#int&nbsp;move</td><td class="diff_next"></td><td class="diff_header" id="to8_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="from8_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="to8_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="from8_8">8</td><td nowrap="nowrap">IDN#IDN&nbsp;move</td><td class="diff_next"></td><td class="diff_header" id="to8_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="from8_9">9</td><td nowrap="nowrap">argVarDef#=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_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="from8_10">10</td><td nowrap="nowrap">=#=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move</td><td class="diff_next"></td><td class="diff_header" id="to8_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="from8_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="to8_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="from8_12">12</td><td nowrap="nowrap">exp#INT&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_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="from8_13">13</td><td nowrap="nowrap">assignExp#INT&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_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="from8_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="to8_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="from8_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="to8_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="from8_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="to8_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="from8_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="to8_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="from8_18">18</td><td nowrap="nowrap">unaryExp#INT&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_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="from8_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="to8_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="from8_20">20</td><td nowrap="nowrap">INT#INT&nbsp;move</td><td class="diff_next"></td><td class="diff_header" id="to8_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="from8_21">21</td><td nowrap="nowrap">mulExpAtom#,&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_21">21</td><td nowrap="nowrap">mulExpAtom#,&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from8_22">22</td><td nowrap="nowrap">addExpAtom#,&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_22">22</td><td nowrap="nowrap">addExpAtom#,&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from8_23">23</td><td nowrap="nowrap">relExpAtom#,&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_23">23</td><td nowrap="nowrap">relExpAtom#,&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from8_24">24</td><td nowrap="nowrap">eqExpAtom#,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_24">24</td><td nowrap="nowrap">eqExpAtom#,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from8_25">25</td><td nowrap="nowrap">assignExpAtom#,&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_25">25</td><td nowrap="nowrap">assignExpAtom#,&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from8_26">26</td><td nowrap="nowrap">argVarDecl#,&nbsp;&nbsp;&nbsp;&nbsp;reduction</td><td class="diff_next"></td><td class="diff_header" id="to8_26">26</td><td nowrap="nowrap">argVarDecl#,&nbsp;&nbsp;&nbsp;&nbsp;reduction<span class="diff_add">
</span></td></tr>
<tr><td class="diff_next"></td><td class="diff_header" id="from8_27">27</td><td nowrap="nowrap">,#,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move</td><td class="diff_next"></td><td class="diff_header" id="to8_27">27</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="from8_28">28</td><td nowrap="nowrap">varDef#<span class="diff_chg">INT</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error</td><td class="diff_next"></td><td class="diff_header" id="to8_28">28</td><td nowrap="nowrap">varDef#<span class="diff_chg">=&nbsp;&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;error<span class="diff_add">
</span></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>