uann/parserRule.txt

9 lines
240 B
Text
Raw Normal View History

2023-09-29 11:31:28 +08:00
single = "(" expr ")" | int
args = single , args | single
callees = "(" args ")" | "(" ")"
facAux = callees facAux | callees
single facAux | single
fac = single facAux | single
2023-09-22 01:45:47 +08:00
term = fac | fac (MUL | DIV) fac
expr = term (ADD | SUB) term