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

Improved test_grammars by a bit

bbd81a4eef0e74cd9e9ffc93be8f1b7b3440f0de authored over 11 years ago by Erez Shin <[email protected]>
Refactored plyplus.test into __main__, test_parser, test_trees, etc.

Now to run the entire test suite, run: python -m plyplus.test

5e1db7ec4fbd5174bc4efea0806ee2c115ed9293 authored over 11 years ago by Erez Shin <[email protected]>
Re-implemented token-filtering using a visitor (instead of a transformer)

0a380fa3954bb5ee20cb8dbb036127981bef35e0 authored over 11 years ago by Erez Shin <[email protected]>
Fixed a bug when pickling unicode

061745450741f53c5edc5591faff930a0e63c493 authored over 11 years ago by Erez Shin <[email protected]>
Fixed bug in STree: count() method was wrong

7dd5a999a979794fc702f23f2a2d451e05cd71d4 authored over 11 years ago by Erez Shin <[email protected]>
Merge pull request #8 from SpazioDati/master

Adding thread safe QA to README

38b42c831fe23fa5b76b657360cbdf210ec4d8c3 authored over 11 years ago by Erez Sh <[email protected]>
Adding thread safe QA to README

8653377ff0bd06d664654165b041bab18de87ccf authored over 11 years ago by volpino <[email protected]>
Marked as version 0.5.2

27cbcbecaa12d9da94d62c861073fc250cc8d25c authored over 11 years ago by Erez Shin <[email protected]>
Fixed a bug where STransformer did not preserve parents

d77367a9cd076eed1cd6757bfc771e644b0d73ca authored over 11 years ago by Erez Shin <[email protected]>
Added support for pre_<rule> methods in STransformer

9752e498b769c6b990c142a2cb0d6d5727bf42df authored over 11 years ago by Erez Shin <[email protected]>
Fixed bug in STree.leaf and STree.named_tail

3fea4c2f7e43980b21459573b57c8f283ab377bf authored over 11 years ago by Erez Shin <[email protected]>
Fixed json example

1eea045e2a87524dc6601619e438ddaf9df54323 authored almost 12 years ago by Erez Shin <[email protected]>
Marked as version 0.5.1

2e50dfadc06c55a185e913ef08678d85d083bb76 authored almost 12 years ago by Erez Shin <[email protected]>
Added method: STree.leaves_by_pred(..)

031640ef0fa6f28d59895675fa076e4ed7c61184 authored almost 12 years ago by Erez Shin <[email protected]>
Added :is-first-child modifier

ff200625869452e1ac208ef290ff1d2b9f4bc1bc authored almost 12 years ago by Erez Shin <[email protected]>
Added support for parameters in selectors.

Usage:
some_tree.select('some_elem {param}', param=a_tree_to_find)

