get closer to generating real ast/dot

This commit is contained in:
Nathan Braswell
2015-12-06 15:15:33 -05:00
parent f312b3f02f
commit 803b415220
5 changed files with 129 additions and 33 deletions

View File

@@ -92,6 +92,8 @@ obj string (Object, Serializable) {
}
fun length():int { return data.size; }
fun operator!=(other: ref string): bool return !(*this ==other)
fun operator!=(other: *char): bool return !(*this==other)
fun operator==(other: ref string): bool {
// you were too good for this world
//return length() == other.length() && !util::range(length()).any_true(fun(i: int):bool { return data[i] != other[i]; } )