Package ideah.tree.stmt

Examples of ideah.tree.stmt.Statement


    }

    private GRHS toGRHS() throws NoMatchException {
        if ("GRHS".equals(name)) {
            for (int i = 0; i < children.size() - 1; i++) {
                Statement statement = children.get(i).toStatement();
                // todo: extract guard
            }
            Expression expression = children.get(children.size() - 1).toExpression();
            // todo: statements
            return new GRHS(location, expression);
View Full Code Here


            Expression expression = children.get(children.size() - 1).toExpression();
            return new LetExpr(location, binds, expression);
        } else if ("HsDo".equals(name)) {
            List<Statement> statements = new ArrayList<Statement>();
            for (int i = 0; i < children.size() - 1; i++) {
                Statement statement = children.get(i).toStatement();
                statements.add(statement);
            }
            Expression expression = children.get(children.size() - 1).toExpression();
            return new DoExpr(location, statements, expression);
        } else {
View Full Code Here

TOP

Related Classes of ideah.tree.stmt.Statement

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.