aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorc+12023-05-03 12:42:57 -0400
committerc+12023-05-03 12:42:57 -0400
commit640b395ef000dc20056ec04d6b5ff5d488baf2aa (patch)
tree1b4c691fb8e6d349dfe12a9eefe180aa1e7789fb /src/include
parent9d981a2597dca067572ee16d1a3f6e99f9c6ddd6 (diff)
HALK HALK HALK
Diffstat (limited to 'src/include')
-rw-r--r--src/include/token.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/token.h b/src/include/token.h
index c5ee9ec..33f28f1 100644
--- a/src/include/token.h
+++ b/src/include/token.h
@@ -1,6 +1,6 @@
#ifndef TOKEN_H
#define TOKEN_H
-typedef struct TOKEN_STRUCT {
+typedef struct TOKEN_STRUC {
enum {
TOKEN_ID, // keyword
TOKEN_EQ, // '='
@@ -12,11 +12,12 @@ typedef struct TOKEN_STRUCT {
TOKEN_LBRAK, // '['
TOKEN_RBRAK, // ']'
TOKEN_POUND, // '#''
- TOKEN_TILDE // '~'
+ TOKEN_TILDE, // '~'
+ TOKEN_EOF // '\0'
} type;
char* value;
} token_T;
-token_T* init_token(int type, char* value);
+token_T* token_init(int type, char* value);
#endif