summary refs log tree commit diff
path: root/lisc/lisc.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-12 14:20:12 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-12 14:20:12 -0500
commit8e888618076474e7927563d0cbf14d17ce185e13 (patch)
treed8fac7a143a003bb83b48f4d705e026581a03f53 /lisc/lisc.h
parent8b81a5acc680aa5ceb788f6be4b90620839e983a (diff)
downloadroux-8e888618076474e7927563d0cbf14d17ce185e13.tar.gz
new syntax for float literals
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r--lisc/lisc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index 815c016..05c1977 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -383,9 +383,10 @@ struct Con {
 	char label[NString];
 	union {
 		int64_t i;
-		double f;
+		double d;
+		float s;
 	} bits;
-	char flt;
+	char flt; /* 1 for single precision, 2 for double */
 	char emit;
 };
 
@@ -440,6 +441,8 @@ struct Dat {
 	} type;
 	union {
 		int64_t num;
+		double fltd;
+		float flts;
 		char *str;
 	} u;
 };