greatly reduce the number of goal expansions done in callable if/then/else
This commit is contained in:
@@ -284,6 +284,7 @@ pub enum SystemClauseType {
|
||||
GetBall,
|
||||
GetCurrentBlock,
|
||||
GetCutPoint,
|
||||
GetStaggeredCutPoint,
|
||||
GetDoubleQuotes,
|
||||
InstallNewBlock,
|
||||
Maybe,
|
||||
@@ -525,6 +526,7 @@ impl SystemClauseType {
|
||||
&SystemClauseType::Fail => atom!("$fail"),
|
||||
&SystemClauseType::GetBall => atom!("$get_ball"),
|
||||
&SystemClauseType::GetCutPoint => atom!("$get_cp"),
|
||||
&SystemClauseType::GetStaggeredCutPoint => atom!("$get_staggered_cp"),
|
||||
&SystemClauseType::GetCurrentBlock => atom!("$get_current_block"),
|
||||
&SystemClauseType::InstallNewBlock => atom!("$install_new_block"),
|
||||
&SystemClauseType::NextEP => atom!("$nextEP"),
|
||||
@@ -705,6 +707,7 @@ impl SystemClauseType {
|
||||
(atom!("$get_cont_chunk"), 3) => Some(SystemClauseType::GetContinuationChunk),
|
||||
(atom!("$get_current_block"), 1) => Some(SystemClauseType::GetCurrentBlock),
|
||||
(atom!("$get_cp"), 1) => Some(SystemClauseType::GetCutPoint),
|
||||
(atom!("$get_staggered_cp"), 1) => Some(SystemClauseType::GetStaggeredCutPoint),
|
||||
(atom!("$install_new_block"), 1) => Some(SystemClauseType::InstallNewBlock),
|
||||
(atom!("$quoted_token"), 1) => Some(SystemClauseType::QuotedToken),
|
||||
(atom!("$nextEP"), 3) => Some(SystemClauseType::NextEP),
|
||||
|
||||
Reference in New Issue
Block a user