summaryrefslogtreecommitdiff
path: root/expr.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2022-04-17 15:12:03 -0400
committerJakob Kaivo <jkk@ung.org>2022-04-17 15:12:03 -0400
commit152d6b74f65da60bedb6fb0d14bf65984b839796 (patch)
tree0d400744ed6b36cba31979263975cce6616b73ce /expr.h
parent028f700584306cd465ddb18231ecc41c17418082 (diff)
it does addition
Diffstat (limited to 'expr.h')
-rw-r--r--expr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/expr.h b/expr.h
index e69de29..4b4a874 100644
--- a/expr.h
+++ b/expr.h
@@ -0,0 +1,9 @@
+typedef struct {
+ int type;
+ union {
+ int i;
+ char *s;
+ } u;
+} expr_yystype;
+
+#define YYSTYPE expr_yystype