[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/devtools/kdevelop4-extra-plugins/python/parser
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2008-01-13 14:33:12
Message-ID: 1200234792.623178.22200.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 760840 by apaku:

remove the uneeded rule 'sliceop' and rename the members on subscript to be
more meaningful.


 M  +0 -6      astbuilder.cpp  
 M  +0 -1      astbuilder.h  
 M  +2 -5      python.g  


--- trunk/playground/devtools/kdevelop4-extra-plugins/python/parser/astbuilder.cpp #760839:760840
@@ -1306,12 +1306,6 @@
     qDebug() << "visitSimpleStmt end";
 }
 
-void AstBuilder::visitSliceop(PythonParser::SliceopAst *node)
-{
-    qDebug() << "visitSliceop start";
-    qDebug() << "visitSliceop end";
-}
-
 void AstBuilder::visitSmallStmt(PythonParser::SmallStmtAst *node)
 {
     qDebug() << "visitSmallStmt start";
--- trunk/playground/devtools/kdevelop4-extra-plugins/python/parser/astbuilder.h #760839:760840
@@ -101,7 +101,6 @@
     virtual void visitReturnStmt(PythonParser::ReturnStmtAst *node);
     virtual void visitShiftExpr(PythonParser::ShiftExprAst *node);
     virtual void visitSimpleStmt(PythonParser::SimpleStmtAst *node);
-    virtual void visitSliceop(PythonParser::SliceopAst *node);
     virtual void visitSmallStmt(PythonParser::SmallStmtAst *node);
     virtual void visitStmt(PythonParser::StmtAst *node);
     virtual void visitSubscript(PythonParser::SubscriptAst *node);
--- trunk/playground/devtools/kdevelop4-extra-plugins/python/parser/python.g #760839:760840
@@ -498,14 +498,11 @@
 -- If a COLON it skips the 'test'. if the next token is not RBRACKET or COMMA after test it can be a COLON.
 -- Else it ends.
    subcriptEllipsis=ELLIPSIS
-    | ( ?[: yytoken != Token_COLON :] subTest=test | 0 )
+    | ( ?[: yytoken != Token_COLON :] begin=test | 0 )
     ( ?[: yytoken == Token_RBRACKET || yytoken == Token_COMMA :] 0
-        | COLON ( subColonTest=test | 0 ) ( sliceop=sliceop | 0 ) )
+        | COLON ( end=test | 0 ) ( COLON ( step=test | 0 ) | 0 ) )
 -> subscript ;;
 
-   COLON ( sliceTest=test | 0 )
--> sliceop ;;
-
    #expr=expr
     ( COMMA [: if (yytoken == Token_IN || yytoken == Token_SEMICOLON || yytoken == Token_LINEBREAK ) { break; } :]
     #expr=expr )*
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic