mirror of
ssh://devgit.janware.com/janware/proj/jw-python
synced 2026-06-18 01:16:38 +02: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"
|
|
]
|
|
|