public override bool Visit(AstIntegerListExpression node)
 {
     ErrorIfIsNull(node.Expr);
     return true;
 }
 public override bool Visit(AstIntegerListExpression node)
 {
     // TODO: check
     return true;
 }
Пример #3
0
        // #TYPE_DEFINITION INT LEFT_BRACKET INTEGER_VALUE_LIST RIGHT_BRACKET
        private void ConstructIntArrayTypeDefinition()
        {
            List<AstIntegerValueExpression> dimensions = new List<AstIntegerValueExpression>();
            AstIntegerValueExpression intVal;
            do
            {
                intVal = nodes.Pop() as AstIntegerValueExpression;
                dimensions.Add(intVal);
            }
            while((nodes.Peek() as AstIntegerValueExpression) != null);

            AstIntegerListExpression expr = new AstIntegerListExpression(dimensions.ToArray());

            var typeDef = new AstIdArrayExpression(BuiltInTypes.INT, expr);
            PushNode(typeDef);
        }
Пример #4
0
 public override bool Visit(AstIntegerListExpression node)
 {
     return true;
 }
Пример #5
0
        public override bool Visit(AstIntegerListExpression node)
        {
            AstIdArrayExpression expr = Stack.Peek() as AstIdArrayExpression;
            if (expr == null) return true;

            return true;
        }
Пример #6
0
 public abstract bool Visit(AstIntegerListExpression node);