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
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
julienmalard
f8b0ca3ccc
Code review 3
4 years ago
julienmalard
1b2fc2bda4
Code review #2
4 years ago
julienmalard
364f9ae3a5
Response to code review
4 years ago
julienmalard
74c94bb369
Tests now pass!
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
MegaIng1
bc9ed5376d
made error message contain actual source code
make _all_terminals a dict
added raw attribute to Pattern
rename nice_print -> user_repr
4 years ago
Erez Sh
f560ce1754
cache=True now uses a temp directory instead of working directory
4 years ago
MegaIng1
605b91e4be
improve error message with token source.
rename LexerConf.terminals to LexerConf.tokens
Make Exception message generation lazy
Made a few classes new-style
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