summaryrefslogtreecommitdiff
path: root/llama.cpp/grammars/english.gbnf
diff options
context:
space:
mode:
Diffstat (limited to 'llama.cpp/grammars/english.gbnf')
-rw-r--r--llama.cpp/grammars/english.gbnf6
1 files changed, 6 insertions, 0 deletions
diff --git a/llama.cpp/grammars/english.gbnf b/llama.cpp/grammars/english.gbnf
new file mode 100644
index 0000000..2e53686
--- /dev/null
+++ b/llama.cpp/grammars/english.gbnf
@@ -0,0 +1,6 @@
+# note: this might be incomplete, mostly an example
+root ::= en-char+ ([ \t\n] en-char+)*
+en-char ::= letter | digit | punctuation
+letter ::= [a-zA-Z]
+digit ::= [0-9]
+punctuation ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]