Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/erezsh/plyplus

a friendly yet powerful LR-parser written in Python
https://github.com/erezsh/plyplus

Update README.md

bd2e7d37e4a3a80812a13b84584fd885d5a24f4c authored almost 7 years ago by Erez Shinan <[email protected]>
Update README.md

3274f64d27fccf6ab8e41528c405e598481a3e44 authored almost 7 years ago by Erez Shinan <[email protected]>
Bugfix version bump

61056e44f7efe94bf519feae420dd385ae6ca812 authored almost 8 years ago by Erez Shinan <[email protected]>
Fixed Python3 compatibility issues in pearley.py

e648cba9da0b2d93e362e799280cf494f91ecfb9 authored almost 8 years ago by Erez Shinan <[email protected]>
Better exception handling for pearley

3ae18bb71be3c91567b4e643e318b4b7aafbf4e8 authored almost 8 years ago by Erez Shinan <[email protected]>
Minor version bump

0ba94b10c093d16fc5648528eaa80033b72570bd authored almost 8 years ago by Erez Shinan <[email protected]>
Minor improvements to the Python Grammar, and tests.

958bab340b2fa3db2dee69bbb2a98a1144cde8e4 authored almost 8 years ago by Erez Shinan <[email protected]>
Fixed minor bug described in issues #39

161fc0d312b098fea4a559d3e22b586923b407db authored almost 8 years ago by Erez Shinan <[email protected]>
Version Bump

bd351ca34c45ee19907a9879ec1930f2e0dd978a authored about 8 years ago by Erez Shinan <[email protected]>
Fixed typo in errors

0f6189d374cfb62a239da762ee2aa9b420d6199f authored about 8 years ago by Erez Shinan <[email protected]>
Merge branch 'Smattr-ade0ead5-5920-4a6c-80c9-39fa073f1f35'

3b61585a6ac3ab0b4c17c1664a61da8ffe86c260 authored about 8 years ago by Erez Shinan <[email protected]>
fix ParseError handling in Python 3

Strings are unicode by default in Python 3 and the unicode constructor is gone.
Support for hand...

dc0ac89b080c6602b9a562fc79d1f5f510a67744 authored about 8 years ago by Matthew Fernandez <[email protected]>
fix Python 3 import error

The import rules in Python 3 differ from Python 2 and it does not appear to like
this style of i...

aab97a132d863a9ad65959ae59d56a713ca3f8c0 authored about 8 years ago by Matthew Fernandez <[email protected]>
Version Bump

a6f435ab29442121e7432d662a9bad100166e3e7 authored about 8 years ago by Erez Shinan <[email protected]>
Merge pull request #36 from 15five/mark-no-zip-safe

Mark package as not zip safe

8eed542fab05a7162e55495a812a89dce9295175 authored about 8 years ago by Erez Sh <[email protected]>
Mark package as not zip safe

0d3da028ab11408cffc7ce2453d8ab0ffd74c600 authored about 8 years ago by Paul Logston <[email protected]>
Added shortcuts to grammars

a61b838a36008f2e3d32509b1b723a7a9bdb1bd9 authored over 8 years ago by Erez Shinan <[email protected]>
Optimized pearley by a factor

30b9bb45fe9d87bb3842fbc77a648148df2008dd authored over 8 years ago by Erez Shinan <[email protected]>
Simplified examples/json.py

a30d8a4524e7c1e492fa7fe65e79a410084f369c authored over 8 years ago by Erez Shinan <[email protected]>
Merge branch 'pearley'

4bdcd9f1255beaf41cbb56d37786c1705a24887a authored over 8 years ago by Erez Shinan <[email protected]>
Bumped version & updated README

96963d3d8adf1b9419054b893a2ec246e8533c33 authored over 8 years ago by Erez Shinan <[email protected]>
Added docs

cce87ffc1d9a519d6bdd1aff96286c8e8dc4bcea authored over 8 years ago by Erez Shinan <[email protected]>
Added engine option to plyplus (ply is still default)

ca76dbd54bf785b45e7414e24497b57943f58cc7 authored over 8 years ago by Erez Shinan <[email protected]>
Added the Pearley engine. passing all tests (but slowly)

