📄 5.1.3b.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='5.1.3.htm'"></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='5.1.4.htm'"></img></td>
</tr>
</table>
<br><br>
<table><tr><td>    </td>
<td class="content">
<p>
图5.3表示的是语句<b>real</b> <b>id1</b>,<b>id2</b>,<b>id3</b>的分析树。三个L结点的L.in值分别给出了标识符<b>id1</b>,<b>id2</b>,和
<b>id3</b>的类型。这些值是通过计算根结点的左子结点的属性值T.type,,然后自顶向下在根结点的右子树中计算三个L结点的L.in来确定的。在每一个L结点处,我们调用过程addtype,在符号表中插入信息,说明该结点的右子结点上的标识符的类型为
<b>real</b>
</p>
</td>
</tr>
</table>
<p align=center><img src="t53.gif" width="357" height="269"></p>
<p align=center>图 5.3  在每一个L节点处都带有继承属性in的分析树</p>
<br>
<table align=right width=300>
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='5.1.3.htm'"></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'" onclick="vbscript:window.location.href='5.1.4.htm'"></img></td>
</tr>
</table>
</BODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -