From 76fc38b3cdfded2911b464baa7b182b5102318d1 Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Thu, 3 Jun 2021 12:38:37 +0300 Subject: work on generated C code --- src/frontend/lexer.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/frontend/lexer.h') 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); -- cgit v1.2.3