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);