Exp →LP Exp RP | MINUS Exp | ID LP Args RP | INT | FLOAT Args → Exp COMMA Args | Exp给出该文法预测分析表
时间: 2023-06-11 09:07:22 浏览: 89
+----+--------+--------+--------+------+------+
| | ID | INT | FLOAT | MINUS | RP |
+----+--------+--------+--------+------+------+
|Exp | ID LP | INT | FLOAT | MINUS Exp | |
| | | | | LP | |
+----+--------+--------+--------+------+------+
|LP | | LP | LP | | |
+----+--------+--------+--------+------+------+
|RP | | RP | RP | | RP |
+----+--------+--------+--------+------+------+
|Args| ID LP | INT | FLOAT | MINUS Exp | |
| | | | | LP | |
+----+--------+--------+--------+------+------+
|COMMA| | | | , | |
+----+--------+--------+--------+------+------+
注意:表格中空格表示无法匹配,需要进行错误处理。
阅读全文