1
0

arithmetic.gbnf 177 B

123456
  1. root ::= (expr "=" ws term "\n")+
  2. expr ::= term ([-+*/] term)*
  3. term ::= ident | num | "(" ws expr ")" ws
  4. ident ::= [a-z] [a-z0-9_]* ws
  5. num ::= [0-9]+ ws
  6. ws ::= [ \t\n]*