Download grammars/arithmetic.gbnf from OpenTransformer/llama.cpp-prismml: direct link, hf CLI and curl.
- Browser
- Download file 177 Bytes
-
https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/grammars/arithmetic.gbnf
- Command line
-
hf download hf://OpenTransformer/llama.cpp-prismml/grammars/arithmetic.gbnf
-
curl -L -o arithmetic.gbnf https://huggingface.co/OpenTransformer/llama.cpp-prismml/resolve/main/grammars/arithmetic.gbnf
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]* | |