https://github.com/evhub/cpyparsing
Cython PyParsing implementation.
https://github.com/evhub/cpyparsing
Last synced: 9 months ago
JSON representation
Cython PyParsing implementation.
- Host: GitHub
- URL: https://github.com/evhub/cpyparsing
- Owner: evhub
- License: other
- Created: 2017-07-04T19:29:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-04T07:17:32.000Z (over 1 year ago)
- Last Synced: 2024-05-14T10:12:51.461Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 2.59 MB
- Stars: 29
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# cPyparsing
[Cython](http://cython.org/) implementation of [PyParsing](https://github.com/pyparsing/pyparsing) created for use in [Coconut](http://coconut-lang.org/) and [Undebt](https://github.com/Yelp/undebt).
Just [`pip install cpyparsing`](https://pypi.org/project/cPyparsing) then `import cPyparsing as pyparsing` or otherwise use `cPyparsing` however you would normally use `pyparsing`.
`cPyparsing` is currently only up-to-date with `pyparsing==2.4.7`—`cPyparsing` has no current plans to support any `pyparsing>=3` features. `cPyparsing` supports Python `2.6+` on Python 2 and Python `3.3+` on Python 3.
Additionally, `cPyparsing` supports an incremental mode that can be enabled with `ParserElement.enableIncremental()`. In incremental mode, if the same grammar is used to first parse some string, then later parse another string that shares a common prefix or suffix, incremental mode will produce substantial performance improvements. Note that incremental mode does not fully preserve parse exception error messages.