Web Development
squeam.txt
Associated article: Prototyping Interpreters using Python Lex-Yacc
Tags: Web Development
Published source code accompanying the article by Shannon Behrens in which, to test the Python and PLY environment, he wrote a language called Squeamish that consists of only 850 lines of code. Also see SQUEAM.ZIP.
Prototyping Interpreters using Python Lex-Yacc
by Shannon Behrens
Example 1:
def p_list(t):
'list : LPAREN nodes RPAREN'
#^ ^ ^ ^ This comment is for illustration only.
#t[0] t[1] t[2] t[3]
t[0] = t[2]
Listing One
"""This file contains the lexer rules ...


