summaryrefslogtreecommitdiff
path: root/igen/lexer.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-02-17 21:15:59 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2022-02-18 10:05:01 -0400
commitab0517cc4a6077c756d03c7c19311f5bd841d856 (patch)
treed1670125b9b9734506392247b9e76979748c764d /igen/lexer.h
parent524cfc23b15e1067076e45b056cb1d84e87e66cb (diff)
igen: Fixed some compilation errors, and warnings.
Diffstat (limited to 'igen/lexer.h')
-rw-r--r--igen/lexer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/igen/lexer.h b/igen/lexer.h
index 0c5fea4..f4da3cd 100644
--- a/igen/lexer.h
+++ b/igen/lexer.h
@@ -10,6 +10,7 @@ typedef struct source source;
typedef struct alt_stmt alt_stmt;
typedef struct cond_stmt cond_stmt;
typedef struct stmt stmt;
+typedef void *(lex_func)(source *src, int dbg);
enum stmt_type {
STMT_NONE,
@@ -32,7 +33,7 @@ enum cond_type {
struct alt_stmt {
int type;
size_t offset;
- void *(*lex)(source *src, int dbg);
+ lex_func *lex;
};
struct cond_stmt {
@@ -49,6 +50,7 @@ struct stmt {
cond_stmt *cond_stmt;
stmt *down;
};
+ whitespace wsp;
stmt *next;
};