[Python-checkins] python/dist/src/Parser Python.asdl, 1.1.2.11, 1.1.2.12
jhylton@users.sourceforge.net
jhylton at users.sourceforge.net
Wed Oct 12 05:18:11 CEST 2005
Update of /cvsroot/python/python/dist/src/Parser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12337/Parser
Modified Files:
Tag: ast-branch
Python.asdl
Log Message:
Add line numbers to expressions.
The line numbers aren't used yet, but should make it possible to
generate correct line numbers (e.g. co_lnotab, co_firstlineno).
Several tests fails because of the incorrect line numbers currently
generated.
Index: Python.asdl
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/Attic/Python.asdl,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -d -r1.1.2.11 -r1.1.2.12
--- Python.asdl 13 Apr 2005 19:59:20 -0000 1.1.2.11
+++ Python.asdl 12 Oct 2005 03:18:07 -0000 1.1.2.12
@@ -72,6 +72,8 @@
| List(expr* elts, expr_context ctx)
| Tuple(expr *elts, expr_context ctx)
+ attributes (int lineno)
+
expr_context = Load | Store | Del | AugLoad | AugStore | Param
slice = Ellipsis | Slice(expr? lower, expr? upper, expr? step)
More information about the Python-checkins
mailing list