Erez Sh
3bc070bc1d
Change how propagate_positions work
3 years ago
Erez Sh
ae4504e0da
Fixed .pyi file for propagate_positions
3 years ago
Erez Sh
2737e5cfe0
Added option: propagate_positions='ignore_ws'
3 years ago
MegaIng1
2eb5c746ff
Removed safe_cache option
3 years ago
Erez Sh
22c289126f
Rename ParserPuppet -> InteractiveParser
3 years ago
Erez Sh
2a1b03bc65
Rename ParserPuppet -> InteractiveParser
3 years ago
MegaIng1
704e7552bd
Added support for atomicwrites
3 years ago
MegaIng1
754f08a622
Added get_puppet, helpers and tests
3 years ago
MegaIng1
2e46211fd6
A few updates to stubs ( fix #856 )
3 years ago
MegaIng1
5db3003edb
Updated stubs
4 years ago
Erez Sh
a7c71f32cc
Fixed Lark.lex(), added dont_ignore option, added tests for it.
4 years ago
Greg Ward
11a0052eb5
Fix incorrect type hint for 'lexer' argument to Lark constructor
The code is crystal clear:
assert lexer in ('standard', ...) or issubclass(lexer, Lexer)
But the type hint said that lexer must be an _instance_ of Lexer, not
a subclass. This change fixes it to require a subclass of Lexer.
4 years ago
Fabio Zadrozny
661eca61f4
Change typing in lark.pyi: Any -> UnexpectedInput
4 years ago
Fabio Zadrozny
5735d29f42
Add on_error to parse lark.pyi
4 years ago
Fabio Zadrozny
6d4b0c9676
Fix lark.pyi stub syntax
4 years ago
MegaIng1
dcde0bcbe9
Prevent terminals from being filtered out when used in always_accept
4 years ago
MegaIng1
5f7a5d428a
renamed `source_code` -> `source_grammar`
4 years ago
MegaIng1
a4260110ff
added PackageResource
4 years ago
MegaIng1
f7d466dc7d
added PackageResource
4 years ago
MegaIng1
a50fc10773
import_paths->sources, source->source_path, various implementation changes
4 years ago
MegaIng1
009cc10590
Added `FromPackageLoader` and `open_from_package`
4 years ago
MegaIng1
53b3e12bba
Added `import_sources`
4 years ago
MegaIng1
c93106f143
Tests for bytes parser (credit to @ctrlcctrlv )
4 years ago
MegaIng1
0c89189b5f
Support for bytes parser
4 years ago
Inky
fcaf10ac4d
Fixes caching when custom lexers are used
4 years ago
Inky
a379f7fc22
Added cache option for Lark stub
4 years ago
julienmalard
86a162d6d8
Added `regex` module as optional mode.
4 years ago
Erez Sh
f04a2167d6
Fixes to mypy stubs (Issue #561 )
4 years ago
Erez Sh
9cc57abd8a
Added 'cache' option to Lark (Issue #479 )
4 years ago
MegaIng1
926c98bd41
Renamed global_flags to g_regex_flags
4 years ago
MegaIng1
3a97029853
Added global_flags option to Lark (+ test)
4 years ago
Erez Sh
7538c93080
Fixed for mypy (including issue #532 )
5 years ago
nic
97975532ac
Fix lexer_callback arg in stub for Lark constructor
5 years ago
KmolYuan
803b1fe79e
Apply changes and extend more names.
5 years ago
KmolYuan
39aa08d223
Split out stubs.
5 years ago
KmolYuan
25db16dd73
Add stubs for PEP 561.
5 years ago