Erez Sh
27ef9fcbf0
Add information about debug=True (Issue #750 )
4 years ago
Erez Sh
5b30ba4841
Cleanup, and a few PEP8 changes
4 years ago
Erez Sh
bc3923aed8
Added more terminals to grammars/ folder
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
f20d72d9f6
Fix due to CR - handle UnexpectedCharacters resume in the error loop
4 years ago
Erez Sh
72e7926097
Completely redesigned the interface between Lexer<->Parser, and refactored LALR parser and lexers
4 years ago
Erez Sh
b5aeb812e0
Better error message for options. More tests for priority
4 years ago
Erez Sh
e84a64fc52
Added support for rule priorities in LALR
4 years ago
Erez Sh
08677238b6
Minor edit
4 years ago
MegaIng1
2d74539424
lark.tools.serialize and standalone can now take more options. Also added info where options need to be added
4 years ago
Erez Sh
e4d73526d4
Refactor
4 years ago
Erez Sh
f2a6feddf1
Tiny fixes
4 years ago
MegaIng1
ee9857cabb
Added backwards-compatibility property with DeprecationWarning
4 years ago
MegaIng1
bd22a2f79e
Removed _LOAD_BLOCKED_OPTIONS
4 years ago
MegaIng1
acd04442bc
Fix for cache
4 years ago
MegaIng1
e1b572c3a9
Allows the standalone parser to take more options.
4 years ago
Tom Ritchford
fb925f8b31
Guard Lark.__doc__ assignment for tools.standalone
4 years ago
MegaIng1
dcde0bcbe9
Prevent terminals from being filtered out when used in always_accept
4 years ago
MegaIng1
3112259b23
Fix for maybe_placeholders when keep_all_tokens=True
4 years ago
MegaIng1
5f7a5d428a
renamed `source_code` -> `source_grammar`
4 years ago
MegaIng1
a50fc10773
import_paths->sources, source->source_path, various implementation changes
4 years ago
Erez Sh
aac21d4d19
Minor version bump + Adjustments to PR
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
c6f2b023f3
chg: Force pickle to use highest protocol
Python2.7 uses protocol 1 by default, which is not compatible with
class defining __slots__. On the other hand, all the Python versions
support versions >= 2.
4 years ago
Erez Sh
798a7026b4
Minor version bump + Adjustments to PR
4 years ago
MegaIng1
009cc10590
Added `FromPackageLoader` and `open_from_package`
4 years ago
MegaIng1
53b3e12bba
Added `import_sources`
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
Louis Dubois
d41e3cdfb9
chg: Force pickle to use highest protocol
Python2.7 uses protocol 1 by default, which is not compatible with
class defining __slots__. On the other hand, all the Python versions
support versions >= 2.
4 years ago
Chanic Panic
24434ec5ff
Add documentation for working with the SPPF
4 years ago
Erez Sh
faecf32592
Restore the Lark.terminals attribute when using cached grammar
4 years ago
Erez Sh
e6caa035ca
Tiny docs fix
4 years ago
Chanic Panic
9c967fafb0
Add ambiguity='forest' option
4 years ago
Sasank Chilamkurthy
298e7cfce6
add end options in docstring
4 years ago
Sasank Chilamkurthy
e6edc109b7
options part of lark.Lark's docs
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
f107512cb3
change to definition format for larkoptins
4 years ago
Sasank Chilamkurthy
83006aa0c8
fix unicode import bug
4 years ago
Sasank Chilamkurthy
9e34dc94e9
document LarkOptions
4 years ago
Sasank Chilamkurthy
cc24dcffa4
document lark.Lark
4 years ago
Erez Sh
af3bedd39d
Adjustments to logging PR
4 years ago
Erez Sh
2f4831f9b6
Small refactor after PR
4 years ago
Blank Spruce
96873d64ba
Make transformer work with tokens in standalone parser, fixes #648
4 years ago
Erez Sh
7c6e94bf73
Fixed issues with the use_bytes PR, and added documentation
4 years ago
MegaIng1
c93106f143
Tests for bytes parser (credit to @ctrlcctrlv )
4 years ago
MegaIng1
0c89189b5f
Support for bytes parser
4 years ago
Nathaniel Hartley
c7fa5e3aa3
Allows building TraditionalLexer with current configuration convention
4 years ago
pwwang
2a73afd355
Change LOGGER to logger
4 years ago