mirror of
ssh://devgit.janware.com/janware/proj/jw-python
synced 2026-06-18 14:46:39 +02:00
grammar.py and friends: Improve line numbers and headers
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>
This commit is contained in:
parent
a3a8313ce8
commit
3cba245b77
5 changed files with 76 additions and 71 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
[white_space[
|
||||
type = token
|
||||
lex_extra_action = "if memchr(yytext, '\n', yyleng) context->line++;"
|
||||
regex = "[ \n\t\r]+"
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue