1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibJS: Lexer and parser support for "switch" statements

This commit is contained in:
Andreas Kling 2020-03-29 13:09:54 +02:00
parent 70dc80fa47
commit 1923051c5b
7 changed files with 164 additions and 2 deletions

View file

@ -41,7 +41,9 @@ enum class TokenType {
BoolLiteral,
BracketClose,
BracketOpen,
Break,
Caret,
Case,
Catch,
Class,
Colon,
@ -49,6 +51,7 @@ enum class TokenType {
Const,
CurlyClose,
CurlyOpen,
Default,
Delete,
Do,
DoubleAmpersand,
@ -105,6 +108,7 @@ enum class TokenType {
Slash,
SlashEquals,
StringLiteral,
Switch,
Throw,
Tilde,
Try,