A copy of this work was available on the public web and has been preserved in the Wayback Machine. The capture dates from 2019; you can also visit the original URL.
The file type is application/pdf
.
Technical Report: Towards a Universal Code Formatter through Machine Learning
[article]
2016
arXiv
pre-print
There are many declarative frameworks that allow us to implement code formatters relatively easily for any specific language, but constructing them is cumbersome. The first problem is that "everybody" wants to format their code differently, leading to either many formatter variants or a ridiculous number of configuration options. Second, the size of each implementation scales with a language's grammar size, leading to hundreds of rules. In this paper, we solve the formatter construction problem
arXiv:1606.08866v1
fatcat:zp6nkdlt5zg5bdawpp4bxnbrsa