public void visitAssert(AssertNode node)
 {
     foreach (INode child in node.getChildren())
     {
         child.accept(this);
     }
 }
 public void visitAssert(AssertNode node)
 {
     node.getChildren()[0].accept(this);
     if (!popBool())
     {
         this.inputOutput.outputLine("Assertion failed.");
     }
 }
        public void visitAssert(AssertNode assertNode)
        {
            this.typeStack.Clear();
            assertNode.getChildren()[0].accept(this);
            MiniPLTokenType type = this.typeStack.Pop();

            this.typeStack.Clear();
            if (type != MiniPLTokenType.TYPE_IDENTIFIER_BOOL)
            {
                throw new SemanticException("Assert statement can only take bool as an argument.");
            }
        }