Deleted Added
sdiff udiff text old ( 11029:32604f9e190b ) new ( 11049:dfb0aa3f0649 )
full compact
1# Copyright (c) 2009 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 655 unchanged lines hidden (view full) ---

664 p[0] = ast.OodAST(self)
665
666 def p_expr__member(self, p):
667 "aexpr : aexpr DOT ident"
668 p[0] = ast.MemberExprAST(self, p[1], p[3])
669
670 def p_expr__member_method_call(self, p):
671 "aexpr : aexpr DOT ident '(' exprs ')'"
672 p[0] = ast.MemberMethodCallExprAST(self, p[1],
673 ast.FuncCallExprAST(self, p[3], p[5]))
674
675 def p_expr__class_method_call(self, p):
676 "aexpr : type DOUBLE_COLON ident '(' exprs ')'"
677 p[0] = ast.ClassMethodCallExprAST(self, p[1],
678 ast.FuncCallExprAST(self, p[3], p[5]))
679
680 def p_expr__aexpr(self, p):
681 "expr : aexpr"
682 p[0] = p[1]
683
684 def p_expr__binary_op(self, p):
685 """expr : expr STAR expr
686 | expr SLASH expr

--- 57 unchanged lines hidden ---