Allen Shorts’ parsley¶
Allen Shorts’s Parsley “is a pattern matching and parsing tool for Python programmers”.
Links to Parsley¶
Parsley follows on from Short’s Pymeta, and which he introduced at Pycon 2013. It is based on OMeta.
Summary¶
Parsley is a PEG parser, which generates parsing code in Python from a grammar in OMeta.
Parsley uses TermL to produce syntax trees
Usage in pym¶
Done:
- Read a hosts file with parsley: hosts.py
To Do:
- Read a hosts grammar with Parsley: meta_hosts.py
- Read a Parsley grammar
- Derive a syntax tree from a Parsley-parsed text