Erez Sh
8f7e50e520
Examples: Removed warnings from python3.lark
3 years ago
Erez Sh
df269f6121
Examples: Fixed python3.lark for reconstruction (but maybe a bug in reconstructor?)
3 years ago
Erez Sh
d26a1c5bc6
BUGFIX: Regression in lexer-only mode (parser=None)
3 years ago
Peter Wienemann
d28eba4f9a
Fix typos in comment of example code
3 years ago
Erez Sh
155f4a8c0f
Examples: Tiny fix
3 years ago
Erez Sh
d433e30659
Docs: Add merge_transformer; fix docstrings for sphinx
3 years ago
Erez Sh
ca1131a3a1
Examples: Moved example into 'composition' folder, and improved it
3 years ago
Robin A. Dorstijn
fb8800914b
Added advanced example for merge_transformers
3 years ago
Erez Sh
6a027982c7
Tiny fix to PR
3 years ago
Erez Sh
6872404f11
Improvements to the Python3 grammar
3 years ago
Erez Sh
55642be13c
Tiny adjustments
3 years ago
Erez Sh
22f50e9490
Examples: A minor fix
3 years ago
Erez Sh
7fdd59849b
Examples: A few minor changes
3 years ago
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