diff options
Diffstat (limited to 'igen/lexer.h')
| -rw-r--r-- | igen/lexer.h | 4 | 
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;  };  | 
