eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

Use the formatter as code writer for codegen #25

Closed lucaswerkmeister closed 8 years ago

lucaswerkmeister commented 10 years ago

With #17, we can use the formatter as a code writer for the source generation (FormattingOptions_generated.ceylon). This would be both a neat demonstration of its capabilities, and a big step towards dogfooding.

I suspect I’ll also start a ceylon.ast module for this...

lucaswerkmeister commented 10 years ago

Currently, the formatter can format about 75% of FormattingOptions_generated.ceylon.

lucaswerkmeister commented 10 years ago

The formatter now supports all language features used in FormattingOptions_generated.ceylon. However, I’m going to postpone this in favour of even more language features so IDE integration can start ASAP.

lucaswerkmeister commented 10 years ago

Postponing after 1.0.0 because it needs ceylon.ast, which is now my GSoC proposal.

lucaswerkmeister commented 9 years ago

Actually… this would make ceylon.formatter depend on itself for building, making a bootstrapped build impossible (the “escape” would be an already-available version, e. g. on the Herd – but what if there are compatibility problems, binary or otherwise?). I’d say this is a great case of “never touch a running system”, i. e., our current source-gen (while a minor pain to write and, when needed, update), works well enough.

lucaswerkmeister commented 8 years ago

Closing this. Icky circular dependency, not necessary since codegen is already there.