# 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
Raw data
{
"_id": null,
"home_page": "https://github.com/Dwarfartisan/pyparsec",
"name": "pyparsec",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "marsliu",
"author_email": "mars.liu@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/dd/1d/ec636317ac94aac1d38c590e81e0a42d5e602841f8ea9b345a65b7c25240/pyparsec-0.8.6.tar.gz",
"platform": null,
"description": "# PyParsec\n\nPyParsec is a Haskell combinator library, PyParsec is a parsec library for python 3+\n\n## Installation\n\n```\npip install pyparsec \n```\n\n## Usage\n\nJust like this:\n\n```\n>>> from parsec.state import BasicState\n>>> from parsec.combinator import many\n>>> from parsec.atom import eq\n>>> simple = \"It is a simple string.\"\n>>> st = BasicState(simple)\n>>> p = eq(\"I\").many\n>>> p(st)\n['I']\n```\n\n## What's New\n\n### 0.6.1\n\n - add built in combinators decorator\n - add ahead\n\n### 0.7.0\n\n - add result class\n\n### 0.7.2\n\n - document\n\n### 0.7.3\n - documents\n - fixed bugs builtin combinators\n\n\n### 0.7.4\n - uniform result status checker\n\n### 0.7.5\n - typo\n\n### 0.7.6\n - fixed bug in ahead\n\n### 0.8.0\n - uniform functions as python style\n\n### 0.8.1 ~ 0.8.4\n- uniform functions as python style\n- fixed buildin methods name\n- add sep_xxx methods to builtin\n\n### 0.8.5\n\nfixed bug in skip parser\n\n### 0.8.6\n\nadd chunks function\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Parsec From Haskell Python 3 Portable",
"version": "0.8.6",
"project_urls": {
"Homepage": "https://github.com/Dwarfartisan/pyparsec"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dd1dec636317ac94aac1d38c590e81e0a42d5e602841f8ea9b345a65b7c25240",
"md5": "d4a0773f6a05f94730cedb92e3483038",
"sha256": "0807920129d134d94b9bd59175ca1126fe34881f17b286b853cbcb0e5a20b169"
},
"downloads": -1,
"filename": "pyparsec-0.8.6.tar.gz",
"has_sig": false,
"md5_digest": "d4a0773f6a05f94730cedb92e3483038",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7732,
"upload_time": "2024-08-02T17:42:23",
"upload_time_iso_8601": "2024-08-02T17:42:23.248417Z",
"url": "https://files.pythonhosted.org/packages/dd/1d/ec636317ac94aac1d38c590e81e0a42d5e602841f8ea9b345a65b7c25240/pyparsec-0.8.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-02 17:42:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Dwarfartisan",
"github_project": "pyparsec",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pyparsec"
}