7cd32425b26cda1c61ead6261c2892c44576d0b0 authored over 8 years ago by Erez Shinan <[email protected]>
Removed unnecessary code

079b71a1e7ea9903d09fd82f0ab70f273c773ad0 authored over 8 years ago by Erez Shinan <[email protected]>
Simpler simplify_tokendefs code

ee54774b3b00e97f11c86e796302f2011bc38484 authored over 8 years ago by Erez Shinan <[email protected]>
Refactoring - Extracted Engine_PLY into engine_ply.py + Other changes

862413236528cce8ab765cd74dd692984456ee66 authored over 8 years ago by Erez Shinan <[email protected]>
Code simplifications

7f9ca5c88a342bf443419b3cd821fcb4b46ad784 authored over 8 years ago by Erez Shinan <[email protected]>
Refactors, Documentation & Optimizations

* Refactored PLY specific functions to Engine_PLY
* Added documentation for plyplus options
* Bu...

4d2d2c1a1d011de522f876acda0fdf8f25d5b44f authored over 8 years ago by Erez Shinan <[email protected]>
Operator Expansion in a seperate pass: More modularity and easier to debug

e2b258221a7a6e197015a76c2c41b7bae09e0b4f authored over 8 years ago by Erez Shinan <[email protected]>
Improved README

ced9377e6c26dcf308dd9f480411af9c8dbe9c56 authored over 8 years ago by Erez Shinan <[email protected]>
Error messages are now classes

This means their values (line, col, type) are now accessible.

(modifications by Erez)

4c385415ce7098cd7010207c4926f658572c12ff authored over 8 years ago by led02 <[email protected]>
Merge pull request #32 from pkociepka/master

Lex/Yacc converter.

573affc85ebf6032df09db7c07f0493516e79cb1 authored almost 9 years ago by Erez Sh <[email protected]>
Lex/Yacc converter.

0f6b8d849900e649a9f56378a802c3113eb5bb1a authored about 9 years ago by Piotr Ociepka <[email protected]>
Version Bump

5a4c8cbe6931635924f234a83b3ff8fb3124476d authored over 9 years ago by Erez Shinan <[email protected]>
Merge pull request #29 from joshuaali/unique-temp-dir

Use unique temporary directory

2b22f43f8fa7380b80fde5b26acca0c881cf16dc authored over 9 years ago by Erez Sh <[email protected]>
Create unique temporary directory for each user

f6dc8bf9c9d09532ded920f4d4d82e16f4c44390 authored over 9 years ago by Joshua Ali <[email protected]>
Merge pull request #28 from joshuaali/yacc-errorlog

Invalid errorlog being passed to yacc in grammer_parser.py

d6dea1f07b04dfaff8beb461ddd3898d1e8ebcf1 authored over 9 years ago by Erez Sh <[email protected]>
Fixed AttributeError

AttributeError: type object 'exceptions.Exception' has no attribute 'warning'
when importing Ply...

18180d08f27ba7f11548821db8a7fd3192739438 authored over 9 years ago by Rafal Macyszyn <[email protected]>
Fix for python3; more grammar checking

2b8d12799f330d0ff74ebb8a6232bf3ea96e8920 authored over 9 years ago by Erez Shinan <[email protected]>
Merge pull request #22 from Smattr/a73d13e9-cc69-4e53-9658-98ecb20d25cc

Fix some comment typos in Python grammar.

f9797220be2f85259631d43613f02b7a5f7af4c0 authored over 9 years ago by Erez Sh <[email protected]>
Fix some comment typos in Python grammar.

d26a9dca6fa3a553a6fc2917e14fb04a37f08f57 authored over 9 years ago by Matthew Fernandez <[email protected]>
Merge pull request #20 from muxator/patch-1

the image of the AST was not visible

0430a7b25a9eccf0f34b731fbfe6b3e14aeedceb authored over 9 years ago by Erez Sh <[email protected]>
Merge pull request #21 from muxator/patch-2

no need for an absolute url

fd7776020b79373498b672abc3a87d51c733b62d authored over 9 years ago by Erez Sh <[email protected]>
no need for an absolute url

6fa5490b9bc0109f8d22521ab404b2d60cec36ee authored over 9 years ago by muxator <[email protected]>
the image of the AST was not visible

569b7a74b0f87bbc696a5c2eb091fc358393b194 authored over 9 years ago by muxator <[email protected]>
A small correction to README.md, just to keep the basic examples working

519a0880a3e44c23e1d515b6b561202ee82e7497 authored almost 10 years ago by Erez Shinan <[email protected]>
A small fix to config.g: Now accept empty values

92eeb9142cd521d7c1d7364a990804ea5b859759 authored almost 10 years ago by Erez Shinan <[email protected]>
Merge pull request #17 from Faulik/patch-1

Typo in python test grammar.

57614ff4d6b69dbfec021d0510ef9b1af5d48fb5 authored almost 10 years ago by Erez Sh <[email protected]>
Update python.g

There was a typo.

ba18548ee95696723f95d57a9b28a123a5a52cf7 authored almost 10 years ago by Faul <[email protected]>
Decoupled the p_* and t_* methods into a callback class

ee591657b13fbee28d7f791f91ecc3d3ae489b7e authored almost 10 years ago by Erez Shinan <[email protected]>
Improved code for tokens with %unless clauses

0464573ea5d357fb9e78b0f2501fc3f31f56b760 authored almost 10 years ago by Erez Shinan <[email protected]>
Refactor and cleanup of ToPlyGrammar

c4a996fcb7642925566e285527237b790294239a authored almost 10 years ago by Erez Shinan <[email protected]>
Run logging.basicConfig() as a default for naive applications.

Without a logger, important messages might get lost,
and newcomers might get very frustrated!

b6f7bec0e3f0a18f5b572f63e4c08bb40fbedda3 authored about 10 years ago by Erez Shinan <[email protected]>
Better verification, and now also verifies tokens.

8477b84f51a098af7411b68d5db8d79ac100e758 authored about 10 years ago by Erez Shinan <[email protected]>
Added grammar verification of undefined rules

Using rules that are not defined result in a silent error in PLY.
A verification phase allows Pl...

2ee0a0a7ab6891731a8f088942a822b0d6e83537 authored about 10 years ago by Erez Shinan <[email protected]>
Bumping version to effect last bugfix in PyPI

de0d350ca89a32b9fb997470039f3c448db60f94 authored over 10 years ago by Erez Shinan <[email protected]>
BUGFIX for issue #16: Now fetching version without importing plyplus

04c7cccd6ee038c5ddf26fa0f79601e876eb58ae authored over 10 years ago by Erez Shinan <[email protected]>
Added the STree.calc_position method, to calculate line/column ranges.

TODO: proper tab support

1ec802cab956d73c7d05ed7ead0a77a60562bdbc authored over 10 years ago by Erez Shinan <[email protected]>
Small refactoring

67938d8cd9b7fcd2be040484ffa9d9981907c0a3 authored over 10 years ago by Erez Shinan <[email protected]>
Fixes for Python3

80c9c4178753dcabad9fd14be8443d3e0feed32e authored almost 11 years ago by Erez Shinan <[email protected]>
Bugfix: logger is no longer a property of grammar in order to allow pickling (basicConfig messes it up)

edf6730693f1f6fe553094b04ed695697fd9d952 authored almost 11 years ago by Erez Shinan <[email protected]>
Merge branch 'symmetric-pickle-cache-mod'

41c437be7b30c8ba18ae10bccb1a485d3df2b9be authored almost 11 years ago by Giel van Schijndel <[email protected]>
Be symmetrical in _cache removing/restoring

I.e. since it's an attribute of STree and we remove it from there when
pickling: also restore it...

2af97b2b7e687c217958f79aac2979158346e062 authored almost 11 years ago by Giel van Schijndel <[email protected]>
PlyPlus is Python3 compliant again, marked version 0.6.0

7620ee88006084922104b944150200620e06939c authored almost 11 years ago by Erez Shinan <[email protected]>
Added the 'cache_grammar' option; Version is now 0.5.7

