X++:
static void Job33(Args _args)
{
boolean hasDisplay(str _s)
{
#TokenTypes
ScannerClass s=new ScannerClass(_s);
int token;
;
token=s.firstSymbol();
while(token)
{
if(token==#DISPLAY_SYM)
return true;
token=s.nextSymbol();
}
return false;
}
;
info(hasDisplay('display int test(){}')?'Y':'N');
info(hasDisplay('displayTable test(){}')?'Y':'N');
}