summary refs log tree commit diff
path: root/lisc/main.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-07 22:26:13 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-07 22:26:13 -0400
commitfb423f749cc0f6f0cceea7d8b77be5a0d807e26d (patch)
tree2b81a9ce0d514ef4b4400c6795f13c332f25833a /lisc/main.c
parentb93b0d2902bae928edd960ae4d373f5e0033e39e (diff)
downloadroux-fb423f749cc0f6f0cceea7d8b77be5a0d807e26d.tar.gz
finish implementing data parsing
Diffstat (limited to 'lisc/main.c')
-rw-r--r--lisc/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisc/main.c b/lisc/main.c
index c8edeb5..1591edb 100644
--- a/lisc/main.c
+++ b/lisc/main.c
@@ -22,6 +22,12 @@ dumpts(Bits *b, Tmp *tmp, FILE *f)
 	fprintf(f, " ]\n");
 }
 
+static void
+data(Dat *d)
+{
+	emitdat(d, stdout);
+}
+
 int
 main(int ac, char *av[])
 {
@@ -60,7 +66,7 @@ main(int ac, char *av[])
 		}
 	}
 
-	fn = parse(inf);
+	fn = parse(inf, data);
 	fclose(inf);
 	if (debug['P']) {
 		fprintf(stderr, "\n> After parsing:\n");