40bb408c8f5200d89d6e7b225e36e75d5e298783 authored almost 11 years ago by Erez Shinan <[email protected]>
Added methods: remove_kids_by_head, prune_by_head

45157a1981ca56496e6995083f7dc0741b1b5084 authored about 11 years ago by Erez Shinan <[email protected]>
Repharsed concepts in readme

1e711faa3e30ae53f82ea542f2c1b0f57f53e5d8 authored about 11 years ago by Erez Shin <[email protected]>
Python grammar now supports dict-comprehensions

8e97ee4ea1d3ddb3338d7812b8c5015ecd277fb6 authored about 11 years ago by Erez Shin <[email protected]>
Fixed a bug with the EXPAND1 operator (?rule)

2153780a42271dbc28c489c167df1db58e02e7d5 authored about 11 years ago by Erez Shin <[email protected]>
Updated version to 0.5.4

e5eb41139eb74ba30f44240ef4a0b73af2ced18e authored about 11 years ago by Erez Shin <[email protected]>
RE: Fixed a bug where unpickling an STree didn't create it with a _cache attribute

bb8df8ba53937b7095a4d3467b551dcad33a2ef0 authored about 11 years ago by Erez Shin <[email protected]>
Updated version to 0.5.3

45c4b18625519d57d8c22ac44aef503096e90a54 authored about 11 years ago by Erez Shin <[email protected]>
Fixed a bug where unpickling an STree didn't create it with a _cache attribute

2eaa864ac7221f94f5c42cfcfbd680950fadc086 authored about 11 years ago by Erez Shin <[email protected]>
Fixed README link to test module

0ebaa2849cb8010c50651a23fa3d5d2f28fc463d authored over 11 years ago by Erez Shin <[email protected]>
Added leaf generator method to STreeCollection

56a395808d4f5f8c6dcbf276a28e5348d934ee09 authored over 11 years ago by Erez Shin <[email protected]>
Merge branch 'pickling'

88c83a366f79d4fb2b21da043107273800343770 authored over 11 years ago by Giel van Schijndel <[email protected]>
Allow pickling of `parent` attribute on `STree`s

From the pickle documentation:
> Object sharing happens when there are multiple references to th...

bc419e842a7a88fe35766ce005500c2013a8f9e4 authored over 11 years ago by Giel van Schijndel <[email protected]>
Stay closer to regular pickle protocol

Pickle by default pickles obj.__dict__, __getstate__ overrules that.
Rather than returning somet...

1c437f6edb92a619b3baac3da68e36f613ed3f64 authored over 11 years ago by Giel van Schijndel <[email protected]>
Don't assume that every file-like object has a 'name' attribute

When creating `Grammar` instance do not assume that just because we've
received a file-like obje...

32346d858b9b1632e30a88843ced3b455209cc9b authored over 11 years ago by Giel van Schijndel <[email protected]>
Add testcase: creation of Grammar objects from non-standard file objects

Verify that a Grammar can be created from file-like objects other than
Python's standard 'file' ...

7a7c9b2a2a70eb10385bc259fce665346d5c8ac8 authored over 11 years ago by Giel van Schijndel <[email protected]>
Merge tag 'bugfixes' of git://github.com/muggenhor/plyplus

AST: add test cases, fix bugs, refactor

* More thoroughly document expected AST in form of tes...

a408c7309cd40897c12c9e7f3059bb4c0a499c0f authored over 11 years ago by Giel van Schijndel <[email protected]>
refactor parser-rule actions to use same definition for all rules

