NETO_AI / grammars /simple_arithmetic.gbnf
Applesam4's picture
Upload 299 files
321be7f verified
raw
history blame
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