TiarkRompf / virtualization-lms-core

A Framework for Runtime Code Generation and Compiled DSLs
http://scala-lms.github.com
BSD 3-Clause "New" or "Revised" License
324 stars 91 forks source link

Improve formatting of generated code #30

Closed TiarkRompf closed 11 years ago

TiarkRompf commented 12 years ago

Original message: The code that is written to output in Delite is not formatted and is very hard to parse. We should a output stream that does the code formatting so it is easier to read. Vlad has a prototype but we should maybe consider some of the existing formatting tools available out there.

We should at least have proper indentation. As a debug option, we should be able to print Defs in internal format as comments. Can we integrate SourceContext info in a useful way?

sstucki commented 11 years ago

8f40399add2517d964c61e84cb5ed5da2eedc805 adds basic indentation.

TiarkRompf commented 11 years ago

done in 8f40399add2517d964c61e84cb5ed5da2eedc805