diff options
Diffstat (limited to 'lexer.h')
| -rw-r--r-- | lexer.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +/*!max:re2c*/ +#define BUFSIZE 50 + +typedef struct { + FILE *file; + char buf[BUFSIZE + 1]; + char *lim, *cur, *tok; + bool eof; +} lexer_t; + +void init_lexer(lexer_t *in, FILE *file); +int lex(lexer_t *in); |
