diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-30 02:33:00 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-30 02:33:00 +0800 |
| commit | 63d2a1c552b0d190a0131c2db2045d154b9ec138 (patch) | |
| tree | 9cd8addea1f49355ec2ecb7669daf12dd4ee61a2 /Lexer.l | |
| parent | 56d68765016fc7aa68fe7b522de5e84c7a12123a (diff) | |
support for break, continue and void type
Diffstat (limited to 'Lexer.l')
| -rw-r--r-- | Lexer.l | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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);} |
