Michael Milton
e6ad86f373
For Nearley: add argparse, extras install, allow es6 compiling
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
MegaIng1
0c89189b5f
Support for bytes parser
4 years ago
Inky
fcaf10ac4d
Fixes caching when custom lexers are used
4 years ago
MegaIng1
e4e29f5127
Added a bit of explanation for `term_subs`
4 years ago
Erez Sh
69adc221c5
Fixed documentation bug: Issue #625
4 years ago
Erez Sh
c96adbd1e8
Small refactor
4 years ago
MegaIng1
9ab02b465c
Added comment with explanation
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
Nathaniel Hartley
c7fa5e3aa3
Allows building TraditionalLexer with current configuration convention
4 years ago
julienmalard
a3368d8a72
Need to remove duplicate rules for root rools as well.
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
Erez Sh
2c49cc6e45
Version Bump
4 years ago
Erez Sh
601f050645
Added docs for ParserPuppet
4 years ago
pwwang
a6201b41e4
Lowercase logger name
4 years ago
pwwang
5c8a25c733
Avoid using root logger
4 years ago
julienmalard
6b9bd84091
Remove commented out line
4 years ago
julienmalard
bca6cfa458
Expand rules reconstructor test passes
4 years ago
julienmalard
5d01f0ae68
test keep tokens in reconstructor works
4 years ago
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