QP_ANmixtao / grammars /simple_arithmetic.gbnf
zhengr's picture
First version
19dc0f3
raw
history blame contribute delete
160 Bytes
root ::= (expr "=" ws term "\n")+
expr ::= term ([-+*/] term)*
term ::= num | "(" ws expr ")" ws
num ::= [0-9]+ ws
ws ::= [ \t\n]*
# this is a comment