term_expansion beginnings
This commit is contained in:
@@ -238,8 +238,7 @@ pub enum SystemClauseType {
|
||||
SetDoubleQuotes,
|
||||
SkipMaxList,
|
||||
Succeed,
|
||||
UnwindStack,
|
||||
CompileAndRunQuery
|
||||
UnwindStack
|
||||
}
|
||||
|
||||
impl SystemClauseType {
|
||||
@@ -277,7 +276,6 @@ impl SystemClauseType {
|
||||
&SystemClauseType::SkipMaxList => clause_name!("$skip_max_list"),
|
||||
&SystemClauseType::Succeed => clause_name!("$succeed"),
|
||||
&SystemClauseType::UnwindStack => clause_name!("$unwind_stack"),
|
||||
&SystemClauseType::CompileAndRunQuery => clause_name!("$compile_and_run_query")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -311,7 +309,6 @@ impl SystemClauseType {
|
||||
("$set_double_quotes", 1) => Some(SystemClauseType::SetDoubleQuotes),
|
||||
("$skip_max_list", 4) => Some(SystemClauseType::SkipMaxList),
|
||||
("$unwind_stack", 0) => Some(SystemClauseType::UnwindStack),
|
||||
("$compile_and_run_query", 1) => Some(SystemClauseType::CompileAndRunQuery),
|
||||
_ => None
|
||||
}
|
||||
}
|
||||
@@ -1176,9 +1173,10 @@ impl SubModuleUser for Module {
|
||||
}
|
||||
}
|
||||
|
||||
pub enum Declaration {
|
||||
NonCountedBacktracking(ClauseName, usize), // name, arity
|
||||
pub enum Declaration {
|
||||
Hook(CompileTimeHook, PredicateClause),
|
||||
Module(ModuleDecl),
|
||||
NonCountedBacktracking(ClauseName, usize), // name, arity
|
||||
Op(OpDecl),
|
||||
UseModule(ClauseName),
|
||||
UseQualifiedModule(ClauseName, Vec<PredicateKey>)
|
||||
@@ -1193,10 +1191,10 @@ impl Declaration {
|
||||
|
||||
pub enum TopLevel {
|
||||
Declaration(Declaration),
|
||||
Fact(Term),
|
||||
Fact(Term),
|
||||
Predicate(Predicate),
|
||||
Query(Vec<QueryTerm>),
|
||||
Rule(Rule)
|
||||
Rule(Rule),
|
||||
}
|
||||
|
||||
impl TopLevel {
|
||||
|
||||
Reference in New Issue
Block a user