text: public virtual string GetTokenErrorDisplay(IToken t){if (t == null){return "<no token>";}string s = t.Text;if (s == null){if (t.Type == TokenConstants.EOF){s = "<EOF>";}else{s = "<" + t.Type + ">";}}s = s.Replace("\n", "\\n");s = s.Replace("\r", "\\r");s = s.Replace("\t", "\\t");return "'" + s + "'";}