public void visitLogicalNotOperator(LogicalNotOperationNode node)
        {
            INode rhs = node.getChildren()[0];

            rhs.accept(this);
            bool value = !popBool();

            this.boolStack.Push(value);
        }
 public void visitLogicalNotOperator(LogicalNotOperationNode node)
 {
     this.typeStack.Push(MiniPLTokenType.TYPE_IDENTIFIER_BOOL);
     accessChildren(node);
     if (this.typeStack.Pop() != MiniPLTokenType.TYPE_IDENTIFIER_BOOL)
     {
         throw new SemanticException("Logical not operator works only with bool values.");
     }
     this.typeStack.Push(MiniPLTokenType.TYPE_IDENTIFIER_BOOL);
 }
 public void visitLogicalNotOperator(LogicalNotOperationNode logicalNotOperationNode)
 {
     logicalNotOperationNode.getChildren()[0].accept(this);
 }