mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
Line numbers of parsed input are now automatically maintained. More needed data structures are now automatically created in the API header file. Signed-off-by: Jan Lindemann <jan@janware.com>
20 lines
319 B
Text
20 lines
319 B
Text
[symbols]
|
|
|
|
[white_space[
|
|
type = token
|
|
lex_extra_action = "if memchr(yytext, '\n', yyleng) context->line++;"
|
|
regex = "[ \n\t\r]+"
|
|
]
|
|
|
|
[all_characters[
|
|
type = non-terminal
|
|
regex = "[[:print:]]"
|
|
#lex_as = yytext[0]
|
|
]
|
|
|
|
[test[
|
|
type = token
|
|
dings = bums
|
|
regex = "bumsdings"
|
|
]
|
|
|