diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-31 04:03:00 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-31 04:03:00 +0800 |
| commit | bd44c9eaef1f4dcbbd98d4489885566b6c7e5138 (patch) | |
| tree | d664ec481b99e04386c47526b56085320edd9cde /Lexer.l | |
| parent | fd21f31e654a97027799f0fdf3518fd639415121 (diff) | |
support for type alias
Diffstat (limited to 'Lexer.l')
| -rw-r--r-- | Lexer.l | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -99,8 +99,9 @@ white [\t\f\r ] "end" {return Parser::make_ENDS(loc);} "program" {return Parser::make_PROGRAM(loc);} "function" {return Parser::make_FUNCTION(loc);} -"const" {return Parser::make_CONST(loc);} "var" {return Parser::make_VAR(loc);} +"const" {return Parser::make_CONST(loc);} +"type" {return Parser::make_TYPE(loc);} "if" {return Parser::make_IF(loc);} "then" {return Parser::make_THEN(loc);} "else" {return Parser::make_ELSE(loc);} |
