parser.py (11028:3a5190683bf2) parser.py (11029:32604f9e190b)
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 ')'"
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], p[3], p[5])
672 p[0] = ast.MemberMethodCallExprAST(self, p[1],
673 ast.FuncCallExprAST(self, p[3], p[5]))
673
674 def p_expr__class_method_call(self, p):
675 "aexpr : type DOUBLE_COLON ident '(' exprs ')'"
674
675 def p_expr__class_method_call(self, p):
676 "aexpr : type DOUBLE_COLON ident '(' exprs ')'"
676 p[0] = ast.ClassMethodCallExprAST(self, p[1], p[3], p[5])
677 p[0] = ast.ClassMethodCallExprAST(self, p[1],
678 ast.FuncCallExprAST(self, p[3], p[5]))
677
678 def p_expr__aexpr(self, p):
679 "expr : aexpr"
680 p[0] = p[1]
681
682 def p_expr__binary_op(self, p):
683 """expr : expr STAR expr
684 | expr SLASH expr

--- 57 unchanged lines hidden ---
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 ---