Refactor Type to be an int
Some checks failed
Publish Image / publish (push) Waiting to run
Test / build (push) Waiting to run
Build / build (push) Has been cancelled

This commit is contained in:
Chuck Smith
2024-03-29 11:01:15 -04:00
parent f65d7bfb1c
commit 12d43c9835
58 changed files with 164 additions and 132 deletions

View File

@@ -78,7 +78,7 @@ func VmREPL(args []string, debug bool) error {
continue
}
if val := mvm.LastPoppedStackElem(); val.Type() != object.NULL_OBJ {
if val := mvm.LastPoppedStackElem(); val.Type() != object.NullType {
fmt.Fprintln(t, val.Inspect())
}
}
@@ -176,7 +176,7 @@ func SimpleVmREPL(args []string, debug bool) {
continue
}
if val := mvm.LastPoppedStackElem(); val.Type() != object.NULL_OBJ {
if val := mvm.LastPoppedStackElem(); val.Type() != object.NullType {
fmt.Println(val.Inspect())
}
}