starwarswii
10dd3d7299
corrected caret placement in error messages due to tabs
fixes #663
4 years ago
Erez Sh
c6438007a7
A tiny fix
4 years ago
Erez Sh
288078a6a0
Corrections to PR
4 years ago
Sasank Chilamkurthy
452f3fc061
complete sphinx autodoc
4 years ago
Erez Sh
af3bedd39d
Adjustments to logging PR
4 years ago
Blank Spruce
5559b1a211
Add missing elements in standalone parser
Add:
- missing imports
- __version__ variable
Additionally regenerated json parser example
4 years ago
Erez Sh
2c7afed894
Small fixes
4 years ago
Erez Sh
02d57bc32a
Small adjustments to PR
4 years ago
MegaIng1
cb2d9cded0
Refactored ParserPuppet, added stubs
4 years ago
MegaIng1
d3b0449f71
Improved `match_examples` with `UnexpectedToken.accepts`
4 years ago
MegaIng1
a7bcd0bc2d
Added `accepts` attribute to `UnexpectedToken` and update stubs
4 years ago
MegaIng1
28e0a86f38
Small improvements for debug info
4 years ago
Erez Sh
5954fdf87a
Restore bad code (needs better fix). Updated readme & docs.
4 years ago
Erez Sh
61a7c1e20a
Removed code that causes failure in Python 3.4
4 years ago
MegaIng1
0c89189b5f
Support for bytes parser
4 years ago
Aleh Arol
e6daf51f25
Make token type check fallback disabled by default
4 years ago
Erez Sh
4463524b3a
Puppet initial
4 years ago
Aleh Arol
732a562a1c
Use token type equality as a fallback when matching error examples
4 years ago
Erez Sh
3b901a06b0
Added docs (Spurred by issue #510 )
4 years ago
Erez Shinan
1815bd7fbd
Support for token visitation in internal transformers, as an alternative mechanism for lexer_callbacks
5 years ago
Erez Sh
0a4530b942
Improved Earley error on EOF (Issue #457 )
5 years ago
Erez Shinan
f1e844accd
Mid work. Not promising
5 years ago
Aurelien Grenotton
cbafa4d7bb
Make VisitError inherit from LarkError
The recently added VisitError is the only lark exception not inheriting from LarkError,
which makes it painful to catch for client application.
6 years ago
Erez Shinan
6a6dd97c52
VisitError now allows explicit access to previous exception (Issue #314 )
6 years ago
Erez Shinan
688c453456
Corrections
6 years ago
Erez Shinan
8e7c05a8f6
Added VisitError for transformers
6 years ago
night199uk
d7a6b01d8a
Ensure that Exceptions with Unicode content display correctly
6 years ago
Erez Shinan
bd7e331ad7
Slightly better error message (UnexpectedToken)
6 years ago
Erez Shinan
843da8e809
Fixed bugs in the standalone generator (Issue #212 )
6 years ago
Erez Shinan
dd69b95338
Cleanup after pylint
6 years ago
Erez Shinan
cffd610e77
Fixed reconstructor. All tests passing
6 years ago
Erez Shinan
1247a8c330
Improved error messages (as pointed out in issue #181 )
6 years ago
Erez Shinan
e7212261b2
Fixed examples for error reporting
6 years ago
Erez Shinan
5c6df8e825
Moved and restructured exceptions
* All exceptions are now under exceptions.py
* UnexpectedInput is now superclass of UnexpectedToken and UnexpectedCharacters,
all of which support the get_context() and match_examples() methods.
6 years ago