Skip to main content

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

0.7.5

  • typo

0.7.6

  • fixed bug in ahead

0.8.0

  • uniform functions as python style

0.8.1

  • uniform functions as python style

Project details


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.1.tar.gz (7.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page