Blank Spruce
96873d64ba
Make transformer work with tokens in standalone parser, fixes #648
4 years ago
decorator-factory
9923987e94
allow multiline regexes with 'x' (verbose) flag
4 years ago
Erez Sh
b7068c45a7
Tiny fixes. Don't test use_bytes on Python 3.4.
4 years ago
Erez Sh
d631cad024
Minor adjustments
4 years ago
Erez Sh
7c6e94bf73
Fixed issues with the use_bytes PR, and added documentation
4 years ago
MegaIng1
c93106f143
Tests for bytes parser (credit to @ctrlcctrlv )
4 years ago
Inky
fcaf10ac4d
Fixes caching when custom lexers are used
4 years ago
MegaIng1
3d3bf69403
Added support of expansions
4 years ago
MegaIng1
e6fc3c9b00
Added possibility for terminals with different flags to be joined in python3.6+
4 years ago
pwwang
2a73afd355
Change LOGGER to logger
4 years ago
Erez Sh
7dc00179e6
Lark now loads faster
- Refactored lexer interface into LexerConf
- Lexer now compiles regexps only when used (especially useful for ContextualLexer)
- Lexer now doesn't validate on deserialize (noticable speedup)
4 years ago
pwwang
5c8a25c733
Avoid using root logger
4 years ago
julienmalard
bca6cfa458
Expand rules reconstructor test passes
4 years ago
julienmalard
279c319096
Activate expand rules reconstructor test (fails)
4 years ago
julienmalard
230aad94a7
Added reconstructor tests for tokens to keep ("!") and for expanded rules.
4 years ago
Erez Sh
12d95c37af
Small fixes
4 years ago
julienmalard
b90ac434d2
· character was causing problems in pypy3
4 years ago
julienmalard
09e80a5c9e
Fixed tests
4 years ago
Erez Sh
985c38e0e0
Documentation fix (Removed bloat from README)
4 years ago
julienmalard
797195d8ad
Removed debug print
4 years ago
julienmalard
857f71e3aa
Added regex tests to tox.
4 years ago
julienmalard
86a162d6d8
Added `regex` module as optional mode.
4 years ago
Erez Sh
cc1092bd53
Refactored puppet + small fixes
4 years ago
Erez Sh
3bee21051e
Reverted changes regarding EOF
4 years ago
julienmalard
eeafdb954b
Added preliminary tests.
4 years ago
julienmalard
3fc9733188
Added regex module option.
4 years ago
MegaIng1
51a1c5ceae
Added fix so that staticmethod will be correctly affected by class wide v_args + test
4 years ago
Erez Sh
dcc98241c1
Improved handling and performance of large grammars
4 years ago
Erez Sh
9cc57abd8a
Added 'cache' option to Lark (Issue #479 )
4 years ago
MegaIng1
1b5ffc0660
Added the ability to use templates as template arguments. Error reporting should still be horrible.
4 years ago
MegaIng1
20a2f690ca
Correct behaviour of aliases for templates (attempt 2)
4 years ago
MegaIng1
2daca647d4
Unified rules and templates
4 years ago
MegaIng1
8bf5da697a
Added test for template imports and implemented them
4 years ago
MegaIng1
0c1c48411d
Added test for recursive templates + implemented them
4 years ago
MegaIng1
ed17512c3a
Corrected & Simplified test
4 years ago
MegaIng1
926c98bd41
Renamed global_flags to g_regex_flags
4 years ago
MegaIng1
732a835b53
Added template tests
4 years ago
MegaIng1
3a97029853
Added global_flags option to Lark (+ test)
4 years ago
Erez Sh
cf7479f186
Post-merge fixed for end_symbol, + two more tests (Issue #237 )
5 years ago
Erez Sh
94dd3646d4
Extend comments in rules tests
5 years ago
Erez Sh
ae691bf35e
Revert propagate_positions to be False by default, still not ready for prime-time
5 years ago
Erez Sh
dcc9d46eef
Fixes to propagate_positions
5 years ago
Erez Sh
e1a39c58d0
Refactored v_args & visitors to a better, more agile implementation
5 years ago
Jussi Laasonen
2de7e34766
Open imported grammars with UTF-8 encoding
5 years ago
Mike Roberts
ed3c131ca8
Allow comments in rule definitions
5 years ago
Erez Shinan
1815bd7fbd
Support for token visitation in internal transformers, as an alternative mechanism for lexer_callbacks
5 years ago
Erez Shinan
84f08a452f
propagate_positions & maybe_placeholders are now true by default, updated docs, tests & examples accordingly (Issue #449 , #451 )
5 years ago
Giuliano Oliveira
1f0b1e7520
added visit_topdown methods to Visitor classes
5 years ago
Erez Sh
f3714a572f
Now prints a nice warning instead of failing tests when js2py isn't installed
5 years ago
Erez Shinan
54b18e5961
Allow transformers to transform tokens (Issue #389 )
5 years ago