def p_decl_value(self, p): 'decl : IDENT ASSIGN expr' p[0] = syntax.variable(None, p[1], p[3], p.lexpos(1))
def p_arg(self, p): 'arg : type IDENT' p[0] = syntax.variable(p[1], p[2], None, p.lexpos(2))
def p_decl(self, p): 'decl : IDENT' p[0] = syntax.variable(None, p[1], None, p.lexpos(1))