text-generation-webui / grammars /simple_arithmetic.gbnf
Neu256's picture
Upload 7 files
afd8fc6 verified
root ::= (expr "=" ws term "\n")+
expr ::= term ([-+*/] term)*
term ::= num | "(" ws expr ")" ws
num ::= [0-9]+ ws
ws ::= [ \t\n]*
# this is a comment