diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-09-24 00:39:51 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-09-24 00:39:51 +0200 |
| commit | f7b035a505e86ad916a43ab1dc1a662a6066b011 (patch) | |
| tree | a54369ae8ad56352d148c4583ab568f7d4869d30 /boot/lexer.ll | |
| parent | 74e75e41fe12f19e5365a3152ffafa1a29376240 (diff) | |
| download | elna-f7b035a505e86ad916a43ab1dc1a662a6066b011.tar.gz | |
Move module heading to the top
Diffstat (limited to 'boot/lexer.ll')
| -rw-r--r-- | boot/lexer.ll | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |
