aboutsummaryrefslogtreecommitdiff
path: root/src/include/token.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/token.h')
-rw-r--r--src/include/token.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/include/token.h b/src/include/token.h
index 147862c..4ca8356 100644
--- a/src/include/token.h
+++ b/src/include/token.h
@@ -4,20 +4,20 @@
typedef struct TOKEN_STRUC {
enum {
- TOKEN_ID, // keyword
- TOKEN_EQ, // '='
- TOKEN_STR, // "string"
- TOKEN_SEMI, // ';'
- TOKEN_LORD, // '/'
- TOKEN_RORD, // '\'
- TOKEN_AMP, // '&'
- TOKEN_LBRAK, // '['
- TOKEN_RBRAK, // ']'
- TOKEN_POUND, // '#''
- TOKEN_TILDE, // '~'
- TOKEN_QUOTE, // '''
- TOKEN_COMM, // '[comment]'
- TOKEN_EOF // '\0'
+ TOKEN_KEYWORD, // keyword
+ TOKEN_STR_DELIM, // '"'
+ TOKEN_STR, // "string"
+ TOKEN_COMM_DELIM_START, // '['
+ TOKEN_COMM, // '[comment]'
+ TOKEN_COMM_DELIM_END, // ']'
+ TOKEN_DEFINE_CONST, // '=>'
+ TOKEN_DEFINE_MUT, // '->'
+ TOKEN_END, // ';'
+ TOKEN_LORD, // '('
+ TOKEN_RORD, // ')'
+ TOKEN_DIRECTIVE_DELIM, // '#'
+ TOKEN_DIRECTIVE, // #DIRECTIVE;
+ TOKEN_EOF, // '\0'
} type;
char* value;