JetBrains / Nitra

Public Nitra repository
Other
554 stars 43 forks source link

Pretty Printing = Apply a Template or / and Transformation #19

Open sirinath opened 10 years ago

sirinath commented 10 years ago

Nitra can benefit from a template language. This can be used to apply a template for pretty printing as well as doing the reverse. Run the output from applying the template though a specific parser reconstruct the original. Keeping it generic will be better in the long run than having a specific HTML pretty printer.

sirinath commented 9 years ago

Another way to look at pretty printing is as a code transformation