Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / Lexer.h
diff options
context:
space:
mode:
Commitb91b7d3820deb7e0aed536141cd79e7a8c4ca8c9 (patch)
Author
 martin dobrev <martindobrev0@gmail.com>
2018-09-08 12:23:28 +0300
Committer
 martin dobrev <martindobrev0@gmail.com>
2018-09-08 12:23:28 +0300
Files78b5912f2ae289a7280e5cd8c3993a040eda54d9 /JSImpl/src/Lexer.h
IPL-b91b7d3820deb7e0aed536141cd79e7a8c4ca8c9.tar
IPL-b91b7d3820deb7e0aed536141cd79e7a8c4ca8c9.tar.gz
IPL-b91b7d3820deb7e0aed536141cd79e7a8c4ca8c9.zip
Parentf5b37017965efbc73deddc8a8afaabc9274dd530 (diff)
Add more tokens to Lexer
1 files changed, 19 insertions, 0 deletions
-rw-r--r--JSImpl/src/Lexer.h19
diff --git a/JSImpl/src/Lexer.h b/JSImpl/src/Lexer.h
index 21c06cc..fd3d244 100644
--- a/JSImpl/src/Lexer.h
+++ b/JSImpl/src/Lexer.h
@@ -22,6 +22,10 @@ enum TokenType
BitwiseAnd,
BitwiseXor,
BitwiseOr,
+ QuestionMark,
+ Colon,
+ LeftSquareBracket,
+ RightSquareBracket,
// One or two character tokens
Bang,
@@ -40,6 +44,16 @@ enum TokenType
RightShift,
LogicalAnd,
LogicalOr,
+ StarEqual,
+ DivideEqual,
+ ModuloEqual,
+ PlusEqual,
+ MinusEqual,
+ LeftShiftEqual,
+ RightShiftEqual,
+ BitwiseAndEqual,
+ BitwiseXorEqual,
+ BitwiseOrEqual,
Identifier,
String,
@@ -79,6 +93,11 @@ enum TokenType
While,
With,
Yield,
+ Null,
+ Undefined,
+ True,
+ False,
+
Eof,
};