diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index e2b90a5d0..6713f86d9 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -89,6 +89,8 @@ class MatchCompiler: return 'tok->isComparisonOp()' elif tok == '%num%': return 'tok->isNumber()' + elif tok == '%cop%': + return 'tok->isConstOp()' elif tok == '%op%': return 'tok->isOp()' elif tok == '%or%':