add top level declarative structure

This commit is contained in:
Mark Thom
2017-05-09 16:26:17 -06:00
parent 9c72177b60
commit 6fa5bad5bf
6 changed files with 34 additions and 46 deletions

View File

@@ -306,10 +306,6 @@ impl Machine {
-> EvalSession
{
if !self.or_stack_is_empty() {
if self.ms.b == 0 {
return EvalSession::QueryFailure;
}
let b = self.ms.b - 1;
self.ms.p = self.ms.or_stack[b].bp;
@@ -386,7 +382,7 @@ impl Machine {
}
pub fn or_stack_is_empty(&self) -> bool {
self.ms.or_stack.is_empty()
self.ms.b == 0
}
pub fn clear(&mut self) {