summaryrefslogtreecommitdiff
path: root/Lexer.l
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-05-30 02:33:00 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-05-30 02:33:00 +0800
commit63d2a1c552b0d190a0131c2db2045d154b9ec138 (patch)
tree9cd8addea1f49355ec2ecb7669daf12dd4ee61a2 /Lexer.l
parent56d68765016fc7aa68fe7b522de5e84c7a12123a (diff)
support for break, continue and void type
Diffstat (limited to 'Lexer.l')
-rw-r--r--Lexer.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lexer.l b/Lexer.l
index 6884e2b..bc35e9f 100644
--- a/Lexer.l
+++ b/Lexer.l
@@ -107,6 +107,9 @@ white [\t\f\r ]
"do" {return Parser::make_DO(loc);}
"repeat" {return Parser::make_REPEAT(loc);}
"until" {return Parser::make_UNTIL(loc);}
+"break" {return Parser::make_BREAK(loc);}
+"continue" {return Parser::make_CONTINUE(loc);}
+
"void" {return Parser::make_VOID(loc);}
"boolean" {return Parser::make_BOOLEAN(loc);}
"char" {return Parser::make_CHAR(loc);}