Updated matchcompiler to support %cop%

This commit is contained in:
PKEuS 2013-03-01 02:52:44 -08:00
parent 0a7fafa319
commit 2ad38c8701
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,8 @@ class MatchCompiler:
return 'tok->isComparisonOp()' return 'tok->isComparisonOp()'
elif tok == '%num%': elif tok == '%num%':
return 'tok->isNumber()' return 'tok->isNumber()'
elif tok == '%cop%':
return 'tok->isConstOp()'
elif tok == '%op%': elif tok == '%op%':
return 'tok->isOp()' return 'tok->isOp()'
elif tok == '%or%': elif tok == '%or%':