Skip to content

Commit 5e1ed95

Browse files
authoredDec 1, 2024
grammars : add English-only grammar (ggml-org#10612)
1 parent 5c7a5aa commit 5e1ed95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎grammars/english.gbnf

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# note: this might be incomplete, mostly an example
2+
root ::= en-char+ ([ \t\n] en-char+)*
3+
en-char ::= letter | digit | punctuation
4+
letter ::= [a-zA-Z]
5+
digit ::= [0-9]
6+
punctuation ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]

0 commit comments

Comments
 (0)
Please sign in to comment.