Ask any question about EPFL courses, lectures, exercises, research, news, etc. or try the example questions below.
DISCLAIMER: The Graph Chatbot is not programmed to provide explicit or categorical answers to your questions. Rather, it transforms your questions into API requests that are distributed across the various IT services officially administered by EPFL. Its purpose is solely to collect and recommend relevant references to content that you can explore to help you answer your questions.
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.