PLY
(Python Lex & Yacc) examples. Version 2.2-1.
Simple examples:
calc
- Simple calculator –
calc.py
classcalc
- Simple calculate defined as a class –
calc.py
Complex examples:
ansic
- ANSI C grammar from K&R –
clex.py
–
cparse.py
BASIC
- A small BASIC interpreter –
basiclex.py
–
basparce.py
GardenSnake
- A simple python-like language –
GardenSnake.py.html
yply
- Converts Unix yacc files to PLY programs –
ylex.py
–
yparse.py
About this page
Suggestions