Halt to halt the VM
Some checks failed
Build / build (push) Failing after 6m4s
Publish Image / publish (push) Failing after 25s
Test / build (push) Failing after 5m49s

This commit is contained in:
Chuck Smith
2024-03-30 14:17:20 -04:00
parent 3b6df3e813
commit c8de195ac8
4 changed files with 74 additions and 19 deletions

View File

@@ -86,6 +86,7 @@ func (c *Compiler) Compile(node ast.Node) error {
return err
}
}
c.emit(code.OpHalt)
case *ast.ExpressionStatement:
c.l++