예제 #1
0
 def p_expr__member_method_call_lookup(self, p):
     "aexpr : aexpr '[' exprs ']'"
     p[0] = ast.MemberMethodCallExprAST(self, p[1], "lookup", p[3])
예제 #2
0
 def p_expr__member_method_call(self, p):
     "aexpr : aexpr DOT ident '(' exprs ')'"
     p[0] = ast.MemberMethodCallExprAST(self, p[1], p[3], p[5])