7 lines
160 B
Text
7 lines
160 B
Text
root ::= (expr "=" ws term "\n")+
|
|
expr ::= term ([-+*/] term)*
|
|
term ::= num | "(" ws expr ")" ws
|
|
num ::= [0-9]+ ws
|
|
ws ::= [ \t\n]*
|
|
# this is a comment
|
|
|