Match compiler: No need to handle %num% twice
This commit is contained in:
parent
4378357d7e
commit
fe5ee76165
|
@ -20,8 +20,6 @@ def compileCmd(tok):
|
|||
return '(tok->str()=="|")'
|
||||
elif tok == '%oror%':
|
||||
return '(tok->str()=="||")'
|
||||
elif tok == '%num%':
|
||||
return 'tok->isNumber()'
|
||||
elif tok == '%str%':
|
||||
return '(tok->type()==Token::eString)'
|
||||
elif tok == '%type%':
|
||||
|
|
Loading…
Reference in New Issue