OR:
some_tree.select('so...

88ca406c0b402f9d97c3d2c180a2fe909526019a authored almost 12 years ago by Erez Shin <[email protected]>
Small optimization to selectors: Use frozenset instead of set

addfc54f8af9fe3abd5ada5297ceec47346580df authored almost 12 years ago by Erez Shin <[email protected]>
Marked as version 0.5 - bumped for a bug-fix

The bug-fix breaks backwards compatibility. If it breaks your code, a
simple solution would be t...

1f8b3884a0ec66e9e4d22619b323d09626239009 authored almost 12 years ago by Erez Shin <[email protected]>
Merge pull request #6 from ray-harris-net/master

Added keep_empty_trees option to Grammar() class and permutation operator.

This commit break ...

a91634370bd1bfb15f74e618457ea70b386e39bf authored almost 12 years ago by Erez Sh <[email protected]>
Added permutation operator. See comments in perm_rule method in plyplus.py and permutations.py example.

77f4e4b70cc68eb0baf03083d86a8dc3b1a2a357 authored almost 12 years ago by Ray Harris <[email protected]>
Added option to keep empty AST sub-trees (default to True) and a JSON parser example that needs this feature.

8cc3f75cf6665bbf85a55264cf7bbcfbf3e32a3e authored almost 12 years ago by Ray Harris <[email protected]>
Optimization: Match modifiers before elements

In my tests, run time was sped up by 5%

4a580ff84dcce35684578caab5c335e006bf77ef authored almost 12 years ago by Erez Shin <[email protected]>
Added leaves() method, which returns a STreeCollection filtered by the head

d2024dd40d4035b7100ee13c847c83181b3dabb3 authored almost 12 years ago by Erez Shin <[email protected]>
Version 0.4.6

b6265b29a82202e62f84fd5933d106aaa1de2c3a authored almost 12 years ago by Erez Shin <[email protected]>
select() now return STreeCollection, which allows chaining select()s

This is a good way to increase specificity, or to force forward-search

3f9f57825892af800b8c0d065bae25544fd4a7b4 authored almost 12 years ago by Erez Shin <[email protected]>
BUGFIX: Didn't select root node when using the ancestor operator (' ')

Bug introduced with the :is-root() feature + bugfix

245c49c785f28467a64e3e34b4fbc2411bf5f134 authored almost 12 years ago by Erez Shin <[email protected]>
Organized STree; added navigation methods (prev_kid, next_kid, ancestors, etc.)

466e68b224b3a6efd53fbdd0d00366d478e627d9 authored almost 12 years ago by Erez Shin <[email protected]>
Version 0.4.5

a341cde4a57fc4d3a82970b06c98d6f8d6d3cdb8 authored almost 12 years ago by Erez Shin <[email protected]>
Added :is-root modifier; fixed bug where selectors went beyond root

Selectors were searching back beyond their root, as long as a 'parent'
attribute existed. Now th...

4027127cdd78de9ae38e86df57a5e25143d50570 authored almost 12 years ago by Erez Shin <[email protected]>
Use ast.literal_eval() instead of eval()

08e76969c247cc5b9eceb43e68142ce9b94bf510 authored almost 12 years ago by Erez Shin <[email protected]>
Small refactoring and style changes, inspired by blackwithwhite666's fork

687441798674d9f926db95b91f6108995dfef254 authored almost 12 years ago by Erez Shin <[email protected]>
Documentation fix; github doesn't like partial urls

7cc09be064afeb24faca1fb41cd861faaba26d28 authored almost 12 years ago by Erez Shin <[email protected]>
Fixed the documentation to accomodate github's URL changes

dcde49748922f4d033fbf66141d847443d72c73f authored almost 12 years ago by Erez Shin <[email protected]>
Forgot to add a crucial file for tests..

4de15a5e8b349a902cc76dcc2570c3e3f86a3ac6 authored almost 12 years ago by Erez Shin <[email protected]>
Removed call to basicConfig. This is a library, not an app

a649c2a1beabb8e3a0b031cad1eaa2c3f226386c authored almost 12 years ago by Erez Shin <[email protected]>
Added expand_into_parent()

e3bc12cf348c912d10e534376de51f39d9f3e83c authored almost 12 years ago by Erez Shin <[email protected]>
Removed the special __repr__ for Str; fixed a very minor bug

90031f0b887437a346c6d03b81f3e3ba1ee222d6 authored almost 12 years ago by Erez Shin <[email protected]>
Version 0.4.4

638b0b15307d22ea7654db0abfac412202092362 authored almost 12 years ago by Erez Shin <[email protected]>
SVisitor no longer recurses. Recursive version moved to SVisitor_Recurse

The new SVisitor is faster and isn't limited by the stack.
Is STransformer next?

a5c43d93a3cfd633b48237c0458b26c56dfe836d authored almost 12 years ago by Erez Shin <[email protected]>
Minor bugfixes

f83898b73d55c3d88237247770573ad52c40f554 authored almost 12 years ago by Erez Shin <[email protected]>
Updated readme

c373f0c29dc839b4dcd367a89a4776e82e6d647e authored almost 12 years ago by Erez Shin <[email protected]>
Added unicode test, re-organized test modules

576d2f66615cbfdc888cce730740cc63eaa6d21d authored almost 12 years ago by Erez Shin <[email protected]>
Added unicode support

94049d3c010c5c945108fdf75169db50428ec015 authored almost 12 years ago by Erez Shin <[email protected]>
Merge pull request #4 from SpazioDati/master

Store generated files in a temporary directory created at import time

8ea8522f0aaff67cd31a4037ee617bb3f1c0654f authored almost 12 years ago by Erez Sh <[email protected]>
store generated files in a temporary directory created at import time

cd70d3918a7f189614b3b5c541967f6ee3b8e92e authored almost 12 years ago by Stefano Parmesan <[email protected]>
Updated tutorial

b78d47fa7e9d3d7e498f843ddb491318636f13bf authored almost 12 years ago by Erez Shin <[email protected]>
Small fix to maintain compatibility with Python 3.3

21671a54016caa7ef055c116c4297344c87a0d2e authored almost 12 years ago by Erez Shin <[email protected]>
Refactor: Allow to specify tree_class when building Grammar

selector.g no longer contains python code

03352cf4603b2f8bd2e38ba6e34b17fcb8f8e967 authored almost 12 years ago by Erez Shin <[email protected]>
Marked as version 0.4.3

d47065b204b027c4269297cabf8714cd6095b7ca authored almost 12 years ago by Erez Shin <[email protected]>
Fixed a bug where repeated use of selector-lists gave wrong results

4edc68b35850d7e388149a966055176ba0b94cba authored almost 12 years ago by Erez Shin <[email protected]>
find_predicate is now deprecated. Use filter instead

cf53af710284b1aa2798d923e0c9bea7460b3958 authored almost 12 years ago by Erez Shin <[email protected]>
STree is now picklable even with parents. Added tests for STree.

"Bug": Pickle removes parents from STree, so calc_parents is required on
load. Currently a test ...

97365e8fb492375a0eea615b1e08145268c2e9de authored almost 12 years ago by Erez Shin <[email protected]>
Added a utils module. Added reduce(), count() methods in STree

a6c6e3f68f2164c2adf6acfab8941a4e91533222 authored almost 12 years ago by Erez Shin <[email protected]>
Bug where (tree != tree) returned incorrect results

bef181a44250a8e835671810f26fc95d5fa43a2b authored about 12 years ago by Erez Shin <[email protected]>
Marked as 0.4.2

bf013a2bfdef19bdbb8e27387c7da969bd134658 authored about 12 years ago by Erez Shin <[email protected]>
Made pylint a little happier, and the code a bit cleaner

92b31eae1c74bb28e95d4b6a1c84961fcfcd2a4a authored about 12 years ago by Erez Shin <[email protected]>
Fixed selector lists - they now work as intended

They aren't very efficient, but that's a problem for another time

15c2b4862d07acf4ac10d63af189fc37892e0614 authored about 12 years ago by Erez Shin <[email protected]>
Selectors: Fixed a bug in modifiers, added simple but significant optimizations

The bug was that a modifier would not be tested if paired with a yield

Selector initialization ...

6115d5116ad60a4deaa4a9f45663b4d55b389f2b authored about 12 years ago by Erez Shin <[email protected]>
Selectors: Added optional formatting with regex escaping

f843fde5c3745103b61f712c27d2af709d59d99e authored about 12 years ago by Erez Shin <[email protected]>
Added STree API: remove_from_parent (if parent is known)

32686e3facdc574b63bf3e56aaa400d9113c2256 authored about 12 years ago by Erez Shin <[email protected]>
marked 0.4.1

f2f534e182b42efb55d3a087b8ad3d9e29c34bba authored about 12 years ago by Erez Shin <[email protected]>
Precompile %unless tokens, resulting in slightly faster lexing

Fixed a bug introduced recently to %unless tokens
(NameError: global name 're' is not defined)

8a5cf0221ca872881256ecaf1b088e5784018593 authored about 12 years ago by Erez Shin <[email protected]>
STree optimizations. ~10% speed-up in unit-tests

fa6e6f7de04c0a5ca793c2e7e157968543497136 authored about 12 years ago by Erez Shin <[email protected]>
Fix in STrees: use StringType instead of str

cacae6112d37d1dbf69816db712e967194abdae1 authored about 12 years ago by Erez Sh <[email protected]>
Disable warning prints from PLY (unused tokens/rules, etc.)

8d97058336ea1ca2cb222dc2e099f5ed3760096b authored about 12 years ago by Erez Shin <[email protected]>
Marked version 0.4 (due to changes in STree API)

* This version includes compatibility with Python 3.3!
* PLY warnings are now disabled.

b3475020d41f2d23fa62e1526bb9d274ed3ade4d authored about 12 years ago by Erez Shin <[email protected]>
Python 3.x compatibility! (python grammar still needs work)

a8c5d98841b76977e6875c3629cdf268ce50a8a2 authored about 12 years ago by Erez Shin <[email protected]>
Small API change in STree api

* Renamed several methods
* Small addition to STree api
* Minor rewrite in calc_parents
* Implem...

65971919d5f3ee3c33efded8d44ba2e87197bc07 authored about 12 years ago by Erez Shin <[email protected]>
Fixed and refactored the Python grammar

48465655a02b5dbfe6dc9bdc20b16adb97ea7f58 authored about 12 years ago by Erez Shin <[email protected]>
Refactored and optimized selectors; significant speed increase

858d64e8aadf57a8dce2c188687cd5afe6811948 authored about 12 years ago by Erez Shin <[email protected]>
Towards a generic cache mechanism in STrees

2fc2ced69fa8d01636a673d2c535a6a6a4d7cd04 authored about 12 years ago by Erez Shin <[email protected]>
Updated tests to use Python's unittest

8b54f2c52dda56f061448c3e05e131a692139a0d authored about 12 years ago by Erez Shin <[email protected]>
print is now treated as a function, as a step towards Python3 support

6659c185f3d9de3603da9835d86eb66767f5629a authored about 12 years ago by Erez Shin <[email protected]>
Marked as version 0.3.1

f81416e73d09c2c0f229e410a199433344ca8764 authored about 12 years ago by Erez Shin <[email protected]>
Updated the docs to match recent changes

1795a8d3dce4c17120c1a3110ab0e2786644c811 authored about 12 years ago by Erez Shin <[email protected]>
Python-parsing tests now work with PyPy (fixed paths incompability)

d2b43a690bacc6b466a52b30abe41250db9dc2eb authored about 12 years ago by Erez Shin <[email protected]>
Added remove_leaf_by_head method

d541ce6f75f0676c0573d5d5a79dff7b702f27e0 authored about 12 years ago by Erez Shin <[email protected]>
Fixed a bug in STree's named_tail and leaf() caused by caching

e3e5e093b369af0320efef9c07c1930679b4d296 authored about 12 years ago by Erez Shin <[email protected]>
Optimizations to the selector engine (incl. caching selectors)

9454dd54b885bd31f11655a5d8749de822448846 authored about 12 years ago by Erez Shin <[email protected]>
Changed the way the "select" method works in STree

Replaced the on-the-fly import, which is slow and ugly, with hot-patching
in __init__.py

5ed3a961b679481bb80777288375e8b9da6d2922 authored about 12 years ago by Erez Shin <[email protected]>
Fixed selector_test.py to fit changes in plyplus and selector syntax

a422459fa243e48f7d27160f6a10cb9809194dd9 authored about 12 years ago by Erez Shin <[email protected]>
Tiny simplification in lexer

1bc2238b22afe959953c7b52ebfe229a91fc8558 authored about 12 years ago by Erez Sh <[email protected]>
Fixed invalid reference in test

2ca5bcdc482a378cec5fec21b5fe610e3c6f03bf authored about 12 years ago by Erez Sh <[email protected]>
Improved STrees

1. Added code to turn all tail strings to mutable.
2. nicer pretty()
3. added remove_leaf_by_id ...

c72654779b1d667edc1afcd0c9963e1f7830b605 authored about 12 years ago by Erez Shin <[email protected]>
Added to version 0.3 (compatibility break)

1fb724a3056edc96ffc72528acd5ea656774d335 authored about 12 years ago by Erez Shin <[email protected]>
Allow multiple yields

fdeb55949f8969cf6dd52e4c2c96210ca4403483 authored about 12 years ago by Erez Shin <[email protected]>
selectors + and ~ had their meaning swapped to conform to css

961fcff367e3e0cb509a8c6b713d53c98196a4d9 authored about 12 years ago by Erez Shin <[email protected]>
Fixed calc in examples

f9ed8ee846b619eb63cf786c7a913bf9453ac1ca authored about 12 years ago by Erez Shin <[email protected]>
Python grammar now uses fragments for increased readability

59c09d4f12b8542d2edb6a3f84805d319bf7b521 authored about 12 years ago by Erez Shin <[email protected]>
Added support for token fragments (and the %fragment directive)

Along with some required refactoring

5bd2eb18b70fba909241b1d445197cab54fbf61e authored about 12 years ago by Erez Shin <[email protected]>
Fixed a bug in %unless: Didn't handle regular expressions correctly

ee5fd7448582f55c8b418765eed9c32e1650a26e authored about 12 years ago by Erez Shin <[email protected]>
Fixed error in error reporting :)

