diff options
Diffstat (limited to 'lexer.h')
-rw-r--r-- | lexer.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3,6 +3,7 @@ #include <ctype.h> //isspace #include <program.h> #include <queue.h> +#include <map.h> struct Translation_Data; struct Source; @@ -10,7 +11,6 @@ struct Source; enum Keyword { KW_MACHINE, - KW_STATE, KW_FROM, KW_TO, KW_ON, @@ -23,6 +23,12 @@ enum Keyword KW_PIPE, KW_SEMI_COLUMN, KW_STARTING, + KW_STATES, + KW_EVENTS, + KW_EVENT, + KW_EXECUTE, + KW_TRANSITIONS, + KW_COMMA, }; struct token { @@ -38,6 +44,7 @@ struct token* lex_step(struct Source *src,struct Translation_Data *translation_d struct token* get_token(char *data,size_t size,enum Keyword type,size_t row,size_t column); void skip_white_space(struct Source *src); +void push_token_into_map(struct token *token,struct Map *map,void *thing); void delete_token(struct token *token); |