Look up variables
This commit is contained in:
parent
f8918628fa
commit
1b4c400bfb
@ -375,7 +375,6 @@ where
|
|||||||
|
|
||||||
let declaration = self.declarations.find_or_create_predicate_declaration(predicate_name,
|
let declaration = self.declarations.find_or_create_predicate_declaration(predicate_name,
|
||||||
arguments.len());
|
arguments.len());
|
||||||
|
|
||||||
return Ok(crate::Formula::predicate(declaration, arguments));
|
return Ok(crate::Formula::predicate(declaration, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -434,9 +434,7 @@ where
|
|||||||
crate::parse::error::Location::new(0, Some(0))))
|
crate::parse::error::Location::new(0, Some(0))))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: implement look-up
|
let declaration = self.variable_declaration_stack.find_or_create(identifier);
|
||||||
let declaration = crate::VariableDeclaration::new(identifier.to_string());
|
|
||||||
let declaration = std::rc::Rc::new(declaration);
|
|
||||||
return Ok(crate::Term::variable(declaration));
|
return Ok(crate::Term::variable(declaration));
|
||||||
},
|
},
|
||||||
_ if is_function_name(identifier) =>
|
_ if is_function_name(identifier) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user