Erez Sh
81fa039872
Refactor: Eradicated inheritance from object
5 years ago
Erez Sh
61c4512cf3
Rename lexer: Standard/Traditional -> Basic
5 years ago
Erez Sh
19b2aa934f
Fix tests for PR
5 years ago
Erez Sh
e30eef7a53
Commit latest master to v1.0
5 years ago
Erez Sh
cf61f78509
Tests: Moved repeat operator tests to test_grammar
5 years ago
Erez Sh
90460f31d9
Refactored PR #949 and edited the comments/docstrings
5 years ago
MegaIng
fa8565366b
Off-by-one fix + Change of thresholds + fix tests
5 years ago
MegaIng
b4fe22a27d
Python2.7 + comments + Magic constants
5 years ago
MegaIng
845b6fa477
Refactor + tests + additional splitting up.
5 years ago
Erez Sh
f14ff6d4d1
Fixed tests to use meta (Tree.column is deprecated)
5 years ago
Erez Sh
c953dd9505
Tests: Added a test case demonstrating the need for calculating containers
5 years ago
Erez Sh
9b77270502
Removed code relevant to versions below 3.6
5 years ago
ornariece
c3fc2266e1
Fix #696 now providing the correct amount of placeholders
5 years ago
Aaron Tsang
11eafa3e9e
Support 32bit unicode escape sequence
5 years ago
MegaIng1
2e0e55ea2a
Added fallback to `get_regexp_width` to not fail on unsupported regex features.
5 years ago
Erez Sh
22c289126f
Rename ParserPuppet -> InteractiveParser
5 years ago
Erez Sh
2a1b03bc65
Rename ParserPuppet -> InteractiveParser
5 years ago
MegaIng1
754f08a622
Added get_puppet, helpers and tests
5 years ago
Gary Geng
83ce0c7a00
Fix copying and comparing of some classes
5 years ago
MegaIng1
3d5729d5d2
Resolved cyclic dependency by moving deserialize_lexer_conf out of MakeParsingFrontend.deserialize
5 years ago
MegaIng1
c621eeb369
Fix for #818 + tests
5 years ago
Chanic Panic
e88646b586
Fix an SPPF cycle edge case (Issue #820 )
5 years ago
Erez Sh
fd3be9d8d6
Brought back the removal of unused rules/terminals in imported grammars
5 years ago
Erez Sh
58c9435e80
Refactored and added grammar tests
5 years ago
MegaIng1
b6b31548ca
Fix for review + Removed unused functions
5 years ago
MegaIng1
225c9e16a5
Added `%import` to GrammarLoader & fixed tests
5 years ago
Erez Sh
712df517b2
Fixes for PR. Custom lexer now works with CYK
6 years ago
MegaIng1
b655bd950a
Fix tests failing when used with `python -m unittest discover`
6 years ago
MegaIng1
83e896b3b8
Prevent test from running with old custom lexer
6 years ago
MegaIng1
cf9d0d915e
Fixes for custom lexer.
6 years ago
MegaIng1
cf25c06420
Added custom lexer to earley.
6 years ago
Erez Sh
e6dcc43478
Improve match_examples() for Earley (Issue #760 )
6 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.
6 years ago
Erez Sh
1aff84391a
Added test for match_examples
6 years ago
MegaIng1
2fe5f2ed4c
Added tests for `lark.lark`
6 years ago
MegaIng1
2d8bd42315
Make `LALR_CustomLexerWrapper` behave correctly + tests
6 years ago
Chanic Panic
13abf7ca3a
Add test for custom indenter
6 years ago
Chanic Panic
d6ef539199
Add tests for SPPF cycles
6 years ago
Erez Sh
72e7926097
Completely redesigned the interface between Lexer<->Parser, and refactored LALR parser and lexers
6 years ago
Erez Sh
8283d91507
More tests for priority
6 years ago
Erez Sh
b5aeb812e0
Better error message for options. More tests for priority
6 years ago
Erez Sh
e84a64fc52
Added support for rule priorities in LALR
6 years ago
MegaIng1
dcde0bcbe9
Prevent terminals from being filtered out when used in always_accept
6 years ago
MegaIng1
3112259b23
Fix for maybe_placeholders when keep_all_tokens=True
6 years ago
MegaIng1
a50fc10773
import_paths->sources, source->source_path, various implementation changes
6 years ago
MegaIng1
009cc10590
Added `FromPackageLoader` and `open_from_package`
6 years ago
MegaIng1
53b3e12bba
Added `import_sources`
6 years ago
Chanic Panic
f89b1549dd
Write tests for ambiguous intermediate nodes in the SPPF
6 years ago
decorator-factory
9923987e94
allow multiline regexes with 'x' (verbose) flag
6 years ago
Erez Sh
b7068c45a7
Tiny fixes. Don't test use_bytes on Python 3.4.
6 years ago