def p_define_params_empty(p): """ params : LP RP """ # Defines the 'epsilon' parameter p[0] = [ ID('', value='', args=None, lineno=p.lineno(1), fname=CURRENT_FILE[-1]) ]
def p_paramlist_paramlist(p): """ paramlist : paramlist COMMA ID """ p[0] = p[1] + [ ID(p[3], value='', args=None, lineno=p.lineno(1), fname=CURRENT_FILE[-1]) ]
def p_paramlist_single(p): """ paramlist : ID """ p[0] = [ ID(p[1], value='', args=None, lineno=p.lineno(1), fname=CURRENT_FILE[-1]) ]