From 08b8cbbccd8c8d7dab75746ee9d134f67455de91 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 19 Sep 2026 11:01:51 +0200 Subject: feat: start work on ast --- lexer.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'lexer.h') diff --git a/lexer.h b/lexer.h index eb7a4d3..4e09ace 100644 --- a/lexer.h +++ b/lexer.h @@ -3,8 +3,6 @@ #include #include -// 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); -- cgit v1.3