diff options
| author | Paul Buetow <paul@buetow.org> | 2008-09-16 17:05:51 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-09-16 17:05:51 +0000 |
| commit | 71185ab0ab0b08b4d5bb2e750ff85e11f105a453 (patch) | |
| tree | a6ad933176f92b60d2f1560d2f1bac46ec6b9566 /src/core/token.h | |
| parent | 8b31b18a43dea55489e70d5b2ea6fc183cc67533 (diff) | |
array progress
Diffstat (limited to 'src/core/token.h')
| -rw-r--r-- | src/core/token.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/token.h b/src/core/token.h index caf4854..af74e98 100644 --- a/src/core/token.h +++ b/src/core/token.h @@ -53,6 +53,8 @@ #define IS_ASSIGNABLE(t) (START_ASSIGNABLES < t && t < END_ASSIGNABLES) #define IS_NUMERICAL(t) (START_NUMERICAL < t && t < END_NUMERICAL) #define IS_NOT_NUMERICAL(t) !(IS_NUMERICAL(t)) +#define IS_ARRAY(t) (t->tt_cur == TT_ARRAY) +#define IS_NOT_ARRAY(t) !(IS_ARRAY(t)) #define token_get_filename(t) \ (t->c_filename != NULL ? t->c_filename : "Code string") @@ -86,8 +88,8 @@ typedef enum { TT_INTEGER, TT_DOUBLE, END_NUMERICAL, - TT_STRING, TT_ARRAY, + TT_STRING, END_ASSIGNABLES, TT_IDENT, END_TYPES, @@ -103,7 +105,6 @@ typedef enum { TT_PROC, TT_FUNC, TT_MY, - TT_ARR, TT_WHILE, TT_UNTIL, TT_NEXT, @@ -184,6 +185,7 @@ void* token_copy_cb(void *p_token); char* tt_get_name(TokenType tt_cur); void token_print_cb(void *p_void); void token_print(Token *p_token); +void token_print_ln(Token *p_token); void token_print_val(Token *p_token); TokenType get_tt(char *c_token); |
