MegaIng1
6d3477bbc7
Updated lark.lark + added template_lark.lark, showcasing templates
4 years ago
Erez Sh
9ec9acf115
The standalone parser is now licensed under MPL2 (instead of GPL) (Issue #507 )
5 years ago
Erez Sh
de1f619fcd
Bugfix in stand-alone parser (Issue #514 )
5 years ago
MegaIng
9552f001b2
Update lark.lark
5 years ago
MegaIng
ec67938933
Small correction in lark.lark
Added multi-name-imports to the lark.lark grammar.
5 years ago
Erez Sh
182385d7b7
Removed bad syntax: *? and +? no longer accepted by the grammar parser (Issue #511 )
5 years ago
Erez Sh
4db56dc8b0
Added shebang to example script (Issue #504 )
5 years ago
Erez Sh
5682dcc57a
Added python_bytecode example + Tiny bugfix
5 years ago
Erez Sh
b2f1b3bf7c
Small fixes
5 years ago
Erez Sh
b9c81a5450
Refactor: Simplify code by assuming rule.options is never None
5 years ago
Erez Sh
f7a6366b6c
Make the JSON parser fast again
5 years ago
Mike Roberts
ed3c131ca8
Allow comments in rule definitions
5 years ago
Erez Shinan
58d6d9fac1
Added Token.end_pos, and updated docs regarding recent commits
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 Shinan
7b43742afd
Fixed IMAG_NUMBER in the Python3 grammar (Issue #387 )
5 years ago
Erez Shinan
d48e037ca7
Updated standalone example
5 years ago
Rogdham
bb123e0999
Examples: add import example
6 years ago
Rogdham
8ffce48c24
Examples: update lark.lark
Include relative imports and rule rewrite
6 years ago
Erez Shinan
817881bb07
Docs: Fixup
6 years ago
Erez Shinan
01c25dd0c8
Docs: Added instructions on how to run the examples
6 years ago
evandrocoan
48351c3d3e
Trimmed whitespaces and ensured a new line on the end of the file
6 years ago
Haski-server
c2a5f09ad5
number add BIN_NUMBER
Without BIN_NUMBER, the following error occurs:
lark.exceptions.UnexpectedCharacters: No terminal defined for 'b' at line 1 col 2
0b10
^
6 years ago
Erez Shinan
28a8cb1cc7
Improved docs
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
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
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
6d76a4ce8d
visitor_args -> v_args
6 years ago
Erez Shinan
5cb7f2cb78
Added %declare to examples/lark.lark
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
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
4864a1cf4d
More work
6 years ago
Erez Shinan
33caa391d5
Breaking backwards compatibility:
* Removed the scanless parsing feature (dynamic lexing is king)
* Default LALR lexer is now contextual
6 years ago
Erez Shinan
cf7ddeee88
Earley working too
6 years ago
Erez Shinan
67f372c994
Symbols instead of strings - initial
6 years ago
Rob Rose
836735211f
Resolved upstream changes to use new file-extension
- @erezsh added the new Lark reference and some other things using the
current .g extension, so I wanted to resolve them for PR #117
- Renamed lark.g to lark.lark.
- Changed lark_grammar.py to use .lark file extensions.
- Changed urls that used .g to use .lark.
6 years ago
Erez Shinan
0a40137ac7
Update README.md
6 years ago
Erez Shinan
51644a6c58
Added examples/lark.g - Reference implementation of the Lark grammar
(inspired by issue #116 )
6 years ago
Erez Shinan
209a3fe8fd
Interface improvements for the Lark instance
6 years ago
Erez Shinan
599b80e30a
Added example for error reporting with LALR
6 years ago
Rob Rose
ca3d4ca6f4
Changing changes from .lrk to .lark
6 years ago
Rob Rose
ff588714c1
Changed Lark standalone file extension
- Reasoning addressed in Issue #116
- Renamed example and grammars file to use new extension.
- Changed `.g` to new extension of `.lrk` in places where it is
referenced.
7 years ago