Example #1
0
        public override void ValidSemantic()
        {
            var conditional = Conditional.EvaluateSemantic();

            if (!(conditional is BoolTipo))
            {
                throw new SemanticException($"Condicion debe de ser tipo Bool y no {conditional}");
            }
            foreach (var statementNode in StatementList)
            {
                statementNode.ValidSemantic();
            }
        }