aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/lexer.h18
-rw-r--r--src/include/token.h6
2 files changed, 12 insertions, 12 deletions
diff --git a/src/include/lexer.h b/src/include/lexer.h
index a20bf8c..e002893 100644
--- a/src/include/lexer.h
+++ b/src/include/lexer.h
@@ -6,15 +6,15 @@ typedef struct LEXER_STRUC {
char c; // current character in content
unsigned int i; // index of c
char* content; // the code itself
-} lexer_T;
+} lexer_t;
-lexer_T* lexer_init(char* content);
-void lexer_next(lexer_T* lexer);
-void lexer_pass(lexer_T* lexer);
-token_T* lexer_get_next_token(lexer_T* lexer);
-token_T* lexer_get_string(lexer_T* lexer);
-token_T* lexer_get_id(lexer_T* lexer);
-token_T* lexer_next_token(lexer_T* lexer, token_T* token);
-char* lexer_get_c_as_string(lexer_T* lexer);
+lexer_t* lexer_init(char* content);
+void lexer_next(lexer_t* lexer);
+void lexer_pass(lexer_t* lexer);
+token_t* lexer_get_next_token(lexer_t* lexer);
+token_t* lexer_get_string(lexer_t* lexer);
+token_t* lexer_get_id(lexer_t* lexer);
+token_t* lexer_next_token(lexer_t* lexer, token_t* token);
+char* lexer_get_c_as_string(lexer_t* lexer);
#endif
diff --git a/src/include/token.h b/src/include/token.h
index b923734..9bfc4f3 100644
--- a/src/include/token.h
+++ b/src/include/token.h
@@ -12,13 +12,13 @@ typedef struct TOKEN_STRUC {
TOKEN_LBRAK, // '['
TOKEN_RBRAK, // ']'
TOKEN_POUND, // '#''
- TOKEN_TILDE, // '~'
+ TOKEN_tILDE, // '~'
TOKEN_QUOTE, // '''
TOKEN_EOF // '\0'
} type;
char* value;
-} token_T;
+} token_t;
-token_T* token_init(int type, char* value);
+token_t* token_init(int type, char* value);
#endif