grammars : add English-only grammar (#10612)
This commit is contained in:
parent
5c7a5aa0c3
commit
5e1ed95583
1 changed files with 6 additions and 0 deletions
6
grammars/english.gbnf
Normal file
6
grammars/english.gbnf
Normal file
|
@ -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 ::= [!"#$%&'()*+,-./:;<=>?@[\\\]^_`{|}~]
|
Loading…
Add table
Add a link
Reference in a new issue