summaryrefslogtreecommitdiff
path: root/src/parsetree.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-12-19 20:23:04 -0500
committerAdrian Thurston <thurston@complang.org>2014-12-19 20:23:04 -0500
commitdb9cfbc7d06ed34f1fe73465d81d3ac0975adaff (patch)
tree406d44a974f7242787b3c632146511785391f325 /src/parsetree.cc
parent12495ae402a5c9d80d467d9baae72f91ebac13cb (diff)
downloadcolm-db9cfbc7d06ed34f1fe73465d81d3ac0975adaff.tar.gz
hacked together some struct (non-tree) semantics
Can new, get and set non-tree objects (very limited features).
Diffstat (limited to 'src/parsetree.cc')
-rw-r--r--src/parsetree.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parsetree.cc b/src/parsetree.cc
index 9f24d836..d514ea47 100644
--- a/src/parsetree.cc
+++ b/src/parsetree.cc
@@ -107,6 +107,12 @@ int CmpUniqueType::compare( const UniqueType &ut1, const UniqueType &ut2 )
}
case TYPE_NIL:
break;
+ case TYPE_STRUCT:
+ if ( ut1.structEl < ut2.structEl )
+ return -1;
+ else if ( ut1.structEl > ut2.structEl )
+ return 1;
+ break;
}
return 0;