implemented GetDistance function

This commit is contained in:
Marc Zinnschlag 2010-07-05 12:30:45 +02:00
parent cc0c21cf35
commit 34b824cb70
13 changed files with 85 additions and 3 deletions

View file

@ -326,6 +326,19 @@ namespace Compiler
mNextOperand = false;
return true;
}
else if (keyword==Scanner::K_getdistance)
{
mTokenLoc = loc;
parseArguments ("c", scanner);
Generator::getDistance (mCode);
mOperands.push_back ('f');
mNextOperand = false;
return true;
}
else
{
// check for custom extensions