1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

JSSpecCompiler: Parse true, false, this, undefined, and null

This commit is contained in:
Dan Klishch 2024-01-20 21:41:38 -05:00 committed by Andrew Kaster
parent 86d54a8684
commit b800276347
7 changed files with 70 additions and 3 deletions

View file

@ -48,7 +48,7 @@ constexpr i32 closing_bracket_precedence = 18;
F(String, -1, Invalid, Invalid, Invalid, "string literal") \
F(Superscript, 4, Invalid, Power, Invalid, "subscript") \
F(UnaryMinus, 3, Minus, Invalid, Invalid, "unary minus") \
F(Undefined, -1, Invalid, Invalid, Invalid, "constant") \
F(WellKnownValue, -1, Invalid, Invalid, Invalid, "constant") \
F(Word, -1, Invalid, Invalid, Invalid, "word")
enum class TokenType {