Are you an EPFL student looking for a semester project?
Work with us on data science and visualisation projects, and deploy your project as an app on top of Graph Search.
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.