Inheritance: System.ApplicationException
Ejemplo n.º 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),
         "\""
     }));
 }
Ejemplo n.º 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)
 {
 }