2020-02-04 16:45:06 +01:00
|
|
|
mod choose_value_in_term;
|
2020-02-04 16:48:33 +01:00
|
|
|
mod operators;
|
2020-02-04 16:45:06 +01:00
|
|
|
|
|
|
|
pub(crate) use choose_value_in_term::*;
|
2020-02-04 16:48:33 +01:00
|
|
|
pub(crate) use operators::*;
|
2020-02-01 19:20:46 +01:00
|
|
|
|
2020-02-03 02:57:45 +01:00
|
|
|
pub(crate) trait AssignVariableDeclarationDomain
|
2020-02-01 21:59:36 +01:00
|
|
|
{
|
2020-02-03 02:57:45 +01:00
|
|
|
fn assign_variable_declaration_domain(&self,
|
2020-02-04 16:45:06 +01:00
|
|
|
variable_declaration: &std::rc::Rc<foliage::VariableDeclaration>, domain: crate::Domain);
|
2020-02-01 21:59:36 +01:00
|
|
|
}
|
2020-02-01 19:20:46 +01:00
|
|
|
|
2020-02-03 02:57:45 +01:00
|
|
|
pub(crate) trait VariableDeclarationDomain
|
2020-02-01 21:59:36 +01:00
|
|
|
{
|
2020-02-03 02:57:45 +01:00
|
|
|
fn variable_declaration_domain(&self,
|
2020-02-04 16:45:06 +01:00
|
|
|
variable_declaration: &std::rc::Rc<foliage::VariableDeclaration>) -> Option<crate::Domain>;
|
2020-02-01 21:59:36 +01:00
|
|
|
}
|
2020-02-01 19:20:46 +01:00
|
|
|
|
2020-02-03 02:57:45 +01:00
|
|
|
pub(crate) trait VariableDeclarationID
|
2020-02-01 19:20:46 +01:00
|
|
|
{
|
2020-02-03 02:57:45 +01:00
|
|
|
fn variable_declaration_id(&self,
|
|
|
|
variable_declaration: &std::rc::Rc<foliage::VariableDeclaration>) -> usize;
|
2020-02-01 19:20:46 +01:00
|
|
|
}
|
|
|
|
|
2020-02-03 02:57:45 +01:00
|
|
|
pub(crate) trait GetOrCreateFunctionDeclaration
|
2020-02-01 19:20:46 +01:00
|
|
|
{
|
2020-02-03 02:57:45 +01:00
|
|
|
fn get_or_create_function_declaration(&self, name: &str, arity: usize)
|
|
|
|
-> std::rc::Rc<foliage::FunctionDeclaration>;
|
2020-02-01 21:59:36 +01:00
|
|
|
}
|
|
|
|
|
2020-02-03 02:57:45 +01:00
|
|
|
pub(crate) trait GetOrCreatePredicateDeclaration
|
2020-02-01 21:59:36 +01:00
|
|
|
{
|
2020-02-03 02:57:45 +01:00
|
|
|
fn get_or_create_predicate_declaration(&self, name: &str, arity: usize)
|
|
|
|
-> std::rc::Rc<foliage::PredicateDeclaration>;
|
|
|
|
}
|
2020-02-01 19:20:46 +01:00
|
|
|
|
2020-02-03 02:57:45 +01:00
|
|
|
pub(crate) trait GetOrCreateVariableDeclaration
|
|
|
|
{
|
|
|
|
fn get_or_create_variable_declaration(&self, name: &str)
|
|
|
|
-> std::rc::Rc<foliage::VariableDeclaration>;
|
2020-02-01 21:59:36 +01:00
|
|
|
}
|