コード例 #1
0
 void SaveStateAndPos(ref Context ctx) {
     ctx.bPos  = buffer.Pos;
     ctx.rPos  = readPos;
     ctx.cCol  = cCol;
     ctx.lNum  = lNum;
     ctx.state = state;
     ctx.cChr  = code;
 }
コード例 #2
0
 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;
 }