Skip to content

Latest commit

 

History

History
35 lines (18 loc) · 847 Bytes

README.md

File metadata and controls

35 lines (18 loc) · 847 Bytes

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?