Example #1
0
 void IParserNodeVisitor.VisitCheckNot(ParserNode.CheckNot checkNot)
 {
     if (_currState.PrevNode == checkNot.Parent)
     {
         _currState = _currState.EnterNode(checkNot.Child, true);
     }
     else if (_currState.PrevNode == checkNot.Child)
     {
         _currState = _currState.ExitNode(!_currState.LastTerminalFailed.Value);
     }
     else
     {
         throw new InvalidOperationException();
     }
 }
Example #2
0
 public void VisitCheckNot(ParserNode.CheckNot checkNot)
 {
     this.LogLine("{0}", checkNot); _v.VisitCheckNot(checkNot);
 }
Example #3
0
 void IParserNodeVisitor.VisitCheckNot(ParserNode.CheckNot checkNot)
 {
     this.PrintNode(checkNot);
 }