aboutsummaryrefslogtreecommitdiffstats
path: root/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.h')
-rw-r--r--lexer.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lexer.h b/lexer.h
index e69e23b..320146c 100644
--- a/lexer.h
+++ b/lexer.h
@@ -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);