From 0fdb9e3fcfa904287fe1d770bf010fae31e183b6 Mon Sep 17 00:00:00 2001 From: Rodin van der Hart Date: Fri, 24 Nov 2017 15:21:47 +0000 Subject: [PATCH] Fixed clash in operators, and added eq operator --- src/index.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/index.js b/src/index.js index 3c04a8f..c1ac02e 100644 --- a/src/index.js +++ b/src/index.js @@ -3,16 +3,17 @@ const OPERATOR_TYPES = { "-": "op2", "/": "op3", "*": "op4", - "%": "op4", - "&": "op5", - "&&": "op6", - "|": "op7", - "||": "op8", - "<": "op9", - "<<": "op10", - "<<<": "op11", - ">": "op12", - ">>": "op13", + "%": "op5", + "&": "op6", + "&&": "op7", + "|": "op8", + "||": "op9", + "<": "op10", + "<<": "op11", + "<<<": "op12", + ">": "op13", + ">>": "op14", + "==": "op15" }; const BINARY_OPERATOR_DEFINITION = "defineBinaryOperator";