summaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/dat.h b/dat.h
index d6a72bb..7c7c0a9 100644
--- a/dat.h
+++ b/dat.h
@@ -1 +1,28 @@
+typedef struct Term Term;
+struct Term
+{
+ int tag;
+
+ Rune *text;
+ int arity;
+ Term *next;
+ Term *children;
+ int numbertype;
+ vlong ival;
+ double dval;
+};
+
+enum {
+ CompoundTerm,
+ AtomTerm,
+ VariableTerm,
+ NumberTerm,
+ StringTerm,
+};
+
+enum {
+ NumberInt,
+ NumberFloat,
+};
+
int debug; \ No newline at end of file