E&S CVS Commit: PEAK-Rules - Added a "state machine interpreter generator" that builds inlined code

pje at eby-sarna.com pje at eby-sarna.com
Sun Jun 24 12:21:47 EDT 2007


Author: pje
Date: Sun Jun 24 12:21:45 2007
New Revision: 2314

URL: http://svn.eby-sarna.com?rev=2314&view=rev
Log:
Added a "state machine interpreter generator" that builds inlined code for
interpreting a dispatch tree.  It's also general enough to be used as an
all-purpose state machine interpreter generator, if you should have some
other reason to need one.  :)  Now all we need are some state-machine
actions that do dispatching, and we'll be able to generate generic
functions with this, at least manually.  To finish out the implementation,
we'll need an engine to build the trees from rules, and an AST builder to
create rules from Python code.

Modified:
    PEAK-Rules/Code-Generation.txt
    PEAK-Rules/peak/rules/codegen.py
    PEAK-Rules/peak/rules/core.py




More information about the source-changes mailing list