Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for simplepeg, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size simplepeg-1.0.4.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page