Erez Sh
af3bedd39d
Adjustments to logging PR
4 years ago
pwwang
2a73afd355
Change LOGGER to logger
4 years ago
pwwang
5c8a25c733
Avoid using root logger
4 years ago
Erez Sh
3bee21051e
Reverted changes regarding EOF
4 years ago
Erez Sh
3995ad913a
Tiny tiny cleanup
5 years ago
Erez Sh
cf7479f186
Post-merge fixed for end_symbol, + two more tests (Issue #237 )
5 years ago
Erez Sh
fcdba441b4
Better error message for reduce/reduce conflict (Issue #135 )
5 years ago
Erez Sh
b2f1b3bf7c
Small fixes
5 years ago
Erez Shinan
8466981c08
Cleanup
5 years ago
Raekye
0c59cba3f5
implement DeRemer and Pennello's lookahead algorithm for LALR(1)
5 years ago
Raekye
6f412c25b7
LALR optimizations and profiling
5 years ago
Raekye
21c41e54a9
lalr parser
5 years ago
Erez Shinan
aa75d50bd5
End symbol working for lalr + fixed validation for undefined %ignore
5 years ago
Erez Shinan
71fe87964a
Small refactor in grammar analysis
5 years ago
Erez Shinan
f1e844accd
Mid work. Not promising
5 years ago
Paul Vinciguerra
28e571f1c6
Fix DeprecationWarning in lalr_analysis.py
Under python 3.3+, logging.warn is deprecated.
Use logging.warning instead.
Fixes: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/lark/parsers/lalr_analysis.py:87: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
5 years ago
Erez Shinan
3c64c56bcd
All tests passing
5 years ago
Erez Shinan
94e15fb6f7
Mid work. Almost stable
5 years ago
Erez Shinan
d13ebb9c15
Using a mostly-generic serialization method
5 years ago
Erez Shinan
a892f184e3
Fix LALR shift/reduce warnings when debug=True (Issue #258 )
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
Erez Shinan
67f372c994
Symbols instead of strings - initial
6 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
7182ba3991
Minor refactoring for the standalone tool (in progress)
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
8e7395c6d6
Improved earley.py and added some comments to both parsers
8 years ago
Erez Shinan
538f944602
My Earley parser is working
8 years ago
Erez Shinan
d5123812b0
Another step of refactoring
8 years ago
Erez Shinan
b95567c4a7
Another refactoring step
8 years ago
Erez Shinan
972034fd2d
Began refactoring of lalr_analysis -> grammar_analysis
8 years ago
Erez Shinan
f31482c236
Lint treatment
8 years ago
Erez Shinan
eabb86860d
Added parsimonious to benchmarks
8 years ago
Erez Shinan
977025fded
Small parser optimization
8 years ago
Erez Shinan
115c4c6d21
A little order and refactoring
8 years ago
Erez Shinan
f1b2e1926c
Now supports Python3!
8 years ago
Erez Shinan
cde2b677bb
Added tests and lots of fixes and refactoring
8 years ago
Erez Shinan
d44658fa3f
Now supports empty rules. Added some tests. All tests passing.
8 years ago
Erez Shinan
73178d6ae0
Lark big first commit. Examples working.
8 years ago