public String getTokenErrorDisplay(Token t) {if ( t==null ) return "<no token>";String s = t.getText();if ( s==null ) {if ( t.getType()==Token.EOF ) {s = "<EOF>";}else {s = "<"+t.getType()+">";}}s = s.replace("\n","\\n");s = s.replace("\r","\\r");s = s.replace("\t","\\t");return "'"+s+"'";}

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 + "'";}
