MegaIng1
3112259b23
Fix for maybe_placeholders when keep_all_tokens=True
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
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
5 years ago
Sasank Chilamkurthy
e6edc109b7
options part of lark.Lark's docs
5 years ago
Erez Sh
288078a6a0
Corrections to PR
5 years ago
Erez Sh
0c47b981fc
Bugfix: Infinite loop on mishandled $END token in on_error (Issue #656 )
5 years ago
Sasank Chilamkurthy
f107512cb3
change to definition format for larkoptins
5 years ago
Sasank Chilamkurthy
83006aa0c8
fix unicode import bug
5 years ago
Sasank Chilamkurthy
9e34dc94e9
document LarkOptions
5 years ago
Sasank Chilamkurthy
cc24dcffa4
document lark.Lark
5 years ago
Erez Sh
af3bedd39d
Adjustments to logging PR
5 years ago
Erez Sh
2f4831f9b6
Small refactor after PR
5 years ago
Blank Spruce
96873d64ba
Make transformer work with tokens in standalone parser, fixes #648
5 years ago
Erez Sh
7c6e94bf73
Fixed issues with the use_bytes PR, and added documentation
5 years ago
MegaIng1
c93106f143
Tests for bytes parser (credit to @ctrlcctrlv )
5 years ago
MegaIng1
0c89189b5f
Support for bytes parser
5 years ago
Nathaniel Hartley
c7fa5e3aa3
Allows building TraditionalLexer with current configuration convention
5 years ago
pwwang
2a73afd355
Change LOGGER to logger
5 years ago
Erez Sh
7dc00179e6
Lark now loads faster
- Refactored lexer interface into LexerConf
- Lexer now compiles regexps only when used (especially useful for ContextualLexer)
- Lexer now doesn't validate on deserialize (noticable speedup)
5 years ago
pwwang
5c8a25c733
Avoid using root logger
5 years ago
julienmalard
86a162d6d8
Added `regex` module as optional mode.
5 years ago
Erez Sh
3b3a8c1c92
Added docs for on_error
5 years ago
Erez Sh
66a073d0aa
Added support for error handling, using a puppet parser.
TODO: Add docs
5 years ago
Erez Sh
46bb1e1d63
Cache now also depends on the Lark version
5 years ago
Erez Sh
61b76a1fd0
Updated README about syntax highlighting for intellij
5 years ago
Erez Sh
9cc57abd8a
Added 'cache' option to Lark (Issue #479 )
5 years ago
Erez Sh
acde77eef8
Nicer and more correct documentation
5 years ago
MegaIng1
926c98bd41
Renamed global_flags to g_regex_flags
5 years ago
MegaIng1
3a97029853
Added global_flags option to Lark (+ test)
5 years ago
Erez Sh
21d2016fca
Added methods for saving/loading Lark instances with pickle (Issue #479 )
5 years ago
Erez Sh
c9c1ea90e8
Revert maybe_placeholders to be False by default.. It should be changed in a major release, not 0.8 (Issue #515 )
5 years ago
Erez Sh
ae691bf35e
Revert propagate_positions to be False by default, still not ready for prime-time
5 years ago
Erez Sh
b2f1b3bf7c
Small fixes
5 years ago
Erez Sh
f0da22e9a8
LarkOptions now raises AttributeError instead of KeyError (Issue #503 )
5 years ago
Erez Sh
b9c81a5450
Refactor: Simplify code by assuming rule.options is never None
5 years ago
Erez Sh
fbbea5f730
Removed deprecated feature - profile
5 years ago
Erez Shinan
1815bd7fbd
Support for token visitation in internal transformers, as an alternative mechanism for lexer_callbacks
5 years ago
Erez Shinan
84f08a452f
propagate_positions & maybe_placeholders are now true by default, updated docs, tests & examples accordingly (Issue #449 , #451 )
5 years ago
Erez Sh
35e1029034
Start parameter now accepts unicode in Python 2 (Issue #459 )
5 years ago
Erez Sh
bb57629418
Added 'edit_terminals' option (Issue #406 )
5 years ago
Erez Shinan
0d164bd344
Added get_terminal() method (Issue #412 )
6 years ago