977978979980981982983984
return parser; } private static NodeTestDSLParser getParser(final InputStream is) throws IOException { NodeTestDSLLexer lexer = new NodeTestDSLLexer( new ANTLRInputStream( is ) ); NodeTestDSLParser parser = new NodeTestDSLParser( new CommonTokenStream( lexer ) ); return parser; }
983984985986987988989990
return parser; } private static NodeTestDSLParser getParser(final String source) throws IOException { NodeTestDSLLexer lexer = new NodeTestDSLLexer( new ANTLRStringStream( source ) ); NodeTestDSLParser parser = new NodeTestDSLParser( new CommonTokenStream( lexer ) ); return parser; }
925926927928929930931932
e ); } } public static NodeTestCase compile(final Reader reader) throws IOException { NodeTestDSLParser parser = getParser( reader ); return compile( parser ); }
930931932933934935936937
NodeTestDSLParser parser = getParser( reader ); return compile( parser ); } public static NodeTestCase compile(final InputStream is) throws IOException { NodeTestDSLParser parser = getParser( is ); return compile( parser ); }
935936937938939940941942
NodeTestDSLParser parser = getParser( is ); return compile( parser ); } public static NodeTestCase compile(final String source) throws IOException { NodeTestDSLParser parser = getParser( source ); return compile( parser ); }
970971972973974975976977
return walker.getTestCase(); } private static NodeTestDSLParser getParser(final Reader reader) throws IOException { NodeTestDSLLexer lexer = new NodeTestDSLLexer( new ANTLRReaderStream( reader ) ); NodeTestDSLParser parser = new NodeTestDSLParser( new CommonTokenStream( lexer ) ); return parser; }
976977978979980981982983
982983984985986987988989
917918919920921922923924
922923924925926927928929