Commit bc385fa0 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

qlang: Remove OP_GLOB operator



It'll be implemented using OP_REGEXP by the parser.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 23d0a608
...@@ -46,7 +46,6 @@ OP_TRUE = "?" ...@@ -46,7 +46,6 @@ OP_TRUE = "?"
# operator-specific value # operator-specific value
OP_EQUAL = "=" OP_EQUAL = "="
OP_NOT_EQUAL = "!=" OP_NOT_EQUAL = "!="
OP_GLOB = "=*"
OP_REGEXP = "=~" OP_REGEXP = "=~"
OP_CONTAINS = "=[]" OP_CONTAINS = "=[]"
......
...@@ -390,7 +390,6 @@ class _FilterCompilerHelper: ...@@ -390,7 +390,6 @@ class _FilterCompilerHelper:
qlang.OP_NOT_EQUAL: qlang.OP_NOT_EQUAL:
(_OPTYPE_BINARY, [(flags, compat.partial(_WrapNot, fn), valprepfn) (_OPTYPE_BINARY, [(flags, compat.partial(_WrapNot, fn), valprepfn)
for (flags, fn, valprepfn) in _EQUALITY_CHECKS]), for (flags, fn, valprepfn) in _EQUALITY_CHECKS]),
qlang.OP_GLOB: (_OPTYPE_BINARY, NotImplemented),
qlang.OP_REGEXP: (_OPTYPE_BINARY, [ qlang.OP_REGEXP: (_OPTYPE_BINARY, [
(None, lambda lhs, rhs: rhs.search(lhs), _PrepareRegex), (None, lambda lhs, rhs: rhs.search(lhs), _PrepareRegex),
]), ]),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment