Lecture

Code Formatter: Customizable Pretty Printing

Description

This lecture presents a code formatter developed by group 15, focusing on making code more readable through customizable pretty printing. The formatter takes into account comments and offers options like if on separate lines, x from separate lines, and def on separate lines. The implementation involves handling comments, scanning tokens, and personalization parameters. Concrete examples demonstrate the formatter's capabilities, such as printing if statements on separate lines. The lecture also discusses challenges faced, like managing comments' positions and possible extensions for the formatter, such as adding more personalization options and managing line width.

About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.