clo/parserRule.txt
2023-09-29 11:31:28 +08:00

8 lines
240 B
Text

single = "(" expr ")" | int
args = single , args | single
callees = "(" args ")" | "(" ")"
facAux = callees facAux | callees
single facAux | single
fac = single facAux | single
term = fac | fac (MUL | DIV) fac
expr = term (ADD | SUB) term