void SaveStateAndPos(ref Context ctx) {
     ctx.bPos  = buffer.Pos;
     ctx.rPos  = readPos;
     ctx.cCol  = cCol;
     ctx.lNum  = lNum;
     ctx.state = state;
     ctx.cChr  = code;
 }
 void RestoreStateAndPos(ref Context ctx) {
     buffer.Pos = ctx.bPos;
     readPos = ctx.rPos;
     cCol  = ctx.cCol;
     lNum  = ctx.lNum;
     state = ctx.state;
     code  = ctx.cChr;
 }
示例#3
0
 public ParseTreeEvaluator(Context context)
     : base()
 {
     Context = context;
 }