I.e. use the same action when matching a parser-rule with flags (?#@) as
without. Due to previou...

de9cfcbabf4001b0dea7dee0beb76089487d6bf4 authored over 11 years ago by Giel van Schijndel <[email protected]>
Flatten recursive #rules in-place to significantly reduce tree-depth

Same solution as 8d4860b5bd (that was for in-place expansion of @rules
and ?rules).

In short: w...

b663f64ae107ab107416e2ae3cfb38ab49ea04e9 authored over 11 years ago by Giel van Schijndel <[email protected]>
Add test-case for resursive FLATTENing rules

Specifically verifies that #rules marked for FLATTENing don't produce
unboundedly deep trees, ca...

89ea446c2994e582757d13b8e4b46adc6b5bddc5 authored over 11 years ago by Giel van Schijndel <[email protected]>
Add test cases for the expected structure of FLATTEN rules

Signed-off-by: Giel van Schijndel <[email protected]>

aeeec3e47169d03379079890249a0113ca9d9239 authored over 11 years ago by Giel van Schijndel <[email protected]>
Prevent `IndexError`s when building empty EXPAND/EXPAND1 lists

Signed-off-by: Giel van Schijndel <[email protected]>

8cc69bebfcb2cb0480ac66d07fe1f4b8637bba11 authored over 11 years ago by Giel van Schijndel <[email protected]>
Test whether empty EXPAND1 lists behave as expected

Signed-off-by: Giel van Schijndel <[email protected]>

4d46192344be6baacd3190a3adeb7c3aa3fe6b5c authored over 11 years ago by Giel van Schijndel <[email protected]>
Merge pull request #13 from muggenhor/dont-expand1-lists-with-multiple-items

BUGFIX: Don't expand1 rules (e.g: ?rule) with multiple children

e64c5ee6f6497a501e3dca0e49cd7cc49fdd1e5d authored over 11 years ago by Erez Sh <[email protected]>
Expand children *before* EXPAND1 ?rules

This ensures that EXPAND1 ?rules are never replaced by *multiple*
grand-children of that rule (c...

5af9e0ecfa422dab2dad46896f161fed6cad067e authored over 11 years ago by Giel van Schijndel <[email protected]>
Add testcase to verify non expansion of '?list: item+' rules if more than one item matches

When using the EXPAND1 (?) operator on a rule you don't expect it to
expand if it contains more ...

f160b8457fef697c747307e9d88514136c7edda7 authored over 11 years ago by Giel van Schijndel <[email protected]>
Merge pull request #12 from TheChuckster/patch-1

Updated tutorial.md

889670b019fadf4940e39223d21e6172d920494e authored over 11 years ago by Erez Sh <[email protected]>
Merge pull request #11 from muggenhor/closures-instead-of-exec

Use closures instead of exec and attach location info when we *do* exec()

Doubles parsing per...

3d8147ac2a0ccb09eb7988a2c40523ef85c80512 authored over 11 years ago by Erez Sh <[email protected]>
Update tutorial.md

07db2d695d34be81962cfa21acb7f0b50665ec87 authored over 11 years ago by Charles Moyes <[email protected]>
Execute code SECTIONs in grammar defintion with source info set

Ensure that both the source filename and line numbers are available and
correct. This permits tr...

9fac9422c2790516a8a95bfee565db3f6052115c authored over 11 years ago by Giel van Schijndel <[email protected]>
Use closures instead of eval/exec for parsing callbacks

Use closures instead because they:
* are parsed before execution: showing syntax errors ASAP
*...

fb0770482848207b61c96e8f630dc76b8e71709b authored over 11 years ago by Giel van Schijndel <[email protected]>
Merge pull request #10 from muggenhor/inplace-expansion-for-recursive-rules

Add test case for bug fixed in 8d4860b5bd

a3712aacb8588080be0a454e29dc4d5baf28121c authored over 11 years ago by Erez Sh <[email protected]>
Add test case for bug fixed in 8d4860b5bd

I.e. this test case verifies that recursive rules marked for expansion
*don't* cause stackoverfl...

bf329ca3c1ea82034bddf7a7a28aed5956d9cdbc authored over 11 years ago by Giel van Schijndel <[email protected]>
Merge pull request #9 from muggenhor/inplace-expansion-for-recursive-rules

Expand recursive @rules in-place to significantly reduce tree-depth

e60cdb06155991d06cd9a48cc467299d557309e8 authored over 11 years ago by Erez Sh <[email protected]>
Expand recursive @rules in-place to significantly reduce tree-depth

When running with debug=True PLY uses `repr()` on the produced symbols. STree's `repr`
implement...

8d4860b5bd3390ac4f6d3f464795fdb6a0f34320 authored over 11 years ago by Giel van Schijndel <[email protected]>