public System.String ToStringValue()
{
System.String strval;
switch (lastttype)
{
case (int)TokenTypes.EOF:
strval = "EOF";
break;
case (int) TokenTypes.EOL:
strval = "EOL";
break;
case (int) TokenTypes.WORD:
strval = StringValue;
break;
case (int) TokenTypes.STRING:
strval = StringValue;
break;
case (int) TokenTypes.NUMBER:
case (int) TokenTypes.REAL:
strval = "n=" + NumberValue;
break;
default:
{
if (lastttype < 256 && ((ctype[lastttype] & (sbyte)CharacterTypes.STRINGQUOTE) != 0))
{
strval = StringValue;
break;
}
char[] s = new char[3];
s[0] = s[2] = '\'';
s[1] = (char) lastttype;
strval = new System.String(s);
break;
}
}
return strval;
}