use of us.parr.bookish.model.PreAbstract in project bookish by parrt.
the class Translator method visitPreabstract.
@Override
public OutputModelObject visitPreabstract(BookishParser.PreabstractContext ctx) {
List<OutputModelObject> paras = new ArrayList<>();
paras.add(visit(ctx.paragraph_optional_blank_line()));
for (ParseTree p : ctx.paragraph()) {
Paragraph para = (Paragraph) visit(p);
paras.add(para);
}
return new PreAbstract(paras);
}
Aggregations