ed381df6e229831d700976bbab78851cdb75fd31 authored about 12 years ago by Erez Shin <[email protected]>
Fixed Python's grammar to support 2.7 octal syntax

7f85595e316b756d962840c047e5182c231c9203 authored about 12 years ago by Erez Shin <[email protected]>
Tests now run on Lib of calling Python

d986820af073aed5d04e57f9ba4e8b1078d154eb authored about 12 years ago by Erez Shin <[email protected]>
Added 'pretty' method to STree

979149d2fc0e80acfa25609e687fe76224960893 authored about 12 years ago by Erez Shin <[email protected]>
Tokens defined inside %unless are not treated as regexps

Dictionary lookup remains as an optimization when tokens are known to be
literals (i.e don't con...

8aa91f02ec153494152f38d320b2441532e6411f authored about 12 years ago by Erez Shin <[email protected]>
Improved readme

d956acc0f084a4fc17dbb7009362ddc2fe433181 authored about 12 years ago by Erez Sh <[email protected]>
Small changes: Comments, refactors, dead-code removal

f1e22384376a11af48e91d39a3a9db4be1d4c74f authored about 12 years ago by Erez Sh <[email protected]>
Improved code, exceptions now reachable from the outside

ae7b90154a6fcca7ab3836767e7cd83efb06a4b7 authored about 12 years ago by Erez Sh <[email protected]>
Expand all repeaters, always. Removed @* and @+ syntax

Breaks backwards-compatability. Set for version 0.2

0f6e83ce1468990d1403949ab1744d8713acb943 authored about 12 years ago by Erez Sh <[email protected]>