aboutsummaryrefslogtreecommitdiff
path: root/boot/lexer.ll
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-09-16 11:49:35 +0200
committerEugen Wissner <belka@caraus.de>2026-09-16 11:49:35 +0200
commitb575036fe804f14b78da74897a74b010cc94f730 (patch)
tree054dcb6e932bc8cf5faf2a0158794913fc6e8be3 /boot/lexer.ll
parent52c8ca2c06da93c8d14e80a256e8996c1fa1e885 (diff)
downloadelna-b575036fe804f14b78da74897a74b010cc94f730.tar.gz
Implement named blocks
Diffstat (limited to 'boot/lexer.ll')
-rw-r--r--boot/lexer.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/boot/lexer.ll b/boot/lexer.ll
index 1cccd35..3d881e3 100644
--- a/boot/lexer.ll
+++ b/boot/lexer.ll
@@ -179,6 +179,12 @@ cast {
defer {
return yy::parser::make_DEFER(this->location);
}
+block {
+ return yy::parser::make_BLOCK(this->location);
+}
+break {
+ return yy::parser::make_BREAK(this->location);
+}
case {
return yy::parser::make_CASE(this->location);
}