📄 7.2.2.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='7.2.1b.htm'" ></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.2.2b.htm'" ></td>
</tr>
</table>
<p><br>
<br>
<font class="title2"><b>7.2.2 保留作用域信息</b></font> </p>
<table>
<tr>
<td> </td>
<td class="content">
<p>允许嵌套过程的语言,对于每一个过程,其中局部名字的相对地址计算可以采用图7.4的方法。而当遇到一个嵌入的过程说明时,则应当暂停包围此过程的外围过程说明语句的处理。这种方法可以通过对如下的方法增加有关语义动作来体现。 </p>
</td>
</tr>
</table>
<table>
<tr>
<td width=200> </td>
<td class="content">
P→D <br>
D→D;D |<b>id</b> :T|<b>proc id</b>;D;S (7.2)
</td>
</tr>
</table>
<table>
<tr>
<td> </td>
<td class="content">
<p>由于我们当前的目标是考虑说明语句,因而对其中产生语句的非终结符号S及产生类型的非终结符号T的产生式我们没有进一步给出。与图7.4中相同,T有两个综合属性type和width。
</p>
</td>
</tr>
</table>
<center><img src="7_5.gif"> </center>
<p><br>
</p>
<table align="right" width="300">
<tr>
<td><img src="../images/previous.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.2.1b.htm'" ></td>
<td><img src="../images/next.gif" onmouseover="javascript:style.cursor='hand'"
onclick="vbscript:window.location.href='7.2.2b.htm'" ></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -