protected internal static string LexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar)
 {
     return(new StringBuilder().append("Lexical error at line ").append(errorLine).append(", column ").append(errorColumn).append(".  Encountered: ").append((!EOFSeen) ? new StringBuilder().append("\"").append(TokenMgrError.addEscapes(String.valueOf(curChar))).append("\"").append(" (").append((int)curChar).append("), ").toString() : "<EOF> ").append("after : \"").append(TokenMgrError.addEscapes(errorAfter)).append("\"").toString());
 }
 public TokenMgrError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar, int reason) : this(TokenMgrError.LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason)
 {
 }