Examples of GrammarAsDirectedGraph


Examples of dk.brics.string.grammar.operations.GrammarAsDirectedGraph

    /**
     * Finds the strongly connected components and their recursion kinds.
     */
    public StronglyConnectedComponents<Nonterminal, Component> getComponents(boolean find_recursion_kinds) {
        StronglyConnectedComponents<Nonterminal, Component> comp =
                new StronglyConnectedComponents<Nonterminal, Component>(new GrammarAsDirectedGraph(this));
        if (find_recursion_kinds) {
            for (Component c : comp.getComponents()) {
                c.findRecursion();
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.