Generator { Node generateTree( String start ) { return generateTree( grammar, builder, start ); } @SafeVarargs  Generator( Grammar grammar, ProductionReplacement<Void>... replacements ); @SafeVarargs <T> Generator( Grammar grammar, Supplier<T> context, ProductionReplacement<T>... replacements ); @SafeVarargs  Generator( Choices random, Grammar grammar, ProductionReplacement<Void>... replacements ); @SafeVarargs <T> Generator( Choices random, Grammar grammar, Supplier<T> context,
                          ProductionReplacement<T>... replacements ); void generate( String start, Output output ); void generate( Output output );  }
@Ignore @Test public void generateStuff() throws Exception { Grammar grammar = fixture.grammarResource( "/somegrammar.xml" ); Generator generator = new Generator( grammar ); Node tree = generator.generateTree( grammar.language() ); tree.sExpression( stdOut() ); }