Erez Shinan
eba4a604cb
Added tests for standalone generator
6 years ago
Erez Shinan
d77f93c818
Standalone generator working again. Updated examples
6 years ago
Erez Shinan
3eebd4ad4b
Version bump
6 years ago
Erez Shinan
327cca8c00
Added 'considered_rules' to exceptions, to help users debug
6 years ago
night199uk
96e0bee87a
Allow functools partials to be used with the InlineTransformer
6 years ago
Erez Shinan
d5c617f0fe
BUGFIX: Non-linearity in tree construction, causing performance issues for large inputs (Issue #94 )
6 years ago
Micaiah Parker
57bdfac018
added UnexpectedToken to __init__ for help unit testing
6 years ago
Erez Shinan
ebdad8f144
Refactored parse_tree_builder, much small and cleaner now
6 years ago
Erez Shinan
bb0b9aa729
BUGFIX: Token and Derivation get compared in _compare_drv (Issue #91 )
6 years ago
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 years ago
Erez Shinan
834dc9da22
Version bump
6 years ago
Erez Shinan
6578742c06
BUGFIX: Undefined symbols (Issue #87 )
6 years ago
Erez Shinan
84d5bd6382
BUGFIX: SIGNED_FLOAT matched an int... (Issue #84 )
6 years ago
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 years ago
Erez Shinan
1cc8bc9848
Refactoring and bugfixes in reconstruct.py
6 years ago
Erez Shinan
07f45a0bd3
Style fixes
6 years ago
Erez Shinan
b90b0a215f
Fixed reconstruct (Issue #72 )
6 years ago
Erez Shinan
9d84c52140
Better error message for reduce collisions in lalr
6 years ago
Erez Shinan
6c28010581
Simplified grammar analysis. Improved performance of FIRST/FOLLOW calculations
6 years ago
Erez Shinan
710cb6d20b
Added more information in UnexpectedInput exception (Issue #78 )
6 years ago
Erez Shinan
22e525f53e
Fixed propagate positions. Added lexer_callbacks option.
6 years ago
Erez Shinan
d0941cabbe
Version bump
6 years ago
Erez Shinan
3d8b8b4725
A few more adaptations
6 years ago
Erez Shinan
b36b8165c7
Small fix
6 years ago
Erez Shinan
648099d7b4
Idiomatic function names and a few other style fixes
6 years ago
Erez Shinan
748e9b7248
All relevant tests passing. Also indentation and other refactoring.
6 years ago
Chris McKinney
d8fbf92fea
Fixed TypeError on pretty-printing tuples in tree
When a tuple is passed as the argument to percent-formatting, its
elements are interpreted as multiple arguments. The pretty printer
previously passed tuples (e.g. those introduced via a Transformer) from
the tree directly to the percent operator, causing a TypeError because
the format string only calls for a single argument. This fix simply
wraps the argument in a one-tuple to ensure it is not interpreted as
multiple arguments if it itself is a tuple.
6 years ago
Erez Shinan
b002ec47fb
BUGFIX: Repeating subrules are now allowed (Issue #61 )
6 years ago
Erez Shinan
d173d6d66b
Validate against zero-width terminals in XEarley (Issue #63 )
6 years ago
Erez Shinan
37c1c0f65f
Better error message for bad regexps (Issue #62 )
6 years ago
Erez Shinan
5fd331be54
BUGFIX: Internally repetitive rules are now handled silently (Issue #60 )
6 years ago
Erez Shinan
8acd77d7ff
Minor fixes in lexer
6 years ago
Ehud Tamir
7c253b9372
Merge CYK parser.
6 years ago
Erez Shinan
4679a348ce
Version bump
6 years ago
Erez Shinan
e697c266a7
Standalone: Significantly reduced generated code size
6 years ago
Erez Shinan
9b0672fda6
Standalone tools now supports postlex
6 years ago
Erez Shinan
a409f2835c
Corrections to the standalone tool
6 years ago
Erez Shinan
5ac4120b71
Stand-alone tool working for LALR+traditional lexer (first commit)
6 years ago
Erez Shinan
da1910f5b6
More refactoring towards standalone
6 years ago
Erez Shinan
07b5469e86
More refactoring, untangling grammar compilation and parse-tree creation
6 years ago
Erez Shinan
7182ba3991
Minor refactoring for the standalone tool (in progress)
6 years ago
Erez Shinan
38c5fd244a
Improved grammar validation and refactored the lexers
6 years ago
Erez Shinan
39e58cb8fd
Post-refactor cleanup
6 years ago
Erez Shinan
1cc4c965e8
Big Refactor: Grammars now build in half the time. Code shorter & cleaner.
6 years ago
Erez Shinan
0ee80e675a
Refactoring for LALR, added the ParseTable class
6 years ago
Erez Shinan
f63174a22c
BUGFIX: Create unless returned duplicate tokens (Issue #56 )
6 years ago
Erez Shinan
e9603b5a1f
Version bump
6 years ago
Erez Shinan
2d04acf227
Version 0.5.0 is out with lots of improvements
6 years ago
Erez Shinan
5f5acca40b
Cleaned up the LALR(1) parser
6 years ago
Kevin Latimer
240cf1ca21
Bug fixes to Transformer_NoRecurse
6 years ago