summaryrefslogtreecommitdiff
path: root/exper.c
diff options
context:
space:
mode:
authorFreeArtMan <=>2015-12-17 20:59:18 +0000
committerFreeArtMan <=>2015-12-17 20:59:18 +0000
commita61ad1cef9ef77f9afd67230df5470b6b55525be (patch)
treed8bae5fc932865e769e4965ce0817b6d107badf2 /exper.c
downloaddm-a61ad1cef9ef77f9afd67230df5470b6b55525be.tar.gz
dm-a61ad1cef9ef77f9afd67230df5470b6b55525be.zip
Initial commit
Diffstat (limited to 'exper.c')
-rw-r--r--exper.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/exper.c b/exper.c
new file mode 100644
index 0000000..1bcf65d
--- /dev/null
+++ b/exper.c
@@ -0,0 +1,15 @@
+#define TOK_NONE 0
+#define TOK_HEX 1
+#define TOK_INT 2
+#define TOK_NL 3
+#define TOK_IF 4
+#define TOK_LBR 5
+#define TOK_RBR 6
+#define TOK_STR 7
+
+int dm_current_tok = TOK_NONE;
+
+#define CT(X) (dm_current_tok = TOK_##X;)
+
+CT(IF)
+CT(STR)