From 2ad38c87016a23ac0993dc49e6491d2cfa97a2a6 Mon Sep 17 00:00:00 2001 From: PKEuS Date: Fri, 1 Mar 2013 02:52:44 -0800 Subject: [PATCH] Updated matchcompiler to support %cop% --- tools/matchcompiler.py | 2 ++ 1 file changed, 2 insertions(+) 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%':