public ParserError(ParserErrorTag tag, Pos pos, string message, Lst <string> expected, ParserError inner = null) { Tag = tag; Pos = pos; Msg = message; Expected = expected; Inner = inner; }
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));
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);