From f7b035a505e86ad916a43ab1dc1a662a6066b011 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 24 Sep 2026 00:39:51 +0200 Subject: Move module heading to the top --- boot/lexer.ll | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'boot/lexer.ll') diff --git a/boot/lexer.ll b/boot/lexer.ll index 3d881e3..6fa1904 100644 --- a/boot/lexer.ll +++ b/boot/lexer.ll @@ -55,7 +55,7 @@ EXPONENT [eE][+-]?[[:digit:]]+ %% %{ - if (driver.finished) + if (driver.has_finished()) { return yy::parser::make_YYEOF(this->location); } @@ -197,6 +197,9 @@ to { program { return yy::parser::make_PROGRAM(this->location); } +module { + return yy::parser::make_MODULE(this->location); +} {ID1}{ID2}* { return yy::parser::make_IDENTIFIER(yytext, this->location); } -- cgit v1.2.3