Fix/refactor value handling: value strings are now parsed in ast_transformation and re-escaped in c_generator, and used raw in bytecode_generator

This commit is contained in:
Nathan Braswell
2018-03-19 21:03:06 -04:00
parent 8907e44cad
commit 91768a042e
4 changed files with 36 additions and 14 deletions

View File

@@ -108,6 +108,10 @@ obj string (Object, Serializable, Hashable) {
data.construct();
return this;
}
fun construct(ammt: int): *string {
data.construct(ammt);
return this;
}
fun construct(str: *char): *string {
var len = 0
while (str[len] != 0) len++