Look up functions
This commit is contained in:
parent
1b4c400bfb
commit
82e98e5ec0
@ -467,11 +467,8 @@ where
|
|||||||
crate::parse::error::Location::new(0, Some(0))))
|
crate::parse::error::Location::new(0, Some(0))))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: implement look-up
|
let declaration = self.declarations.find_or_create_function_declaration(
|
||||||
let declaration =
|
function_name, arguments.len());
|
||||||
crate::FunctionDeclaration::new(function_name.to_string(), arguments.len());
|
|
||||||
let declaration = std::rc::Rc::new(declaration);
|
|
||||||
|
|
||||||
return Ok(crate::Term::function(declaration, arguments));
|
return Ok(crate::Term::function(declaration, arguments));
|
||||||
},
|
},
|
||||||
_ => (),
|
_ => (),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user