Skip to content
SimplePEGPublic

About

Python version of SimplePEG

Topics

Resources

Stars

7 stars

Watchers

2 watching

Forks

 
 

Latest commit

 

History

22 Commits

Folders and files

Repository files navigation

Python version of SimplePEG

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()

About

Python version of SimplePEG

Topics

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages