2024-compiler/tests/08_编译错误示例/08_grammar.txt

29 lines
554 B
Plaintext

program#int reduction
compUnit#int reduction
decl#int reduction
varDecl#int reduction
bType#int reduction
int#int move
varDef#IDN reduction
IDN#IDN move
argVarDef#= reduction
=#= move
initVal#INT reduction
exp#INT reduction
assignExp#INT reduction
eqExp#INT reduction
relExp#INT reduction
addExp#INT reduction
mulExp#INT reduction
unaryExp#INT reduction
number#INT reduction
INT#INT move
mulExpAtom#, reduction
addExpAtom#, reduction
relExpAtom#, reduction
eqExpAtom#, reduction
assignExpAtom#, reduction
argVarDecl#, reduction
,#, move
varDef#INT error