MegaIng
e0889a3cf3
Sort Options inside a TerminalTree
3 years ago
Erez Sh
d449513839
Tests: Updated test_merge_transformers
3 years ago
Robin A. Dorstijn
fc24666f37
Add merge function
3 years ago
Erez Sh
b3816b9a90
Added utility function: List grammar imports + test
3 years ago
MegaIng
3a4568df24
Reworked grammar to simplify later processing + expand_kids_by_data + tests
3 years ago
Erez Sh
cf61f78509
Tests: Moved repeat operator tests to test_grammar
3 years ago
Erez Sh
90460f31d9
Refactored PR #949 and edited the comments/docstrings
3 years ago
MegaIng
fa8565366b
Off-by-one fix + Change of thresholds + fix tests
3 years ago
MegaIng
b4fe22a27d
Python2.7 + comments + Magic constants
3 years ago
MegaIng
845b6fa477
Refactor + tests + additional splitting up.
3 years ago
Erez Sh
f14ff6d4d1
Fixed tests to use meta (Tree.column is deprecated)
3 years ago
Erez Sh
c953dd9505
Tests: Added a test case demonstrating the need for calculating containers
3 years ago
MegaIng
bdcd2e0011
fix tree_matcher when keep_all_tokens=True by setting sym.filter_out correctly.
3 years ago
MegaIng
c44bb3e0cd
Raise a GrammarError on empty string literal.
3 years ago
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