Erez Sh
f20d72d9f6
Fix due to CR - handle UnexpectedCharacters resume in the error loop
4 years ago
Erez Sh
45467e1f61
Changes due to code review by @MegaIng
4 years ago
Erez Sh
72e7926097
Completely redesigned the interface between Lexer<->Parser, and refactored LALR parser and lexers
4 years ago
Erez Sh
115edbfb32
Rewrite lexer to use LexerState
4 years ago
Erez Shinan
16d41d1774
Merge pull request #713 from lark-parser/lalr_rule_priority
4 years ago
Erez Sh
8283d91507
More tests for priority
4 years ago
Erez Sh
b5aeb812e0
Better error message for options. More tests for priority
4 years ago
Erez Sh
e84a64fc52
Added support for rule priorities in LALR
4 years ago
Erez Sh
2dbfa2573a
Added non-recursive transformer to default imports
4 years ago
Erez Sh
decb3cdcef
Fix for compression. Use base64 for compatibility
4 years ago
Erez Sh
6e25258202
Merge branch 'MegaIng-standalone_options2'
4 years ago
Erez Sh
6bcff89e3c
Added test for standalone compression
4 years ago
Erez Sh
6a9759d620
Added optional compression to standalone parser
4 years ago
Erez Sh
08677238b6
Minor edit
4 years ago
MegaIng1
2700b794b9
add `--verbose` option & make warnings comments
fixup! make warnings comments
4 years ago
MegaIng1
2d74539424
lark.tools.serialize and standalone can now take more options. Also added info where options need to be added
4 years ago
Erez Sh
131012b893
Merge branch 'MegaIng-keep_all_maybe'
4 years ago
Erez Sh
e4d73526d4
Refactor
4 years ago
Erez Sh
986510365e
Merge branch 'keep_all_maybe' of https://github.com/MegaIng/lark into MegaIng-keep_all_maybe
4 years ago
Erez Sh
d433c00fa9
Merge branch 'MegaIng-standalone_options'
4 years ago
Erez Sh
f2a6feddf1
Tiny fixes
4 years ago
Erez Sh
dbeb724c51
Merge branch 'standalone_options' of https://github.com/MegaIng/lark into MegaIng-standalone_options
4 years ago
Erez Sh
c196f99cd4
Better reduce/reduce errors
4 years ago
MegaIng1
ab5bc3f47e
Improved comment
4 years ago
MegaIng1
bd22a2f79e
Removed _LOAD_BLOCKED_OPTIONS
4 years ago
Erez Shinan
e4001d5e11
Merge pull request #708 from MegaIng/always_accept_filter
4 years ago
Erez Shinan
9af9a71029
Merge pull request #709 from rec/master
Guard Lark.__doc__ assignment for tools.standalone
4 years ago
MegaIng1
acd04442bc
Fix for cache
4 years ago
MegaIng1
e1b572c3a9
Allows the standalone parser to take more options.
4 years ago
Tom Ritchford
fb925f8b31
Guard Lark.__doc__ assignment for tools.standalone
4 years ago
MegaIng1
9370fb5aa5
Fix for tree_matcher
4 years ago
MegaIng1
dcde0bcbe9
Prevent terminals from being filtered out when used in always_accept
4 years ago
MegaIng1
3112259b23
Fix for maybe_placeholders when keep_all_tokens=True
4 years ago
Erez Shinan
809b0308a4
Merge pull request #702 from ldbo/fix-debug-cache-incompatibility
4 years ago
Erez Sh
8ac74d73e3
Merge branch 'ldbo-fix-debug-cache-incompatibility'
4 years ago
Erez Shinan
4dc6b0c914
Merge branch 'master' into fix-debug-cache-incompatibility
4 years ago
Erez Sh
aac21d4d19
Minor version bump + Adjustments to PR
4 years ago
Louis Dubois
a423097362
fix: Propagate debug flag on loading grammar from cache
The debug flag is already saved in the cached file, but is not
resumed on loading the dumped file. To solve that,
- add argument `debug` to parser_fronteds.WithLexer.deserialize
- add argument `debug` lalr_parser.LALR_Parser.deserialize
- propagate the value of the `debug` option on resuming a cached
grammar, in lark.Lark._load
4 years ago
Louis Dubois
c6f2b023f3
chg: Force pickle to use highest protocol
Python2.7 uses protocol 1 by default, which is not compatible with
class defining __slots__. On the other hand, all the Python versions
support versions >= 2.
4 years ago
Erez Sh
798a7026b4
Minor version bump + Adjustments to PR
4 years ago
Erez Sh
e5cf495230
Merge branch 'fix-debug-cache-incompatibility' of https://github.com/ldbo/lark into ldbo-fix-debug-cache-incompatibility
4 years ago
Louis Dubois
abdbabe429
fix: Propagate debug flag on loading grammar from cache
The debug flag is already saved in the cached file, but is not
resumed on loading the dumped file. To solve that,
- add argument `debug` to parser_fronteds.WithLexer.deserialize
- add argument `debug` lalr_parser.LALR_Parser.deserialize
- propagate the value of the `debug` option on resuming a cached
grammar, in lark.Lark._load
4 years ago
Louis Dubois
d41e3cdfb9
chg: Force pickle to use highest protocol
Python2.7 uses protocol 1 by default, which is not compatible with
class defining __slots__. On the other hand, all the Python versions
support versions >= 2.
4 years ago
Erez Shinan
7c8d6ee787
Merge pull request #698 from michael-k/python3.9
Run tests against Python 3.9
4 years ago
Michael Käufl
db2354a9eb
Run tests against Python 3.9
4 years ago
Erez Sh
9f3d611022
Version bump to 0.10.0
4 years ago
Erez Shinan
a9ef2d2221
Merge pull request #695 from chanicpanic/forest-docs-fix
4 years ago
Chanic Panic
2198113a71
Fix missing handles_ambiguity docstring
4 years ago
Erez Shinan
84b195d5f0
Merge pull request #691 from starwarswii/patch-1
updated lark.lark with two small fixes
4 years ago
Erez Shinan
6688366020
Merge pull request #693 from chanicpanic/forest-docs
4 years ago