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

27 lines
542 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#void reduction
addExpAtom#void reduction
relExpAtom#void reduction
eqExpAtom#void reduction
assignExpAtom#void reduction
argVarDecl#void error