Erez Shinan
c637f3b35e
Version bump
6 years ago
Erez Shinan
1247a8c330
Improved error messages (as pointed out in issue #181 )
6 years ago
Erez Shinan
0240e1c248
Fixed issue where Lark would throw RecursionError for huge grammars (Issue #181 )
6 years ago
Erez Shinan
f99e2ecc86
Lark grammars are now utf8 by default (Issue #179 )
6 years ago
Erez Shinan
2be35e3e38
Added custom_lexer to examples/README
6 years ago
Erez Shinan
a49df1b2e4
Added option to provide a custom lexer (with example)
6 years ago
Erez Shinan
dee5ac776d
Fix for Python 3.7
6 years ago
Julien Malard
405f6a399d
From and relative type imports seem to work.
6 years ago
Erez Shinan
e7212261b2
Fixed examples for error reporting
6 years ago
Erez Shinan
d11c67fea0
Fixed reconstruct
6 years ago
Erez Shinan
847870fdc8
Improved documentation and code style (minor)
6 years ago
Erez Shinan
6ea4588bcf
Dynamic lexer is now returns the maximum match only. Complete lexing beahvior moved to "dynamic_complete"
Changed dynamic lexer behavior to only match terminals to their maximum length (i.e. greedy match), emulating the standard lexer.
The original dynamic lexer behavior, that attempts to match all appearances of a terminal, has been moved to the "dynamic_complete" lexer.
For example, when applying a terminal "a"+ to the text "aaa":
- dynamic: ["aaa"]
- dynamic_complete: ["a", "aa", "aaa"]
6 years ago
Erez Shinan
0e33217321
Updated version
6 years ago
Erez Shinan
9f666a7459
Merge pull request #168 from lark-parser/0.6.0
0.6.0 - A backwards-incompatible release, with better code & interface
6 years ago
Erez Shinan
fc6169732e
Updated performance comparison to include ANTLR
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
c0cf1b3176
Added some docstrings, removed is_terminal from common
6 years ago
Erez Shinan
818a7173d0
Merge branch 'new_transformers' into 0.6.0
6 years ago
Erez Shinan
c77934f6a2
Fixed nearley
6 years ago
Erez Shinan
6d76a4ce8d
visitor_args -> v_args
6 years ago
Erez Shinan
4b09fa2b08
Update README.md
6 years ago
Erez Shinan
f726f40bec
Update README.md
6 years ago
Erez Shinan
5cb7f2cb78
Added %declare to examples/lark.lark
6 years ago
Erez Shinan
2ee28ce762
Merge branch 'RobRoseKnows-file-ext-change' into 0.6.0
6 years ago
Erez Shinan
a91eec7f2b
.gitignore should never have been added
6 years ago
Erez Shinan
e800b5dc2b
Merge branch 'file-ext-change' of https://github.com/RobRoseKnows/lark into RobRoseKnows-file-ext-change
6 years ago
Erez Shinan
c1365cadf0
Added cheatsheet PDF
6 years ago
Erez Shinan
34cd792ffc
Fixed Python grammars, and a bug in newline detection
6 years ago
Erez Shinan
ac0d49e7ab
Added %declare
6 years ago
Erez Shinan
34dae9d6aa
Merge branch 'brupelo-master'
6 years ago
Erez Shinan
9b8b383510
A requirements file for the examples is an overkill
6 years ago
Erez Shinan
ac219555f9
Improvements
6 years ago
Erez Shinan
895e056e74
Fixes
6 years ago
Bruno Pedrosa
47ff0e99fc
New example showing how to use lark+qscintilla (Issue #150 )
6 years ago
Erez Shinan
6bfc27c11d
New transformers near completion
Nearley tool still needs fixing
6 years ago
Erez Shinan
e75eb86028
Merge pull request #144 from asmodehn/toxing
Added Tox support (for travis testing)
6 years ago
AlexV
2dcccb0160
cleaning up tox.ini
6 years ago
AlexV
ab2ef6d86e
toxing for easy multiversion tests
6 years ago
Erez Shinan
53b01b7a62
Updated README - Build now refering to lark-parser
6 years ago
Erez Shinan
4864a1cf4d
More work
6 years ago
Erez Shinan
5e546f38a9
args decorators actually work now
6 years ago
Erez Shinan
9daacb9082
Refactored transformers, better code
6 years ago
Erez Shinan
1508dcd7c5
Refactored inline_args with smart_decorator
6 years ago
Erez Shinan
55e9d56792
Missed those at merge
6 years ago
Erez Shinan
80848946b2
Merge branch '0.6.0' into new_transformers
Small collisions
6 years ago
Erez Shinan
2b4ef11ebf
Columns now start at 1
6 years ago
Erez Shinan
ad72810baf
Merge branch 'symbols' into 0.6.0
6 years ago
Erez Shinan
ea413fd648
Simplify PrepareAnonTerminals
6 years ago
Erez Shinan
0d56b0cf30
Anon terminals no longer need to start with _
6 years ago
Erez Shinan
7b32ffd83a
Fixed token visibility rules (Issue #109 )
Anonymous tokens would become visible if they had the same value as named tokens.
That's because they are merged for the lexer. But after this change, the rules for
visibility are based on their use in the rule, and not their name or identity.
6 years ago