We describe pretty-printing combinators with choice which provide optimal document layout in polynomial time. Bottom-up tree rewriting and dynamic programming (BURS) is used to calculate a set of possible layouts for a given output width. We also present the results of suggested approach evaluation and discuss its application for the implementation of pretty-printers.
Язык оригиналаанглийский
Страницы (с-по)257-265
ЖурналLecture Notes in Computer Science
Том8974
DOI
СостояниеОпубликовано - 2015

ID: 5770392