Allen Shorts’ parsley

Allen Shorts’s Parsley “is a pattern matching and parsing tool for Python programmers”.

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