상속: System.ApplicationException
예제 #1
0
 private static string LexicalError(bool EOFSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar)
 {
     return(string.Concat(new object[]
     {
         "Lexical error at line ",
         errorLine,
         ", column ",
         errorColumn,
         ".  Encountered: ",
         EOFSeen ? "<EOF> " : string.Concat(new object[]
         {
             "\"",
             TokenMgrError.AddEscapes(curChar.ToString()),
             "\" (",
             (int)curChar,
             "), "
         }),
         "after : \"",
         TokenMgrError.AddEscapes(errorAfter),
         "\""
     }));
 }
예제 #2
0
 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)
 {
 }