add method
Implementation
void add( ClipParam param, String token, int len, bool strToVal ){
bool addFact = false;
if( (ClipMath.charAt( token, 0 ) != '"') && (ClipMath.charAt( token, len - 1 ) == '!') ){
if( len == 1 ){
token = String.fromCharCode( ClipGlobal.codeOperator ) + String.fromCharCode( ClipGlobal.opFact );
} else if( ClipMath.charAt( token, len - 2 ) != '@' ){
addFact = true;
token = token.substring( 0, len - 1 );
}
}
_newToken( _addToken(), param, token, len, strToVal );
if( addFact ){
token = String.fromCharCode( ClipGlobal.codeOperator ) + String.fromCharCode( ClipGlobal.opFact );
_newToken( _addToken(), param, token, 1, strToVal );
}
}