Skip to content

Commit 5e1ed95

Browse files
authored
grammars : add English-only grammar (#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

Lines changed: 6 additions & 0 deletions
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)