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
Erez Sh
f285cda4f2
Earley error reporting - initial (Issue #760 )
4 years ago
Erez Sh
b3eb2a3120
Add token_history to UnexpectedToken
4 years ago
MegaIng1
4e442bc0b8
regression-fix for #760
4 years ago
MegaIng1
dd3cf90b2d
Moved `lark.lark` into the standard library.
4 years ago
Erez Sh
c715426f32
Version bump to 0.11.1
4 years ago
Erez Sh
27ef9fcbf0
Add information about debug=True (Issue #750 )
4 years ago
Erez Sh
5f230c6663
Version bump
4 years ago
Erez Sh
cd78243b82
Examples: Added new syntax to python grammar
4 years ago
MegaIng1
2d8bd42315
Make `LALR_CustomLexerWrapper` behave correctly + tests
4 years ago
MegaIng
633a6dfee8
Make `UnexpectedCharacters` print the repr
This is an additional response to #738 .
I also often came across this when unexpectedly having a newline, which would previously result in the message being split up across two lines. This PR makes it easier to identify exactly which special character is causing problems.
4 years ago
Erez Sh
ff155cd21a
Added unicode.lark (Issue #738 )
4 years ago
Chanic Panic
820e185dca
Fix IndexError (issue #754 )
4 years ago
Erez Sh
5149d38e25
tools.nearley: Add support for case-insensitive strings (Issue #753 )
4 years ago
Erez Sh
5b30ba4841
Cleanup, and a few PEP8 changes
4 years ago
Erez Sh
16f2f73d15
Adjust PR - Change warning to debug
4 years ago
Erez Sh
1a44f8ff91
Release candidate
4 years ago
Chanic Panic
e3c7564fa0
Add debug attribute to ForestToParseTree
4 years ago
Chanic Panic
c017525e50
Fix issues with SPPF cycle handling
4 years ago
Erez Sh
19fc3c7520
Small fix to Earley debuging
4 years ago
Erez Sh
762fd82da1
Updated link to SPPF explanation
4 years ago
Erez Sh
bc3923aed8
Added more terminals to grammars/ folder
4 years ago
Erez Sh
47df8b5a6a
Improve docs
4 years ago
Erez Sh
b394b7e4ec
Improved docstrings for visitors
4 years ago
Erez Sh
f560ce1754
cache=True now uses a temp directory instead of working directory
4 years ago
Erez Sh
ede2ed78ec
Fix puppet, add immutable puppet with hash
4 years ago
Erez Sh
4d096fae16
Refactor: Split ParserState into ParseConf
4 years ago
Erez Sh
f20d72d9f6
Fix due to CR - handle UnexpectedCharacters resume in the error loop
4 years ago
Erez Sh
45467e1f61
Changes due to code review by @MegaIng
4 years ago
Erez Sh
72e7926097
Completely redesigned the interface between Lexer<->Parser, and refactored LALR parser and lexers
4 years ago
Erez Sh
115edbfb32
Rewrite lexer to use LexerState
4 years ago
Peter Wienemann
e02b1b6669
Fix various typos
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
2dbfa2573a
Added non-recursive transformer to default imports
4 years ago
Erez Sh
decb3cdcef
Fix for compression. Use base64 for compatibility
4 years ago
Erez Sh
6a9759d620
Added optional compression to standalone parser
4 years ago
Erez Sh
08677238b6
Minor edit
4 years ago
MegaIng1
2700b794b9
add `--verbose` option & make warnings comments
fixup! make warnings comments
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
Erez Sh
e4d73526d4
Refactor
4 years ago