Erez Sh
12d95c37af
Small fixes
4 years ago
julienmalard
3f524c88c9
Apparently still need re
4 years ago
julienmalard
2ed40237a5
Removed unnecessary imports
4 years ago
julienmalard
09e80a5c9e
Fixed tests
4 years ago
Aleh Arol
e6daf51f25
Make token type check fallback disabled by default
4 years ago
Erez Sh
985c38e0e0
Documentation fix (Removed bloat from README)
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
3b3a8c1c92
Added docs for on_error
4 years ago
Erez Sh
66a073d0aa
Added support for error handling, using a puppet parser.
TODO: Add docs
4 years ago
Erez Sh
4463524b3a
Puppet initial
4 years ago
Erez Sh
e12e1ccbf9
Minor refactor
4 years ago
Erez Sh
d2499d8a71
Version bump
4 years ago
Erez Sh
46bb1e1d63
Cache now also depends on the Lark version
4 years ago
Erez Sh
a2d3e6332f
Version bump
4 years ago
Erez Sh
3bee21051e
Reverted changes regarding EOF
4 years ago
Erez Sh
20a9e3039f
Version bump
4 years ago
julienmalard
382489e020
All tests pass now (local testing)
4 years ago
Erez Sh
4fbae1253f
Version bump
4 years ago
Aleh Arol
732a562a1c
Use token type equality as a fallback when matching error examples
4 years ago
julienmalard
3fc9733188
Added regex module option.
4 years ago
Erez Sh
c56112eea3
Added debug prints for parser error (in debug mode)
4 years ago
Blank Spruce
e5620635c0
Reduce number of calls to Tree.meta in PropagatePositions
Since Tree.meta is property with additional presence check it
introduces unnecessary overhead in accessing underlying Meta
object once it's already initialized. Having local reference to actual
Meta object allows to reduce these presence checks to bare minimum
4 years ago
Erez Sh
4c61aaf1dc
Small refactoring for iter_subtrees
4 years ago
Blank Spruce
b18d109886
Rewrite iter_subtrees to more efficient version
Using OrderedDict provides these properties:
- given subtree is yielded only once since it's stored in OrderedDict
only once (even though it may be put there multiple times) so no need
to double check if subtree was already seen
- order of iteration is preserved as it was previously when subtrees
to iterate over were stored in a list
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
61b76a1fd0
Updated README about syntax highlighting for intellij
4 years ago
MegaIng1
20834d89d9
Added hook-lark.py and the required lines in setup.py
4 years ago
Erez Sh
dcc98241c1
Improved handling and performance of large grammars
4 years ago
Erez Sh
fb00e6a134
Added visitors.Transformer_NonRecursive. Improved support for big grammars (issue #550 )
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
40148d310c
fix for python2.7
4 years ago
MegaIng1
a716f54b22
slight improvement for alias of templates
4 years ago
MegaIng1
20a2f690ca
Correct behaviour of aliases for templates (attempt 2)
4 years ago
Erez Sh
b2f99f9933
Version bump due to bad release (Issue #545 )
4 years ago
Erez Sh
7d5e0146da
Version bump due to bad release (Issue #545 )
4 years ago
MegaIng1
3861ee7e07
Correct behaviour of aliases for templates
4 years ago
MegaIng1
2daca647d4
Unified rules and templates
4 years ago
Erez Sh
d408959479
Version Bump
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
b8f8448a0b
Implemented Templates
4 years ago
Erez Sh
acde77eef8
Nicer and more correct documentation
4 years ago
MegaIng1
926c98bd41
Renamed global_flags to g_regex_flags
4 years ago
MegaIng1
1f79a8dfce
Added template syntax
4 years ago
MegaIng1
3a97029853
Added global_flags option to Lark (+ test)
4 years ago
Erez Sh
3b901a06b0
Added docs (Spurred by issue #510 )
4 years ago
Erez Sh
3a04f49860
Fixed 'end_pos' for xearley, 2nd try (issue #534 )
5 years ago
Erez Sh
a84788087b
Fixed 'end_pos' for xearley (issue #534 )
5 years ago