예제 #1
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));
예제 #2
0
 public IParseQueue(Position pos)
 {
     Position = pos;
 }
예제 #3
0
 public static bool onside(Pos pos, Pos delta) =>
 pos.Column > delta.Column || pos.Line == delta.Line;
예제 #4
0
 public ParenParseQueue(LPU[][] p, Position pos, Reflector.ReflCtx ctx) : base(pos)
 {
     paren = p;
     Ctx   = ctx;
 }
예제 #5
0
 public static Parser <T> setDefPos <T>(Pos defpos, Parser <T> p) =>
 (PString inp) => p(inp.SetDefPos(defpos));