Fix character value handling. String stuff appears to work correctly in bytecode now

This commit is contained in:
Nathan Braswell
2018-03-22 00:51:57 -04:00
parent c056af6e56
commit b8213dfc9f
4 changed files with 12 additions and 2 deletions

View File

@@ -549,9 +549,10 @@ obj ast_transformation (Object) {
}
value_str = new_str
}
} else if (value_str[0] == '\'') //'// lol, comment hack for vim syntax highlighting (my fault, of course)
} else if (value_str[0] == '\'') { //'// lol, comment hack for vim syntax highlighting (my fault, of course)
value_type = type_ptr(base_type::character())
else if (value_str == "true" || value_str == "false")
value_str = value_str.slice(1,-2)
} else if (value_str == "true" || value_str == "false")
value_type = type_ptr(base_type::boolean())
else {
// should differentiate between float and double...