31 lines
800 B
Rust
31 lines
800 B
Rust
mod formulas;
|
|
mod helpers;
|
|
mod names;
|
|
mod terms;
|
|
|
|
pub(crate) use helpers::word_boundary;
|
|
pub use names::{function_or_predicate_name, variable_name};
|
|
pub use terms::term;
|
|
//pub use formulas::formula;
|
|
|
|
pub struct Declarations
|
|
{
|
|
function_declarations: std::cell::RefCell<crate::FunctionDeclarations>,
|
|
predicate_declarations: std::cell::RefCell<crate::PredicateDeclarations>,
|
|
variable_declaration_stack: std::cell::RefCell<crate::VariableDeclarationStack>,
|
|
}
|
|
|
|
impl Declarations
|
|
{
|
|
pub fn new() -> Self
|
|
{
|
|
Self
|
|
{
|
|
function_declarations: std::cell::RefCell::new(crate::FunctionDeclarations::new()),
|
|
predicate_declarations: std::cell::RefCell::new(crate::PredicateDeclarations::new()),
|
|
variable_declaration_stack:
|
|
std::cell::RefCell::new(crate::VariableDeclarationStack::new()),
|
|
}
|
|
}
|
|
}
|