summary refs log tree commit diff
path: root/lisc/lisc.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-02-28 20:02:36 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-28 20:16:20 -0800
commit50c5af4290aed32a7733768c1bee2e64c93a7f84 (patch)
treeee2d1b70942006735e3d8af44ab38de43c94818a /lisc/lisc.h
parentec7c4e0d60e22c10b6f7817436bd3f4abf2d5356 (diff)
downloadroux-50c5af4290aed32a7733768c1bee2e64c93a7f84.tar.gz
Allow trailing and ',' and references in data.
	This change adds support for two things:

		data $foo {l 123,}

	Which allows easier machine generation of data
	statements. It also adds the ability to parse
	and emit references in data declarations.
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r--lisc/lisc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index 18d435d..fd0a8ba 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -440,7 +440,12 @@ struct Dat {
 		double fltd;
 		float flts;
 		char *str;
+		struct {
+			char *nam;
+			int64_t off;
+		} ref;
 	} u;
+	char isref;
 };