Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / src / Lexer.h
diff options
context:
space:
mode:
Commitdf537df158e0375b01c0a7acdd98aa2f57db5ac3 (patch)
Author
 martin dobrev <martindobrev0@gmail.com>
2018-09-07 19:58:36 +0300
Committer
 martin dobrev <martindobrev0@gmail.com>
2018-09-07 19:58:36 +0300
Files696510080c4278f911c4ca364f22beeb6d4964b0 /JSImpl/src/Lexer.h
IPL-df537df158e0375b01c0a7acdd98aa2f57db5ac3.tar
IPL-df537df158e0375b01c0a7acdd98aa2f57db5ac3.tar.gz
IPL-df537df158e0375b01c0a7acdd98aa2f57db5ac3.zip
Parent7128a5853db709548f3ec9fe63973cbf7ccc5c54 (diff)
Add support for bitwise and logical operators to Lexer.
1 files changed, 9 insertions, 1 deletions
-rw-r--r--JSImpl/src/Lexer.h10
diff --git a/JSImpl/src/Lexer.h b/JSImpl/src/Lexer.h
index eb33e77..21c06cc 100644
--- a/JSImpl/src/Lexer.h
+++ b/JSImpl/src/Lexer.h
@@ -15,9 +15,13 @@ enum TokenType
Minus,
Plus,
Semicolon,
- Slash,
Star,
+ Division,
+ Modulo,
BitwiseNot,
+ BitwiseAnd,
+ BitwiseXor,
+ BitwiseOr,
// One or two character tokens
Bang,
@@ -32,6 +36,10 @@ enum TokenType
LessEqual,
MinusMinus,
PlusPlus,
+ LeftShift,
+ RightShift,
+ LogicalAnd,
+ LogicalOr,
Identifier,
String,