Exemplo n.º 1
0
 public override IEnumerable <OutputRecord> Execute(ParseEngine engine)
 {
     if (Equals(engine.Current))
     {
         if (engine.Consume())
         {
             return(AsResult(engine.Position));
         }
         else
         {
             return(null);
         }
     }
     return(null);
 }
Exemplo n.º 2
0
 public override IEnumerable <OutputRecord> Execute(ParseEngine engine)
 {
     if (engine.Current is Token && ((Token)engine.Current).TokenRule == TokenRule)
     {
         if (engine.Consume())
         {
             return(AsResult(engine.Position));
         }
         else
         {
             return(null);
         }
     }
     return(null);
 }