Erez Shinan
9848cac9f0
Improved Lark's error reporting for grammar syntax errors (Based on PR #129 )
6年前
Erez Shinan
599b80e30a
Added example for error reporting with LALR
6年前
Erez Shinan
d46318c725
Merge branch 'pr_accept' (Containing #129 with corrections)
6年前
Erez Shinan
880f42dd12
Corrections to PR and added get_context
6年前
DrSlump
e69d567bce
example driven parser errors
6年前
Erez Shinan
b22268db6f
Merge pull request #128 from psboyce/patch-2
Fix order of members when pickling Token
6年前
Parker
138f1d5d76
Fix order of members when pickling Token
I found this while porting Token to C, essentially the value and pos_in_stream members of Token were swapped in ``__reduce__``, which means running ``pickle.loads`` and ``pickle.dumps`` would result in unpickled tokens whose value was the original's position in stream, and vice versa. In my C extension this caused a TypeError exception, but the behavior will have to be corrected in both.
6年前
Erez Shinan
04c0b04add
Improvements based on the PR of @drslump ( https://github.com/erezsh/lark/pull/125 )
Mostly improvements to memory consumption.
6年前
Erez Shinan
61afbed17a
A minor style fix (a possible memory usage improvement)
6年前
Erez Shinan
b9e1e444c9
Added SlottedTree
6年前
Erez Shinan
b951b5f79c
Significant reduction in memory consumption (Saving only parse-table instead of analysis instance)
6年前
Erez Shinan
ba0dc789a3
Significantly better memory performance (Thanks @drslump!)
Added __slots__ to RulePtr and Token, resulting in significantly lower memory consumption.
As suggested by @drslump .
6年前
Erez Shinan
eb6e809ffc
Version bump
6年前
Erez Shinan
4f2330fc9b
Fixed bug in Earley prioritization
6年前
Erez Shinan
25c3c51b1c
Fixed bug in Earley: A tree builder optimization clashed with explicit ambiguity
6年前
Erez Shinan
255ef0d973
Added error message for the alias syntax in terminals (Issue #97 )
6年前
Erez Shinan
1c57445fdc
Merge pull request #104 from night199uk/token_pickle
Ensure Tokens can be pickled correctly
6年前
night199uk
7be2c04637
Ensure Tokens can be pickled correctly
6年前
Erez Shinan
d210087cb5
Updated setup.py. How long has it been saying 'Alpha'? Hmm..
6年前
Erez Shinan
bc159cd364
Merge pull request #88 from cclauss/patch-2
Python 3.2 and 3.3 are End of Life
6年前
Erez Shinan
eba4a604cb
Added tests for standalone generator
6年前
Erez Shinan
d77f93c818
Standalone generator working again. Updated examples
6年前
Erez Shinan
52d4ce2990
Merge pull request #102 from night199uk/functools
Allow functools partials to be used with the InlineTransformer
6年前
Erez Shinan
3eebd4ad4b
Version bump
6年前
Erez Shinan
327cca8c00
Added 'considered_rules' to exceptions, to help users debug
6年前
night199uk
96e0bee87a
Allow functools partials to be used with the InlineTransformer
6年前
Erez Shinan
d5c617f0fe
BUGFIX: Non-linearity in tree construction, causing performance issues for large inputs (Issue #94 )
6年前
Erez Shinan
c0dd6c8aaa
Update README.md
6年前
Erez Shinan
809857091f
Merge pull request #93 from micaiahparker/master
added UnexpectedToken to __init__ for help unit testing
6年前
Micaiah Parker
57bdfac018
added UnexpectedToken to __init__ for help unit testing
6年前
Erez Shinan
ebdad8f144
Refactored parse_tree_builder, much small and cleaner now
6年前
Erez Shinan
bb0b9aa729
BUGFIX: Token and Derivation get compared in _compare_drv (Issue #91 )
6年前
Erez Shinan
db1dabc87b
Merge pull request #89 from psboyce/patch-1
Use a nested loop for flow control instead of catching StopIteration
6年前
Parker
ce26c7cced
Use loops for flow control instead of catching exceptions
While optimizing hot spots in a tool I wrote I saw this issue. Changing this to use a for loop granted a minor speed boost to my script.
6年前
cclauss
7ddb92194e
Python 3.2 and 3.3 are End of Life
* https://devguide.python.org/#branchstatus
* https://travis-ci.org/erezsh/lark/jobs/343033324#L447
* https://travis-ci.org/erezsh/lark/jobs/343033325#L447
6年前
Erez Shinan
834dc9da22
Version bump
6年前
Erez Shinan
6578742c06
BUGFIX: Undefined symbols (Issue #87 )
6年前
Erez Shinan
84d5bd6382
BUGFIX: SIGNED_FLOAT matched an int... (Issue #84 )
6年前
Erez Shinan
7d11dfa5cd
FEATURE: Added support for ranged-repeat for rules and terminals (Issues #75 , #19 )
Syntax: symbol~number
| symbol~min..max
Example:
HEXCOLOR: "#" (HEXDIGIT~3 | HEXDIGIT~6)
short_sentence: word~4..20
Added range for tokens
6年前
Erez Shinan
1cc8bc9848
Refactoring and bugfixes in reconstruct.py
6年前
Erez Shinan
07f45a0bd3
Style fixes
6年前
Erez Shinan
b90b0a215f
Fixed reconstruct (Issue #72 )
6年前
Erez Shinan
9d84c52140
Better error message for reduce collisions in lalr
6年前
Erez Shinan
6c28010581
Simplified grammar analysis. Improved performance of FIRST/FOLLOW calculations
6年前
Erez Shinan
710cb6d20b
Added more information in UnexpectedInput exception (Issue #78 )
6年前
Erez Shinan
22e525f53e
Fixed propagate positions. Added lexer_callbacks option.
6年前
Erez Shinan
443a9544e4
Updated README
6年前
Erez Shinan
d0941cabbe
Version bump
6年前
Erez Shinan
0129bec866
Merge branch 'cyk'
6年前
Erez Shinan
3d8b8b4725
A few more adaptations
6年前