Skip to main content

Python version of SimplePEG

Project description

https://travis-ci.org/SimplePEG/Python.svg?branch=master https://coveralls.io/repos/github/SimplePEG/Python/badge.svg?branch=master

To use, simply do:

>>> from simplepeg import SPEG
>>> parser = SPEG()
>>> parser.parse_grammar('GRAMMAR test b -> "a";')
>>> ast = parser.parse_text('a')
>>> print ast.to_json()

or:

>>> from simplepeg import SPEG
>>> parser = SPEG()
>>> ast = parser.parse('GRAMMAR test b -> "a";', 'a')
>>> print ast.to_json()

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

simplepeg-1.0.4.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file simplepeg-1.0.4.tar.gz.

File metadata

  • Download URL: simplepeg-1.0.4.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for simplepeg-1.0.4.tar.gz
Algorithm Hash digest
SHA256 7a5260ca8e0e22ced17a89d74a7ba217f929fc8970359691f0435d34f6752fde
MD5 fccccf314c45863edbd0ff439b2da2ab
BLAKE2b-256 43bd2b0014000f992cdbf85854e8eeb003660fc5602cbcb27567c8668dc41999

See more details on using hashes here.

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