aboutsummaryrefslogtreecommitdiff
path: root/boot/lexer.ll
diff options
context:
space:
mode:
Diffstat (limited to 'boot/lexer.ll')
-rw-r--r--boot/lexer.ll5
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);
}