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
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
MegaIng1
2d8bd42315
Make `LALR_CustomLexerWrapper` behave correctly + tests
4 years ago
Chanic Panic
13abf7ca3a
Add test for custom indenter
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
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
MegaIng1
a50fc10773
import_paths->sources, source->source_path, various implementation changes
4 years ago
MegaIng1
009cc10590
Added `FromPackageLoader` and `open_from_package`
4 years ago
MegaIng1
53b3e12bba
Added `import_sources`
4 years ago
Chanic Panic
f89b1549dd
Write tests for ambiguous intermediate nodes in the SPPF
4 years ago
decorator-factory
9923987e94
allow multiline regexes with 'x' (verbose) flag
4 years ago
Erez Sh
b7068c45a7
Tiny fixes. Don't test use_bytes on Python 3.4.
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
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
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
pwwang
5c8a25c733
Avoid using root logger
4 years ago
Erez Sh
12d95c37af
Small fixes
4 years ago
julienmalard
b90ac434d2
· character was causing problems in pypy3
4 years ago
julienmalard
09e80a5c9e
Fixed tests
4 years ago
julienmalard
86a162d6d8
Added `regex` module as optional mode.
4 years ago
Erez Sh
3bee21051e
Reverted changes regarding EOF
4 years ago
julienmalard
3fc9733188
Added regex module option.
4 years ago
Erez Sh
dcc98241c1
Improved handling and performance of large grammars
4 years ago
Erez Sh
9cc57abd8a
Added 'cache' option to Lark (Issue #479 )
4 years ago
MegaIng1
1b5ffc0660
Added the ability to use templates as template arguments. Error reporting should still be horrible.
4 years ago
MegaIng1
20a2f690ca
Correct behaviour of aliases for templates (attempt 2)
4 years ago
MegaIng1
2daca647d4
Unified rules and templates
4 years ago
MegaIng1
8bf5da697a
Added test for template imports and implemented them
4 years ago
MegaIng1
0c1c48411d
Added test for recursive templates + implemented them
4 years ago
MegaIng1
ed17512c3a
Corrected & Simplified test
4 years ago