[pypy-svn] r66539 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools

benjamin at codespeak.net benjamin at codespeak.net
Thu Jul 23 16:32:21 CEST 2009


Author: benjamin
Date: Thu Jul 23 16:32:20 2009
New Revision: 66539

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/Python.asdl
Log:
add a Const node to store the results of constant folding

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/Python.asdl
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/Python.asdl	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/Python.asdl	Thu Jul 23 16:32:20 2009
@@ -77,6 +77,9 @@
 	     | List(expr* elts, expr_context ctx) 
 	     | Tuple(expr *elts, expr_context ctx)
 
+             -- PyPy modification
+             | Const(object value)
+
 	      -- col_offset is the byte offset in the utf8 string the parser uses
 	      attributes (int lineno, int col_offset)
 



More information about the Pypy-commit mailing list