From b333b06772c89d96aacb5490d6a219fba7c09cc6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 12 Feb 2026 20:57:17 +0100 Subject: Engage! --- llama.cpp/grammars/arithmetic.gbnf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 llama.cpp/grammars/arithmetic.gbnf (limited to 'llama.cpp/grammars/arithmetic.gbnf') diff --git a/llama.cpp/grammars/arithmetic.gbnf b/llama.cpp/grammars/arithmetic.gbnf new file mode 100644 index 0000000..3aa95a9 --- /dev/null +++ b/llama.cpp/grammars/arithmetic.gbnf @@ -0,0 +1,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]* -- cgit v1.2.3