def p_ArgList(t): '''ArgList : Expr | ArgList COMMA Expr''' if len(t) == 2: t[0] = n.Arglist(t[1]) elif len(t) == 4: t[0] = n.Arglist(t[3], t[1]) else: print("arglist error!")