File size: 160 Bytes
afd8fc6
 
 
 
 
 
 
1
2
3
4
5
6
7
8
root  ::= (expr "=" ws term "\n")+
expr  ::= term ([-+*/] term)*
term  ::= num | "(" ws expr ")" ws
num   ::= [0-9]+ ws
ws    ::= [ \t\n]*
# this is a comment