Skip to main content

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)

Uploaded Source

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

Hashes for pyparsec-0.8.6.tar.gz
Algorithm Hash digest
SHA256 0807920129d134d94b9bd59175ca1126fe34881f17b286b853cbcb0e5a20b169
MD5 d4a0773f6a05f94730cedb92e3483038
BLAKE2b-256 dd1dec636317ac94aac1d38c590e81e0a42d5e602841f8ea9b345a65b7c25240

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.8.6 This release

1 file

0.8.5

1 file

0.8.4

1 file

0.8.3

1 file

0.8.2

1 file

0.8.1

1 file

0.8.0

1 file

0.7.6

3 files

0.7.5

1 file

0.7.4

1 file

0.7.3

1 file

0.7.2

1 file

0.7.1

1 file

0.7.0

1 file

0.6.1

1 file

0.6.0

1 file

0.5.6

1 file

0.5.5

1 file

0.5.4

1 file

0.5.3

1 file

0.5.2

1 file

0.5.1

2 files

0.5

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page