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 t t t t = t Listing One """This file contains the lexer rules ...