Exemplo n.º 1
0
        public void CheckType(Scope Current)
        {
            MiniPascalType condType = condition.NodeType(Current);

            if (!condType.Equals(MiniPascalType.Boolean))
            {
                throw new TypeMismatchException(MiniPascalType.Boolean, condType);
            }
            thenStatement.CheckType(Current);
            elseStatement?.CheckType(Current);
        }
Exemplo n.º 2
0
 public void CheckType(Scope Current)
 {
     condition.NodeType(Current);
     doStatement.CheckType(Current);
 }