Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
LeeThanh
/
My-Chat
like
2
Running
App
Files
Files
Community
13d9b06
My-Chat
/
grammars
/
arithmetic.gbnf
LeeThanh
Upload All
0eeee8c
8 months ago
raw
history
blame
No virus
177 Bytes
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]*