Updated matchcompiler to support %cop%
This commit is contained in:
parent
0a7fafa319
commit
2ad38c8701
|
@ -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%':
|
||||||
|
|
Loading…
Reference in New Issue