diff Parser/Python.asdl @ 36786:57322cb2ca11 legacy-trunk

Patch #1440601: Add col_offset attribute to AST nodes.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 01 Mar 2006 22:49:05 +0000
parents 5c36c222e7ca
children 16a64e394602
line wrap: on
line diff
--- a/Parser/Python.asdl	Wed Mar 01 22:45:36 2006 +0000
+++ b/Parser/Python.asdl	Wed Mar 01 22:49:05 2006 +0000
@@ -46,7 +46,8 @@
 	      | Pass | Break | Continue
 
 	      -- XXX Jython will be different
-	      attributes (int lineno)
+	      -- col_offset is the byte offset in the utf8 string the parser uses
+	      attributes (int lineno, int col_offset)
 
 	      -- BoolOp() can use left & right?
 	expr = BoolOp(boolop op, expr* values)
@@ -76,7 +77,8 @@
 	     | List(expr* elts, expr_context ctx) 
 	     | Tuple(expr *elts, expr_context ctx)
 
-	      attributes (int lineno)
+	      -- col_offset is the byte offset in the utf8 string the parser uses
+	      attributes (int lineno, int col_offset)
 
 	expr_context = Load | Store | Del | AugLoad | AugStore | Param