Files
airllm-fork-nodejs/node_modules/node-llama-cpp/llama/grammars/arithmetic.gbnf
2026-02-05 15:27:49 +08:00

7 lines
177 B
Plaintext

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]*