mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
grammar.py: Add grammar_parse_ebnf_tokens()
Add grammar_parse_ebnf_tokens(), to be used by external grammar parsers and grammar_parse_ebnf() Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
860f7d8cab
commit
432d78cdc5
4 changed files with 216 additions and 91 deletions
|
|
@ -5,7 +5,7 @@
|
|||
'END.' ;
|
||||
identifier = alphabetic character, { alphabetic character | digit } ;
|
||||
number = [ "-" ], digit, { digit } ;
|
||||
string = '"' , { all characters - '"' }, '"' ;
|
||||
string = '"' , { all characters }, '"' ;
|
||||
assignment = identifier , ":=" , ( number | identifier | string ) ;
|
||||
alphabetic character = "A" | "B" | "C" | "D" | "E" | "F" | "G"
|
||||
| "H" | "I" | "J" | "K" | "L" | "M" | "N"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue