aboutsummaryrefslogtreecommitdiffstats
path: root/src/frontend/lexer.h
diff options
context:
space:
mode:
authorGalin Simeonov <gts@volconst.com>2021-06-03 12:38:37 +0300
committerGalin Simeonov <gts@volconst.com>2021-07-15 18:04:02 +0300
commit76fc38b3cdfded2911b464baa7b182b5102318d1 (patch)
tree389223f76086bff07a3cd762683e5a16d34d12d2 /src/frontend/lexer.h
parent85b23fbee717f047af5a89eac6f4dba8e7812524 (diff)
downloadMEGATRON-76fc38b3cdfded2911b464baa7b182b5102318d1.tar.gz
work on generated C code
Diffstat (limited to 'src/frontend/lexer.h')
-rw-r--r--src/frontend/lexer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/frontend/lexer.h b/src/frontend/lexer.h
index d102540..266beea 100644
--- a/src/frontend/lexer.h
+++ b/src/frontend/lexer.h
@@ -20,6 +20,8 @@ enum Keyword
KW_EOF,
KW_OPEN_SQUARE,
KW_CLOSE_SQUARE,
+ KW_OPEN_NORMAL,
+ KW_CLOSE_NORMAL,
KW_PIPE,
KW_SEMI_COLUMN,
KW_STARTING,
@@ -29,6 +31,10 @@ enum Keyword
KW_EXECUTE,
KW_TRANSITIONS,
KW_COMMA,
+ KW_DOT,
+ KW_AND,
+ KW_OR,
+ KW_NOT,
};
struct token
{
@@ -45,6 +51,7 @@ struct token* get_token(char *data,size_t size,enum Keyword type,size_t row,size
void skip_white_space(struct Source *src);
void push_token_into_map(struct token *token,struct Map *map,void *thing);
+void id_token_to_upper_case(struct token *token);
void delete_token(struct token *token);