📄 4.7.4.1b.htm
字号:
<html>
<head>
<title>编译原理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link type="text/css" rel="stylesheet" href="../css/specification.css">
</head>
<BODY>
<table align=right width=300>
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='4.7.4.1.htm'"></img></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='4.7.4.1c.htm'"></img></td>
</tr>
</table>
<br><br>
<table><tr><td>    </td>
<td class="content">
<p>
<font class="example">例4.19 </font>再次考虑文法(4.18),它的转移函数go的图如图4.23所示。正如我们前面提到的,有三对项目集可被合并。I<sub>3</sub>和I<sub>6</sub>合并,用I<sub>36</sub>代替:<br>
I<sub>36</sub>:C→c·C,c/d/$ <br>
C→·cC,c/d/$ <br>
C→·d,c/d/$ <br>
C→·d,c/d/$<br>
<p>I<sub>4</sub>和I<sub>7</sub>合并用I<sub>47</sub>代替:</p>
I<sub>47</sub>:C→d·,c/d/$ <br>
<p>I<sub>8</sub>和I<sub>9</sub>合并,用I<sub>89</sub>代替:<br>
I<sub>89</sub>:C→cC·,c/d/$
</p>
<p>文法(4.18)的LALR分析表如表4.14所示。
</p>
</td></tr></table>
<center><img src="images/table4.14.gif" width="600" height="377"></center>
</td></tr></table>
<br>
<table align=right width=300>
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='4.7.4.1.htm'"></img></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='4.7.4.1c.htm'"></img></td>
</tr>
</table>
</BODY>
</html>
<html><script language="JavaScript">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -