When doing eval, it checks each word, then puts it in either green, grey, or red.
Somehow, it doesn't work right.
I do something like:
checkErrorEval("chicken(\"a\);"");
It tells the error of a, which, I am not sure what is going on.
Here is the code
function checkErrorEval(%word)
{
$Eval::Word[%word] = 0;
if(checkMalEval(%word))
return %word = "\c7" @ %word @ "\c6";
eval(%word SPC "$Eval::Word[\"" @ %word @ "\"] = 1;");
if($Eval::Word[%word])
{
if(checkMalEval(%newWord))
%newWord = "\c7" @ %word @ "\c6";
else
%newWord = "\c2" @ %word @ "\c6";
}
else
{
%newWord = "\c0" @ %word @ "\c6";
$Eval::FailCount++;
}
return %newWord;
}