aboutsummaryrefslogtreecommitdiff
path: root/boot/lexer.ll
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-24 03:11:32 +0200
committerEugen Wissner <belka@caraus.de>2026-07-24 03:11:32 +0200
commitbb4f474cb2247e0e314beab5d7d72e673ff4e8b6 (patch)
tree4809b414bffa8d422ef8c1b6fe65dcdd4dce65d8 /boot/lexer.ll
parent275fa4bff6d153019b6914fed7127a7d919ca177 (diff)
downloadelna-bb4f474cb2247e0e314beab5d7d72e673ff4e8b6.tar.gz
Implement a repeat loop
Diffstat (limited to 'boot/lexer.ll')
-rw-r--r--boot/lexer.ll10
1 files changed, 8 insertions, 2 deletions
diff --git a/boot/lexer.ll b/boot/lexer.ll
index c363ddd..89fe85c 100644
--- a/boot/lexer.ll
+++ b/boot/lexer.ll
@@ -86,8 +86,14 @@ while {
for {
return yy::parser::make_FOR(this->location);
}
-by {
- return yy::parser::make_BY(this->location);
+repeat {
+ return yy::parser::make_REPEAT(this->location);
+}
+until {
+ return yy::parser::make_UNTIL(this->location);
+}
+with {
+ return yy::parser::make_WITH(this->location);
}
do {
return yy::parser::make_DO(this->location);