E&S CVS Commit: PEAK-Rules - Rough starting draft of expression decompiler.

pje at eby-sarna.com pje at eby-sarna.com
Mon Sep 5 18:42:40 EDT 2011


Author: pje
Date: Mon Sep  5 18:42:39 2011
New Revision: 2704

URL: http://svn.eby-sarna.com?rev=2704&view=rev
Log:
Rough starting draft of expression decompiler.

All it does right now is basic Python expressions, but the idea is to 
eventually decompile criteria, predicates, etc. so that error messages 
(and other debugging displays) can show them in a compact, user-friendly 
form, without needing to save the original strings they came from (since 
in many cases, they won't actually come from strings!)

Added:
    PEAK-Rules/peak/rules/debug/
    PEAK-Rules/peak/rules/debug/__init__.py   (with props)
    PEAK-Rules/peak/rules/debug/decompile.py   (with props)
Modified:
    PEAK-Rules/peak/rules/ast_builder.py
    PEAK-Rules/peak/rules/codegen.py
    PEAK-Rules/test_rules.py



More information about the source-changes mailing list