Parsec From Haskell Python 3 Portable
Project description
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
Project details
Release history Release notifications | RSS feed
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.7.4.tar.gz
(6.6 kB
view hashes)