use of org.eclipse.xtext.parsetree.reconstr.Serializer in project xtext-core by eclipse.
the class XtextFormatterTest method _testXtextXtext.
public void _testXtextXtext() {
Serializer serializer = get(Serializer.class);
IGrammarAccess grammar = get(IGrammarAccess.class);
SaveOptions opt = SaveOptions.newBuilder().format().getOptions();
System.out.println(serializer.serialize(grammar.getGrammar(), opt));
}
Aggregations