Sasank Chilamkurthy
582e9ab935
move advanced examples to a different folder
4 years ago
Sasank Chilamkurthy
e910acffb1
no symlink
4 years ago
Sasank Chilamkurthy
cb8a549896
inital sphinx gallery
4 years ago
Erez Sh
bf2d9bf7b1
Standalone generator now remove docstrings and comments.
The result is a much smaller file.
4 years ago
Blank Spruce
5559b1a211
Add missing elements in standalone parser
Add:
- missing imports
- __version__ variable
Additionally regenerated json parser example
4 years ago
Erez Sh
00e736fda3
Use accepts in default example (even though it's not necessary)
4 years ago
Erez Sh
bf326104d5
Updated standalone example
4 years ago
Erez Sh
d559e495ee
Added templates example
4 years ago
Erez Sh
7dc00179e6
Lark now loads faster
- Refactored lexer interface into LexerConf
- Lexer now compiles regexps only when used (especially useful for ContextualLexer)
- Lexer now doesn't validate on deserialize (noticable speedup)
4 years ago
Erez Sh
41ade56723
Typo
4 years ago
Erez Sh
66a073d0aa
Added support for error handling, using a puppet parser.
TODO: Add docs
4 years ago
Erez Sh
9cc57abd8a
Added 'cache' option to Lark (Issue #479 )
4 years ago
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