rename expression.js -> syntax.js

This commit is contained in:
harttle
2016-10-24 23:11:37 +08:00
parent cb75e69122
commit 6d20f7aa8e
8 changed files with 81 additions and 81 deletions
+13
View File
@@ -0,0 +1,13 @@
var operators = {
'==': (l, r) => l == r,
'!=': (l, r) => l != r,
'>': (l, r) => l > r,
'<': (l, r) => l < r,
'>=': (l, r) => l >= r,
'<=': (l, r) => l <= r,
'contains': (l, r) => l.indexOf(r) > -1,
'and': (l, r) => l && r,
'or': (l, r) => l || r
};
module.exports = operators;