visualization/visualization-spi-dot/src/main/java/se/jguru/nazgul/tools/visualization/spi/dot/DotDiagramValidator.java
public static DotParser createParser(final DotLexer lexer) {

        // Check sanity
        if (lexer == null) {
            throw new IllegalArgumentException("Cannot handle null 'lexer' argument.");
        }

        // All Done.
        return new DotParser(new CommonTokenStream(lexer));
    }
public static DotParser createParser(final DotLexer lexer) {

        // Check sanity
        if (lexer == null) {
            throw new IllegalArgumentException("Cannot handle null 'lexer' argument.");
        }

        // All Done.
        return new DotParser(new CommonTokenStream(lexer));
    }
Creates a {@link DotParser} reading data from the supplied {@link DotLexer}.

@param lexer A non-null {@link DotLexer} instance holding all Graphviz/DOT diagram data.
@return a {@link DotParser} hooked up with a {@link org.antlr.v4.runtime.TokenStream} to the
supplied {@link DotLexer}.