Simon Willison’s Weblog

Subscribe
Atom feed for lexing

1 item tagged “lexing”

2008

python4ply tutorial. python4ply is a parser for Python written in Python using the PLY toolkit, which compiles to Python bytecode using the built-in compiler module. The tutorial shows how to use it to add support for Perl-style 1_000_000 readable numbers.

# 11th March 2008, 5:49 am / python, python4ply, lexing, parsing, compilers