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
Erez Shinan
d77f93c818
Standalone generator working again. Updated examples
7 years ago
Erez Shinan
23875c5590
Small fix in Python grammars (misread tuples, issue #68 )
7 years ago
Erez Shinan
4d219ae837
Added standalone example
7 years ago
Erez Shinan
84791b1534
Example JSON parser is now LALR
7 years ago
Erez Shinan
9ad36b3ea0
Fixed to Python3 grammar (Thanks @autocorr )
7 years ago
Erez Shinan
7ad99fffa5
Fixed Python grammars
7 years ago
Erez Shinan
2efbc08854
Support for multiple flags
7 years ago
Erez Shinan
ad30c324f5
Added support for all RE flags.
7 years ago
Erez Shinan
d846627fb7
A few fixes to escaping
7 years ago
Erez Shinan
593446d025
Improved Readme
7 years ago
Erez Shinan
2f11645469
Main README is now shorter and to the point. Added a short examples README
7 years ago
Erez Shinan
7373993102
Oops!! Important bugfix to last commit
7 years ago
Erez Shinan
0d5dd2bd0d
Improved README. Dynamic lexer now generates tokens.
7 years ago