diff options
Diffstat (limited to 'lexer.h')
| -rw-r--r-- | lexer.h | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -3,8 +3,6 @@ #include <stdbool.h> #include <stdio.h> -// single characters stand for themselves -// so the named tokens start past them enum Token { TOK_END = 0, @@ -16,15 +14,9 @@ enum Token TOK_CHAR }; -// provided by flex -// the input -// the current line -// and the scanner itself -extern FILE* yyin; -extern int yylineno; -int yylex(void); +extern FILE* yyin; // input +extern int yylineno; // current line +int yylex(void); // scanner -// true once the lexer has refused something bool lexer_failed(void); -// the character inside the most recent TOK_CHAR char lexer_character(void); |
