PyParsec
PyParsec is a Haskell combinator library, PyParsec is a parsec library for python 3+
Installation
pip install pyparsec
Usage
Just like this:
>>> from parsec.state import BasicState
>>> from parsec.combinator import many
>>> from parsec.atom import eq
>>> simple = "It is a simple string."
>>> st = BasicState(simple)
>>> p = eq("I").many
>>> p(st)
['I']
What's New
0.6.1
- add built in combinators decorator
- add ahead
0.7.0
- add result class
0.7.2
- document
0.7.3
- documents
- fixed bugs builtin combinators
0.7.4
- uniform result status checker
0.7.5
- typo
0.7.6
- fixed bug in ahead
0.8.0
- uniform functions as python style
0.8.1 ~ 0.8.4
- uniform functions as python style
- fixed buildin methods name
- add sep_xxx methods to builtin
0.8.5
fixed bug in skip parser
0.8.6
add chunks function
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyparsec-0.8.6.tar.gz
(7.7 kB
view details)
File details
Details for the file pyparsec-0.8.6.tar.gz.
File metadata
- Download URL: pyparsec-0.8.6.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0807920129d134d94b9bd59175ca1126fe34881f17b286b853cbcb0e5a20b169
|
|
| MD5 |
d4a0773f6a05f94730cedb92e3483038
|
|
| BLAKE2b-256 |
dd1dec636317ac94aac1d38c590e81e0a42d5e602841f8ea9b345a65b7c25240
|