From df537df158e0375b01c0a7acdd98aa2f57db5ac3 Mon Sep 17 00:00:00 2001 From: martin dobrev Date: Fri, 7 Sep 2018 19:58:36 +0300 Subject: Add support for bitwise and logical operators to Lexer. --- JSImpl/src/Lexer.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'JSImpl/src/Lexer.h') 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, -- cgit v1.3.1-23-gd82d