mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a3a8313ce8 | |||
| 1a7a34f73c | |||
| 16ce7abd93 | |||
| 8c5934725c | |||
| 6297f10f55 |
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| a3a8313ce8 |
grammar.py and friends: Make list parsing run through
First time parsing doesn't error out with a syntax error. No usable AST is produced, strings are not returned from lexer, and AST lists aren't lists, really. TEXT:="Hello world!"; had to be excluded from the example, because I don't get how this could be parsed with the given syntax. There's a special sequence "all visible characters", but any lexer regex I could think of will also match the types defining "alphabetic character" and return the respective tokens (e.g. T_A) or vice-versa, depending on the order in the lexer input file. I suppose, the only sensible way to handle this, is to define "all visible characters" by defining the tokens for the missing characters, and then use them along T_A ... T_Z or their derived types. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 1a7a34f73c |
grammar.py and friends: Implement config file support
Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 16ce7abd93 |
grammar.py and friends: Make test/grammar compile and start
Doesn't successfully parse grammartest.code, yet, it errors out with a syntax error on whitespace. But at least it compiles and starts. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 8c5934725c |
grammar.py: Add support for --irrelevant-symbols
Arguments to --irrelevant-symbols are not meant to be represented in the AST resulting from parsing. Also, add pad() to misc.py. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 6297f10f55 |
grammar.py et al: Centralize more code
More code is removed from the special parser directories and centralized into grammar.py, Cmd.py, and generate-flex-bison.mk. Signed-off-by: Jan Lindemann <jan@janware.com> |