Erez Sh
e56efad1fe
Raise correct error when terminal is used within another terminal, by not defined
3 years ago
MegaIng1
3d5729d5d2
Resolved cyclic dependency by moving deserialize_lexer_conf out of MakeParsingFrontend.deserialize
3 years ago
Erez Sh
39c5d924e8
Bugfix
4 years ago
Erez Sh
7ce0f7015f
Added load_grammar.find_grammar_errors
4 years ago
Erez Sh
08603a49d8
Grammar cache now contains md5 inside (Issue #835 )
4 years ago
Erez Sh
8c7be8310c
Version bump (0.11.2)
4 years ago
Erez Sh
a169f0b354
Better error messages
4 years ago
Erez Sh
d2348168bf
Small refactor
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
1d61de4f94
Fix .pyi files
4 years ago
Erez Sh
fd3be9d8d6
Brought back the removal of unused rules/terminals in imported grammars
4 years ago
Erez Sh
8cfe52fb77
Examples: Added example of extending the Python grammar
4 years ago
Erez Sh
58c9435e80
Refactored and added grammar tests
4 years ago
Erez Sh
d18e009fa4
PR refactor: Simplified load_grammar
4 years ago
Erez Sh
2ffb55b88f
Indenter now throws DedentError instead of AssertionError
4 years ago
MegaIng1
d98925525f
Fix for slices getting reduce to single getitem
4 years ago
MegaIng1
b6b31548ca
Fix for review + Removed unused functions
4 years ago
MegaIng1
5db3003edb
Updated stubs
4 years ago
MegaIng1
9f3ef97bd7
removed GrammarLoader
4 years ago
MegaIng1
d676df9b88
Python2.7 compatibility
4 years ago
MegaIng1
3bf7c6a19a
Completed `GrammarBuilder.check`
4 years ago
Chanic Panic
03841c4f12
Enable faster forest visiting
4 years ago
MegaIng1
225c9e16a5
Added `%import` to GrammarLoader & fixed tests
4 years ago
MegaIng1
9e545f8825
Basics for GrammarBuilder
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
1cfbb7be27
Added comments
4 years ago
Erez Sh
df18e78861
Added %override to lark.lark
4 years ago
Erez Sh
b379ea4b8b
Grammar: Added new %override statement for rewriting imported rules (like in class inheritance)
4 years ago
Søren Fuglede Jørgensen
cbb78b262e
Fix reference to error_puppet example
4 years ago
Erez Sh
a7c71f32cc
Fixed Lark.lex(), added dont_ignore option, added tests for it.
4 years ago
Erez Sh
7b6a730abc
Small bugfixes in exceptions
4 years ago
Erez Sh
8953849841
Allow unicode in terminal names
4 years ago
Erez Sh
aa7dc19bc3
Corrections for PR
4 years ago
MegaIng1
8ec6d0f2ab
Correction for PR
- `user_repr` is now a method
- Fix for python 2.7
- excepts -> expected
4 years ago
Erez Sh
111738b8b9
Revised handling of ignored tokens in xearley (Issue #768 )
4 years ago
Erez Sh
ed065eeb76
Removed duplicate line
4 years ago
Erez Sh
679c415673
Small refactor to adjust PR
4 years ago
Erez Sh
712df517b2
Fixes for PR. Custom lexer now works with CYK
4 years ago
Erez Sh
284dfe7fd3
Refactored parser_frontends. Now significantly simpler
4 years ago
Erez Sh
7beb681563
Adds stubs; cleanup
4 years ago
Erez Sh
c6819a0ed7
Refactored all likely exceptions to inherit from LarkError, and improved error messages.
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
e6bbfd16c0
Fixed comment
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