about to start implimentation of if statments, and add not

This commit is contained in:
2023-03-11 15:26:25 +00:00
parent 3a449dec63
commit 27a1abe160
8 changed files with 65 additions and 19 deletions

View File

@@ -55,10 +55,12 @@ func runVal(line any, stack stack, stacklevel int) (any, ArErr) {
return runOperation(x, stack, stacklevel+1)
case dowrap:
return runDoWrap(x, stack, stacklevel+1)
case CallJumpStatment:
return runJumpStatment(x, stack, stacklevel+1)
case CallReturn:
return runReturn(x, stack, stacklevel+1)
case ArDelete:
return runDelete(x, stack, stacklevel+1)
case not:
return runNot(x, stack, stacklevel+1)
}
fmt.Println("unreachable", reflect.TypeOf(line))
panic("unreachable")