uann/parserRule.txt

6 lines
143 B
Text
Raw Normal View History

2023-09-22 01:45:47 +08:00
single = "(" expr ")" | int
fac1 = applier "(" int ")" | single
applier = expr
term = fac | fac (MUL | DIV) fac
expr = term (ADD | SUB) term