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()=="|")'
|
return '(tok->str()=="|")'
|
||||||
elif tok == '%oror%':
|
elif tok == '%oror%':
|
||||||
return '(tok->str()=="||")'
|
return '(tok->str()=="||")'
|
||||||
elif tok == '%num%':
|
|
||||||
return 'tok->isNumber()'
|
|
||||||
elif tok == '%str%':
|
elif tok == '%str%':
|
||||||
return '(tok->type()==Token::eString)'
|
return '(tok->type()==Token::eString)'
|
||||||
elif tok == '%type%':
|
elif tok == '%type%':
|
||||||
|
|
Loading…
Reference in New Issue