use of us.parr.bookish.model.Abstract in project bookish by parrt.
the class Translator method visitAbstract_.
@Override
public OutputModelObject visitAbstract_(BookishParser.Abstract_Context 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 Abstract(paras);
}
Aggregations