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:
parent
70dc80fa47
commit
1923051c5b
7 changed files with 164 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue