"lightx2v/vscode:/vscode.git/clone" did not exist on "3c4648537bc4e5ac6e4bc1f7956b2b3ea7509c06"
arithmetic.gbnf 177 Bytes
Newer Older
chenpangpang's avatar
chenpangpang committed
1
2
3
4
5
6
root  ::= (expr "=" ws term "\n")+
expr  ::= term ([-+*/] term)*
term  ::= ident | num | "(" ws expr ")" ws
ident ::= [a-z] [a-z0-9_]* ws
num   ::= [0-9]+ ws
ws    ::= [ \t\n]*