Erez Sh
385c35f506
Examples: Better doc for create_ast
3 years ago
Erez Sh
22c289126f
Rename ParserPuppet -> InteractiveParser
3 years ago
Erez Sh
e24e06bb13
Added ast_utils + example
4 years ago
Erez Sh
e0e698938c
Examples: Fixes to paths (Issue #780 )
4 years ago
Erez Sh
8cfe52fb77
Examples: Added example of extending the Python grammar
4 years ago
Erez Sh
09bcababcd
Docs & Examples, small improvements
4 years ago
MegaIng1
d98925525f
Fix for slices getting reduce to single getitem
4 years ago
Erez Sh
f32014cc7b
Example: Friendlier reconstruct_python.py
4 years ago
MegaIng1
02035aa141
Added example + Corrected python3.lark
4 years ago
MegaIng1
8b4f874d3d
added example grammar_building.py
4 years ago
Erez Sh
f285cda4f2
Earley error reporting - initial (Issue #760 )
4 years ago
MegaIng1
dd3cf90b2d
Moved `lark.lark` into the standard library.
4 years ago
Erez Sh
cd78243b82
Examples: Added new syntax to python grammar
4 years ago
Erez Sh
bc3923aed8
Added more terminals to grammars/ folder
4 years ago
Chanic Panic
f8a51ca087
Write examples for ForestVisitor and TreeForestTransformer
4 years ago
starwarswii
d385d10739
added tests for lark.lark changes
4 years ago
starwarswii
082e0f3de7
fixed lark.lark requiring newline at the end of grammars
lark.lark didn't parse grammars that didn't have a trailing newline in the file, but lark itself has no problem parsing those grammars
this change makes lark.lark more accurate in reflecting what grammars are parsed by lark.
4 years ago
starwarswii
7ce69c7c91
fixed lark.lark not accepting negative priorities
using `SIGNED_INT` instead of `INT` more closely matches the the grammar used by lark in `load_grammar.py`
4 years ago
Erez Sh
88d4659c29
Improvements to puppet + other small stuff
4 years ago
Omega16
0b99356a39
added make_dot
4 years ago
Erez Sh
1ad46b2a9a
Fixed examples (Issue #669 )
4 years ago
Erez Sh
c9bd6d491f
Fixes for examples
4 years ago
Erez Sh
afebbf7348
Adjustments
4 years ago
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