Erez Shinan
|
4a5aa745ea
|
All tests passing
|
6 years ago |
Erez Shinan
|
cf7ddeee88
|
Earley working too
|
6 years ago |
Erez Shinan
|
67f372c994
|
Symbols instead of strings - initial
|
6 years ago |
DrSlump
|
e69d567bce
|
example driven parser errors
|
6 years ago |
Erez Shinan
|
61afbed17a
|
A minor style fix (a possible memory usage improvement)
|
6 years ago |
Erez Shinan
|
b951b5f79c
|
Significant reduction in memory consumption (Saving only parse-table instead of analysis instance)
|
6 years ago |
Erez Shinan
|
ba0dc789a3
|
Significantly better memory performance (Thanks @drslump!)
Added __slots__ to RulePtr and Token, resulting in significantly lower memory consumption.
As suggested by @drslump.
|
6 years ago |
Erez Shinan
|
4f2330fc9b
|
Fixed bug in Earley prioritization
|
6 years ago |
Erez Shinan
|
327cca8c00
|
Added 'considered_rules' to exceptions, to help users debug
|
7 years ago |
Erez Shinan
|
bb0b9aa729
|
BUGFIX: Token and Derivation get compared in _compare_drv (Issue #91)
|
7 years ago |
Parker
|
ce26c7cced
|
Use loops for flow control instead of catching exceptions
While optimizing hot spots in a tool I wrote I saw this issue. Changing this to use a for loop granted a minor speed boost to my script.
|
7 years ago |
Erez Shinan
|
07f45a0bd3
|
Style fixes
|
7 years ago |
Erez Shinan
|
b90b0a215f
|
Fixed reconstruct (Issue #72)
|
7 years ago |
Erez Shinan
|
9d84c52140
|
Better error message for reduce collisions in lalr
|
7 years ago |
Erez Shinan
|
6c28010581
|
Simplified grammar analysis. Improved performance of FIRST/FOLLOW calculations
|
7 years ago |
Erez Shinan
|
710cb6d20b
|
Added more information in UnexpectedInput exception (Issue #78)
|
7 years ago |
Erez Shinan
|
3d8b8b4725
|
A few more adaptations
|
7 years ago |
Erez Shinan
|
648099d7b4
|
Idiomatic function names and a few other style fixes
|
7 years ago |
Erez Shinan
|
748e9b7248
|
All relevant tests passing. Also indentation and other refactoring.
|
7 years ago |
Ehud Tamir
|
7c253b9372
|
Merge CYK parser.
|
7 years ago |
Erez Shinan
|
da1910f5b6
|
More refactoring towards standalone
|
7 years ago |
Erez Shinan
|
7182ba3991
|
Minor refactoring for the standalone tool (in progress)
|
7 years ago |
Erez Shinan
|
38c5fd244a
|
Improved grammar validation and refactored the lexers
|
7 years ago |
Erez Shinan
|
39e58cb8fd
|
Post-refactor cleanup
|
7 years ago |
Erez Shinan
|
1cc4c965e8
|
Big Refactor: Grammars now build in half the time. Code shorter & cleaner.
|
7 years ago |
Erez Shinan
|
0ee80e675a
|
Refactoring for LALR, added the ParseTable class
|
7 years ago |
Erez Shinan
|
5f5acca40b
|
Cleaned up the LALR(1) parser
|
7 years ago |
Erez Shinan
|
fbeb0e6e59
|
BUGFIX: tree-less transformer may hang for empty values (Issue #49)
|
7 years ago |
Erez Shinan
|
5748920df4
|
BUGFIX in xearley + Feature: earley__predict_all
|
7 years ago |
Erez Shinan
|
852607b978
|
BUGFIX: Tokens of different type were equal, causing disambiguation errors (Issue #21)
|
7 years ago |
Erez Shinan
|
ddae93f92f
|
BUGFIX: Ambiguity resolution now sums priority (Issue #46)
|
7 years ago |
Erez Shinan
|
eb007b297c
|
Removed old versions of Earley parsers that are no longer used
|
7 years ago |
Erez Shinan
|
e77433f19a
|
Superficial improvement to Earley
|
7 years ago |
Erez Shinan
|
c91bb61a43
|
XEarley: Better exception when can't find a solution
|
7 years ago |
Erez Shinan
|
6f85ca4294
|
%ignore bug fixed in xearley (thanks to issue #44)
|
7 years ago |
Erez Shinan
|
34449651bf
|
Added UnexpectedInput exception (with line & column) to xearley (Issue #43)
|
7 years ago |
Erez Shinan
|
eea569fa3a
|
Tiny fix
|
7 years ago |
Erez Shinan
|
0155d3d956
|
A few more fixes
|
7 years ago |
Erez Shinan
|
93302d7ceb
|
Important optimization for fix
|
7 years ago |
Erez Shinan
|
c93140386d
|
BUGFIX: The Earley parser collected repeating derivations, and filtered them out much later than needed. This resulted in very long lists and many unnecessary comparisons.
|
7 years ago |
Erez Shinan
|
a8aa908a4e
|
BUGFIX in Dynamic Earley when ending with an %ignore token
|
7 years ago |
Erez Shinan
|
816266a5eb
|
BUGFIX for issue #24: Dynamic Earley mishandled %ignore tokens
|
7 years ago |
Erez Shinan
|
551482898c
|
Fix for earley__all_derivations = False
|
7 years ago |
Erez Shinan
|
035eea234f
|
BUGFIX: Tree comparison in Earley wasn't hashed, which caused a huge spike in run-time for some cases.
|
7 years ago |
Erez Shinan
|
9d065c9642
|
LALR parser: towards generating a standalone (very far away still)
|
7 years ago |
Erez Shinan
|
5c02166c3f
|
Bugfix #25: Ambiguity resolver sometimes failed under Python3
|
7 years ago |
Erez Shinan
|
063c7fbdab
|
Tiny fix for Python3
|
7 years ago |
Erez Shinan
|
aede340449
|
Added earley__all_derivations due to performance concerns
|
7 years ago |
Erez Shinan
|
5d41371fb3
|
Added resolve__antiscore_sum
|
7 years ago |
Erez Shinan
|
d9b490f322
|
Refactoring for ambiguity resolution
|
7 years ago |