Erez Sh
a2107daee6
Tests: Fixed for pytest
3 years ago
Aaron Tsang
11eafa3e9e
Support 32bit unicode escape sequence
3 years ago
MegaIng1
2e0e55ea2a
Added fallback to `get_regexp_width` to not fail on unsupported regex features.
3 years ago
Erez Sh
22c289126f
Rename ParserPuppet -> InteractiveParser
3 years ago
Erez Sh
2a1b03bc65
Rename ParserPuppet -> InteractiveParser
3 years ago
MegaIng1
0f4ca60d83
Added support for verifying imported files
3 years ago
MegaIng1
754f08a622
Added get_puppet, helpers and tests
3 years ago
Gary Geng
83ce0c7a00
Fix copying and comparing of some classes
3 years ago
Erez Sh
0199afa4c8
Cleanup and refactor
3 years ago
MegaIng1
a202f2c7e8
Fix for cache + inline Transformer
3 years ago
Erez Sh
d2cd300550
Added test for cache + inline-transformer
3 years ago
MegaIng1
3d5729d5d2
Resolved cyclic dependency by moving deserialize_lexer_conf out of MakeParsingFrontend.deserialize
3 years ago
Erez Sh
7ce0f7015f
Added load_grammar.find_grammar_errors
4 years ago
MegaIng1
c621eeb369
Fix for #818 + tests
4 years ago
MegaIng1
7f795e8271
Fix for #826 (Thanks @mikeiovine ) + stubs + tests
4 years ago
Chanic Panic
e88646b586
Fix an SPPF cycle edge case (Issue #820 )
4 years ago
Erez Sh
fd3be9d8d6
Brought back the removal of unused rules/terminals in imported grammars
4 years ago
Erez Sh
58c9435e80
Refactored and added grammar tests
4 years ago
MegaIng1
b6b31548ca
Fix for review + Removed unused functions
4 years ago
MegaIng1
225c9e16a5
Added `%import` to GrammarLoader & fixed tests
4 years ago
MegaIng1
be979f2e63
Added %extend for both rules and terminals.
4 years ago
MegaIng1
5930e4ba6f
Added Terminal support for `%override`
4 years ago
Erez Sh
b379ea4b8b
Grammar: Added new %override statement for rewriting imported rules (like in class inheritance)
4 years ago
Erez Sh
a7c71f32cc
Fixed Lark.lex(), added dont_ignore option, added tests for it.
4 years ago
Erez Sh
8953849841
Allow unicode in terminal names
4 years ago
Erez Sh
712df517b2
Fixes for PR. Custom lexer now works with CYK
4 years ago
MegaIng1
b655bd950a
Fix tests failing when used with `python -m unittest discover`
4 years ago
MegaIng1
83e896b3b8
Prevent test from running with old custom lexer
4 years ago
MegaIng1
cf9d0d915e
Fixes for custom lexer.
4 years ago
MegaIng1
cf25c06420
Added custom lexer to earley.
4 years ago
Erez Sh
e6dcc43478
Improve match_examples() for Earley (Issue #760 )
4 years ago
Erez Sh
7fa993320e
match_examples() now works for Earley+Standard
Note: This refactor opens the door for implementing a ContextualLexer for Earley.
But unlike the existing one for LALR, it will have to be computed at runtime,
rather than ahead of time.
4 years ago
Erez Sh
1aff84391a
Added test for match_examples
4 years ago
MegaIng1
2fe5f2ed4c
Added tests for `lark.lark`
4 years ago
MegaIng
a4ddb1e84f
Adding missing Testcase to `__main__`
4 years ago
MegaIng1
2d8bd42315
Make `LALR_CustomLexerWrapper` behave correctly + tests
4 years ago
Chanic Panic
13abf7ca3a
Add test for custom indenter
4 years ago
julienmalard
02c39a84db
Skipping this test for Python 2 for now.
4 years ago
julienmalard
e5081420c6
Add encoding specification for Python 2
4 years ago
julienmalard
74c94bb369
Tests now pass!
4 years ago
julienmalard
b01c283d47
Failing test
4 years ago
Chanic Panic
d6ef539199
Add tests for SPPF cycles
4 years ago
Erez Sh
72e7926097
Completely redesigned the interface between Lexer<->Parser, and refactored LALR parser and lexers
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
6bcff89e3c
Added test for standalone compression
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
Tom Ritchford
fb925f8b31
Guard Lark.__doc__ assignment for tools.standalone
4 years ago
MegaIng1
dcde0bcbe9
Prevent terminals from being filtered out when used in always_accept
4 years ago