If statements work with the addition of jmp and jnz

This commit is contained in:
Nathan Braswell
2018-02-27 21:27:29 -05:00
parent adcebb3284
commit dad97a25a5
2 changed files with 51 additions and 4 deletions

View File

@@ -231,6 +231,12 @@ obj type (Object) {
}
return false
}
fun is_bool(): bool {
match (base) {
base_type::boolean() return true
}
return false
}
fun is_function(): bool {
match (base) {
base_type::function() return true