Chanic Panic
e88646b586
Fix an SPPF cycle edge case (Issue #820 )
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
284dfe7fd3
Refactored parser_frontends. Now significantly simpler
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
f285cda4f2
Earley error reporting - initial (Issue #760 )
4 years ago
Chanic Panic
820e185dca
Fix IndexError (issue #754 )
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
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
47df8b5a6a
Improve docs
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
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
Peter Wienemann
e02b1b6669
Fix various typos
4 years ago
Erez Sh
e84a64fc52
Added support for rule priorities in LALR
4 years ago
Erez Sh
c196f99cd4
Better reduce/reduce errors
4 years ago
Louis Dubois
a423097362
fix: Propagate debug flag on loading grammar from cache
The debug flag is already saved in the cached file, but is not
resumed on loading the dumped file. To solve that,
- add argument `debug` to parser_fronteds.WithLexer.deserialize
- add argument `debug` lalr_parser.LALR_Parser.deserialize
- propagate the value of the `debug` option on resuming a cached
grammar, in lark.Lark._load
4 years ago
Louis Dubois
abdbabe429
fix: Propagate debug flag on loading grammar from cache
The debug flag is already saved in the cached file, but is not
resumed on loading the dumped file. To solve that,
- add argument `debug` to parser_fronteds.WithLexer.deserialize
- add argument `debug` lalr_parser.LALR_Parser.deserialize
- propagate the value of the `debug` option on resuming a cached
grammar, in lark.Lark._load
4 years ago
Chanic Panic
24434ec5ff
Add documentation for working with the SPPF
4 years ago
Erez Sh
156bd7577f
Adjustments and fixes for PR
4 years ago
Chanic Panic
50c9cda6b5
Pass list to on_cycle instead of function
4 years ago
Erez Sh
88d4659c29
Improvements to puppet + other small stuff
4 years ago
Chanic Panic
9db869cc80
Add PackedData class
4 years ago
Chanic Panic
9c967fafb0
Add ambiguity='forest' option
4 years ago
Chanic Panic
607f984523
Create TreeForestTransformer
4 years ago
Chanic Panic
93d70e8a41
Replace ForestToTreeVisitors with ForestToParseTree
4 years ago
Chanic Panic
4adc871bf1
Add ForestTransformer
4 years ago
Chanic Panic
67ae0e2b16
Moderate updates and improvements to ForestVisitor
- add methods for visiting intermediate nodes
- add method to notify subclass of cycles
- support returning iterables of nodes from visit*node_in functions
- remove result and visit return value
- also add children property to PackedNode
4 years ago
Erez Sh
fe89296193
Improved load_grammar's error messages, and added tests
4 years ago
Erez Sh
b87acedac4
Fixed docs. Added support for hashing ParserPuppet
4 years ago
Chanic Panic
b076efadff
Create CompleteForestToAmbiguousTreeVisitor
4 years ago
Erez Sh
288078a6a0
Corrections to PR
4 years ago
Erez Sh
0c47b981fc
Bugfix: Infinite loop on mishandled $END token in on_error (Issue #656 )
4 years ago
Sasank Chilamkurthy
452f3fc061
complete sphinx autodoc
4 years ago
Erez Sh
39fb4c0f3e
Bugfix and warn on ambiguous intermediate nodes, based on PR #651
4 years ago
Erez Sh
af3bedd39d
Adjustments to logging PR
4 years ago
Erez Sh
02d57bc32a
Small adjustments to PR
4 years ago
MegaIng1
cb2d9cded0
Refactored ParserPuppet, added stubs
4 years ago
MegaIng1
2e160c046e
Correction for python2.7 (LalrPuppet-> new style class)
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
pwwang
2a73afd355
Change LOGGER to logger
4 years ago