Erez Shinan
a91eec7f2b
.gitignore should never have been added
6 years ago
Erez Shinan
e800b5dc2b
Merge branch 'file-ext-change' of https://github.com/RobRoseKnows/lark into RobRoseKnows-file-ext-change
6 years ago
Erez Shinan
c1365cadf0
Added cheatsheet PDF
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
34dae9d6aa
Merge branch 'brupelo-master'
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
e75eb86028
Merge pull request #144 from asmodehn/toxing
Added Tox support (for travis testing)
6 years ago
AlexV
2dcccb0160
cleaning up tox.ini
6 years ago
AlexV
ab2ef6d86e
toxing for easy multiversion tests
6 years ago
Erez Shinan
53b01b7a62
Updated README - Build now refering to lark-parser
6 years ago
Erez Shinan
4864a1cf4d
More work
6 years ago
Erez Shinan
5e546f38a9
args decorators actually work now
6 years ago
Erez Shinan
9daacb9082
Refactored transformers, better code
6 years ago
Erez Shinan
1508dcd7c5
Refactored inline_args with smart_decorator
6 years ago
Erez Shinan
55e9d56792
Missed those at merge
6 years ago
Erez Shinan
80848946b2
Merge branch '0.6.0' into new_transformers
Small collisions
6 years ago
Erez Shinan
2b4ef11ebf
Columns now start at 1
6 years ago
Erez Shinan
ad72810baf
Merge branch 'symbols' into 0.6.0
6 years ago
Erez Shinan
ea413fd648
Simplify PrepareAnonTerminals
6 years ago
Erez Shinan
0d56b0cf30
Anon terminals no longer need to start with _
6 years ago
Erez Shinan
7b32ffd83a
Fixed token visibility rules (Issue #109 )
Anonymous tokens would become visible if they had the same value as named tokens.
That's because they are merged for the lexer. But after this change, the rules for
visibility are based on their use in the rule, and not their name or identity.
6 years ago
Erez Shinan
c5e6cf0954
Refactoring to introduce Symbol instances before creating anons
6 years ago
Rob Rose
5a6e604560
Added .gitignore for pyenv
6 years ago
Erez Shinan
1839c324d3
Small refactoring step
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
4a5aa745ea
All tests passing
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
Rob Rose
f92ed2607e
Merge branch 'master' of https://github.com/lark-parser/lark into file-ext-change
- Merging updated upstream into branch for file extension changes.
- Will push so Pull Request has no remaining conflicts.
- Also will change the file type of lark example grammar.
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
4a7a66d773
.lark (preparing)
6 years ago
Erez Shinan
209a3fe8fd
Interface improvements for the Lark instance
6 years ago
Erez Shinan
0f0776c0fa
BUGIX in lexer: Embedding strings overwrote priority (Issue #121 )
6 years ago
Erez Shinan
594a271a4e
Merge pull request #133 from Gentle/interpreter_defaults
Interpreter class: fixed default behavior to return results
6 years ago
Ramon Klass
1854b81ebc
interpreter: default behavior changed to return the values instead of discarding them, added test showcasing the behavior
6 years ago
Erez Shinan
4c89d69d97
Update README.md
6 years ago
Ramon Klass
f5550b3040
Implemented a new visitor class (Interpreter) that works top-down (PR #130 )
It emulates antlr's visitor behavior for a dynamic evaluation order of subtrees
6 years ago
Erez Shinan
9848cac9f0
Improved Lark's error reporting for grammar syntax errors (Based on PR #129 )
6 years ago
Erez Shinan
599b80e30a
Added example for error reporting with LALR
6 years ago
Erez Shinan
d46318c725
Merge branch 'pr_accept' (Containing #129 with corrections)
6 years ago
Erez Shinan
880f42dd12
Corrections to PR and added get_context
6 years ago
DrSlump
e69d567bce
example driven parser errors
6 years ago
Erez Shinan
b22268db6f
Merge pull request #128 from psboyce/patch-2
Fix order of members when pickling Token
6 years ago