Erez Shinan
dc22f2218f
Merge pull request #767 from gward/lexer-stub
4 years ago
Greg Ward
68e5e86b5b
Add missing type hint for Token constructor
mypy thinks that Token's __init__ is inherited from __str__(). That's
not wrong -- it's just irrelevant, because Token also implements
__new__(). Token's _effective_ constructor signature is determined by
its __new__() method, so that's what I have used in the type hint.
Not clear if 'value' is supposed to be Any, but that's what I need in
my application. And it works just fine!
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
Erez Shinan
074a7c7e12
Merge pull request #766 from MegaIng/patch-3
Adding missing Testcase to `__main__`
4 years ago
MegaIng
a4ddb1e84f
Adding missing Testcase to `__main__`
4 years ago
Erez Sh
c715426f32
Version bump to 0.11.1
4 years ago
Erez Shinan
1a3df7909f
Merge pull request #755 from chanicpanic/fix-index-error
Fix IndexError
4 years ago
Erez Shinan
a98c108bf5
Merge pull request #762 from ThatXliner/patch-1
📝 Updated docs
4 years ago
ThatXliner
fecfe87a40
📝 Updated docs
Replaced the notice saying only `common.lark` is available into "`common.lark`, `python.lark`, and `unicode.lark`".
4 years ago
Erez Sh
27ef9fcbf0
Add information about debug=True (Issue #750 )
4 years ago
Erez Sh
5f230c6663
Version bump
4 years ago
Erez Sh
cd78243b82
Examples: Added new syntax to python grammar
4 years ago
Erez Shinan
ce28af82ca
Merge pull request #759 from MegaIng/fix-758
Make `LALR_CustomLexerWrapper` behave correctly + tests
4 years ago
MegaIng1
2d8bd42315
Make `LALR_CustomLexerWrapper` behave correctly + tests
4 years ago
Chanic Panic
13abf7ca3a
Add test for custom indenter
4 years ago
Erez Shinan
4246477aae
Merge pull request #756 from MegaIng/patch-2
Make `UnexpectedCharacters` print the repr
4 years ago
MegaIng
633a6dfee8
Make `UnexpectedCharacters` print the repr
This is an additional response to #738 .
I also often came across this when unexpectedly having a newline, which would previously result in the message being split up across two lines. This PR makes it easier to identify exactly which special character is causing problems.
4 years ago
Erez Sh
ff155cd21a
Added unicode.lark (Issue #738 )
4 years ago
Chanic Panic
820e185dca
Fix IndexError (issue #754 )
4 years ago
Erez Sh
5149d38e25
tools.nearley: Add support for case-insensitive strings (Issue #753 )
4 years ago
Erez Sh
5b30ba4841
Cleanup, and a few PEP8 changes
4 years ago
julienmalard
f8b0ca3ccc
Code review 3
4 years ago
julienmalard
1b2fc2bda4
Code review #2
4 years ago
julienmalard
364f9ae3a5
Response to code review
4 years ago
julienmalard
02c39a84db
Skipping this test for Python 2 for now.
4 years ago
julienmalard
e5081420c6
Add encoding specification for Python 2
4 years ago
julienmalard
74c94bb369
Tests now pass!
4 years ago
julienmalard
b01c283d47
Failing test
4 years ago
Erez Sh
ab0781d8ab
Merge branch 'chanicpanic-fix-cycle-handling'
4 years ago
Erez Sh
16f2f73d15
Adjust PR - Change warning to debug
4 years ago
Erez Sh
26643eef84
Merge branch 'fix-cycle-handling' of https://github.com/chanicpanic/lark into chanicpanic-fix-cycle-handling
4 years ago
Erez Sh
1a44f8ff91
Release candidate
4 years ago
Chanic Panic
e3c7564fa0
Add debug attribute to ForestToParseTree
4 years ago
Chanic Panic
d6ef539199
Add tests for SPPF cycles
4 years ago
Chanic Panic
c017525e50
Fix issues with SPPF cycle handling
4 years ago
Erez Sh
19fc3c7520
Small fix to Earley debuging
4 years ago
Erez Shinan
0aac2760c8
Merge pull request #739 from imba-tjd/patch-1
4 years ago
谭九鼎
3d0fe705fb
docs/chore: Of -> of
4 years ago
Erez Shinan
20b55fff56
Merge pull request #728 from wiene/fix_typo
Fix a typo
4 years ago
Fabio Zadrozny
661eca61f4
Change typing in lark.pyi: Any -> UnexpectedInput
4 years ago
Erez Shinan
577765ce80
Merge pull request #734 from fabioz/patch-1
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
Erez Sh
762fd82da1
Updated link to SPPF explanation
4 years ago
Erez Sh
2f2f7e70e7
Added SPPF explanation page (mirror, original site went down)
4 years ago
Erez Sh
3aab72fffd
Merge branch 'MegaIng-custom_import_sources'
4 years ago
Erez Sh
bc3923aed8
Added more terminals to grammars/ folder
4 years ago
Erez Sh
f2d66a6d5c
Merge branch 'custom_import_sources' of https://github.com/MegaIng/lark into MegaIng-custom_import_sources
Resolved conflicts manually /erez
4 years ago
Erez Shinan
2170e7edc8
Merge pull request #731 from decorator-factory/master
Add documentation on the `x` regexp flag
4 years ago
decorator-factory
d82264d5c6
Add documentation on the `x` regexp flag
Multiline regexps were added in https://github.com/lark-parser/lark/pull/645
4 years ago