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
Erez Sh
7538c93080
Fixed for mypy (including issue #532 )
5 years ago
Erez Sh
aa82f5a28a
Version bump
5 years ago
Erez Sh
9ec9acf115
The standalone parser is now licensed under MPL2 (instead of GPL) (Issue #507 )
5 years ago
Erez Sh
21d2016fca
Added methods for saving/loading Lark instances with pickle (Issue #479 )
5 years ago
Erez Sh
287b10504c
Added CollapseAmbiguities
5 years ago
KmolYuan
803b1fe79e
Apply changes and extend more names.
5 years ago
KmolYuan
97afea24d1
Make LarkError public.
5 years ago
KmolYuan
39aa08d223
Split out stubs.
5 years ago
KmolYuan
3c77de500b
Fix syntax for Python 2.
5 years ago
KmolYuan
25db16dd73
Add stubs for PEP 561.
5 years ago
Erez Sh
a55b7155b5
Added support for v_args in Interpreter (Issue #520 )
5 years ago
Erez Sh
3995ad913a
Tiny tiny cleanup
5 years ago
Erez Sh
5346231e14
Version bump
5 years ago
Erez Sh
c9c1ea90e8
Revert maybe_placeholders to be False by default.. It should be changed in a major release, not 0.8 (Issue #515 )
5 years ago
Erez Sh
de1f619fcd
Bugfix in stand-alone parser (Issue #514 )
5 years ago
Erez Sh
73427f785c
Version bump (release 0.8)
5 years ago
Erez Sh
3688b0053b
Disallow '. .' for '..' syntax (Issue #513 )
5 years ago
Erez Sh
52e510780a
Small stuff
5 years ago
Erez Sh
182385d7b7
Removed bad syntax: *? and +? no longer accepted by the grammar parser (Issue #511 )
5 years ago
Erez Sh
fcdba441b4
Better error message for reduce/reduce conflict (Issue #135 )
5 years ago
Erez Sh
ae691bf35e
Revert propagate_positions to be False by default, still not ready for prime-time
5 years ago