SamuelBonilla / ply-playground

Learning how to use PLY by example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ply-playground

This repo is my testing grounds for learning PLY

##Setup git submodule init

git submodule update

##Example parsers

  • json.py : a custom json parser

    cat data/test.json | python json.py

  • plist.py : a custom plist file parser

    cat data/test.plit | python plist.py

  • indent.py: a demo of parsing a language with significant whitespace

    cat data/test.indent | python indent.py

##Lex-Yacc Resources

I have browsed many links that were useful for learning Lex and Yacc. Here are a few:

  1. Backus-Naur Form
  2. Parsing Python
  3. Lex/Yacc or Hand Code?

About

Learning how to use PLY by example


Languages

Language:Python 100.0%