Package caltrop.interpreter.ast

Examples of caltrop.interpreter.ast.OutputExpression


        final ExprEvaluator eval = new ExprEvaluator(context, env);
        final OutputExpression[] outputExpressions = action
                .getOutputExpressions();

        for (int i = 0; i < outputExpressions.length; i++) {
            final OutputExpression outputExpression = outputExpressions[i];
            final Expression[] expressions = outputExpression.getExpressions();
            final Expression repeatExpr = outputExpression.getRepeatExpr();

            final OutputChannel channel = ((OutputPort) (outputPortMap
                    .get(outputExpression.getPortname()))).getChannel(0);

            // FIXME: handle multiports
            if (repeatExpr != null) {
                int repeatValue = context.intValue(eval.evaluate(repeatExpr));
                List[] lists = new List[expressions.length];
View Full Code Here


        // FIXME no multi.
        Map data = new HashMap();
        ExprEvaluator eval = new ExprEvaluator(_context, env);

        for (int i = 0; i < outputExprs.length; i++) {
            OutputExpression outputExpr = outputExprs[i];
            Expression repeatExpr = outputExpr.getRepeatExpr();
            List results = new ArrayList();
            Expression[] exprs = outputExpr.getExpressions();

            if (repeatExpr == null) {
                for (int j = 0; j < exprs.length; j++) {
                    Expression expr = exprs[j];
                    results.add(eval.evaluate(expr));
View Full Code Here

        }

        OutputExpression[] outputexps = action.getOutputExpressions();

        for (int j = 0; j < outputexps.length; j++) {
            OutputExpression outputexp = outputexps[j];
            Expression repeatExpr = outputexp.getRepeatExpr();
            int repeatVal = _computeRepeatExpression(repeatExpr, action);
            signature.addOutputRate(outputexp.getPortname(), outputexp
                    .getExpressions().length
                    * repeatVal);
        }

        return signature;
View Full Code Here

TOP

Related Classes of caltrop.interpreter.ast.OutputExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.