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