remove symbols

This commit is contained in:
Nathan Braswell
2015-12-05 17:31:11 -05:00
parent e45df51e70
commit 0f0d49e4be
2 changed files with 48 additions and 0 deletions

View File

@@ -77,6 +77,9 @@ obj symbol (Object, Serializable) {
util::unpack(terminal, pos) = serialize::unserialize<bool>(it, pos)
return pos
}
fun equal_wo_data(other: ref symbol): bool {
return name == other.name && terminal == other.terminal;
}
fun operator==(other: ref symbol): bool {
return data == other.data && name == other.name && terminal == other.terminal;
}