summaryrefslogtreecommitdiff
path: root/tok_util.h
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-04-14 16:10:18 +1200
committerDavid Phillips <david@sighup.nz>2019-08-03 12:42:57 +1200
commitac8150b7601d9611818bb8b265a125a347a67004 (patch)
treeaa1440c18551fa415af53daedde76536ac2d000d /tok_util.h
downloadtoy-cpu-assembler-ac8150b7601d9611818bb8b265a125a347a67004.tar.xz
Dirst dump of working prototype
Diffstat (limited to 'tok_util.h')
-rw-r--r--tok_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tok_util.h b/tok_util.h
new file mode 100644
index 0000000..21d3d30
--- /dev/null
+++ b/tok_util.h
@@ -0,0 +1,9 @@
+#ifndef TOK_UTIL
+#define TOK_UTIL
+
+#include "lex.h"
+
+const char * get_token_description(enum TOKEN_TYPE t);
+void indicate_file_area(FILE* fd, size_t line, size_t column, size_t span);
+
+#endif /* TOK_UTIL */