Пример #1
0
 public ParserError(ParserErrorTag tag, Pos pos, string message, Lst <string> expected, ParserError inner = null)
 {
     Tag      = tag;
     Pos      = pos;
     Msg      = message;
     Expected = expected;
     Inner    = inner;
 }
Пример #2
0
 public static Reply <T> Error <T>(ParserErrorTag tag, Pos pos, string message, Lst <string> expected) =>
 new Reply <T>(new ParserError(tag, pos, message, expected, null));
Пример #3
0
 public static Reply <I, O> Error <I, O>(ParserErrorTag tag, Pos pos, string message, Lst <string> expected, Func <I, Pos> tokenPos) =>
 new Reply <I, O>(new ParserError(tag, pos, message, expected, null), tokenPos);