示例#1
0
文件: parser.py 项目: jwilk/jtc
 def p_call_e_noargs(self, p):
     'prefix_e : IDENT LPAREN RPAREN'
     p[0] = expression.call(expression.reference(p[1], p.lexpos(1)), [], p.lexpos(1))
示例#2
0
文件: parser.py 项目: jwilk/jtc
 def p_call_e(self, p):
     'prefix_e : IDENT LPAREN expr_list RPAREN'
     p[0] = expression.call(expression.reference(p[1], p.lexpos(1)), p[3], p.lexpos(1))