summaryrefslogtreecommitdiff
path: root/parse/types.def
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-05-13 14:32:44 -0400
committerOri Bernstein <ori@eigenstate.org>2012-05-13 14:32:44 -0400
commitb61653aec1b32d98adbde2d9ff1a34ff412f8e94 (patch)
tree5597f2122f30c7e2b8237e1104537903600269d4 /parse/types.def
parent67a8b4e0b7d43a09fa0f33d49f94a7cf7c9f7cbd (diff)
downloadmc-b61653aec1b32d98adbde2d9ff1a34ff412f8e94.tar.gz
Make looking up builtin vars work.
Diffstat (limited to 'parse/types.def')
-rw-r--r--parse/types.def64
1 files changed, 32 insertions, 32 deletions
diff --git a/parse/types.def b/parse/types.def
index 8059dfc..daf8c2f 100644
--- a/parse/types.def
+++ b/parse/types.def
@@ -1,42 +1,42 @@
-Ty(Tybad)
-Ty(Tyvoid)
+Ty(Tybad, NULL)
+Ty(Tyvoid, "void")
/* start integer types.
* Keep them ordered between start
* and end for faster
* comparisons.*/
-Ty(Tybool)
-Ty(Tychar)
+Ty(Tybool, "bool")
+Ty(Tychar, "char")
-Ty(Tyint8)
-Ty(Tyint16)
-Ty(Tyint)
-Ty(Tyint32)
-Ty(Tyint64)
-Ty(Tylong)
+Ty(Tyint8, "int8")
+Ty(Tyint16, "int16")
+Ty(Tyint, "int")
+Ty(Tyint32, "int32")
+Ty(Tyint64, "int64")
+Ty(Tylong, "long")
-Ty(Tybyte)
-Ty(Tyuint8)
-Ty(Tyuint16)
-Ty(Tyuint)
-Ty(Tyuint32)
-Ty(Tyuint64)
-Ty(Tyulong)
+Ty(Tybyte, "byte")
+Ty(Tyuint8, "uint8")
+Ty(Tyuint16, "uint16")
+Ty(Tyuint, "uint")
+Ty(Tyuint32, "uint32")
+Ty(Tyuint64, "uint64")
+Ty(Tyulong, "ulong")
/*end integer types*/
-Ty(Tyfloat32)
-Ty(Tyfloat64)
-Ty(Tyvalist)
+Ty(Tyfloat32, "float32")
+Ty(Tyfloat64, "float64")
+Ty(Tyvalist, NULL)
/*end atomic types*/
-Ty(Typtr)
-Ty(Tyslice)
-Ty(Tyarray)
-Ty(Tyfunc)
-Ty(Tytuple)
-Ty(Tyvar)
-Ty(Typaram)
-Ty(Tyname)
-Ty(Tystruct)
-Ty(Tyunion)
-Ty(Tyenum)
-Ty(Ntypes)
+Ty(Typtr, NULL)
+Ty(Tyslice, NULL)
+Ty(Tyarray, NULL)
+Ty(Tyfunc, NULL)
+Ty(Tytuple, NULL)
+Ty(Tyvar, NULL)
+Ty(Typaram, NULL)
+Ty(Tyname, NULL)
+Ty(Tystruct, NULL)
+Ty(Tyunion, NULL)
+Ty(Tyenum, NULL)
+Ty(Ntypes, NULL)