TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
102 stars 33 forks source link

Generate code with proper indentation #137

Closed brice-morin closed 6 years ago

brice-morin commented 7 years ago

Though not a big problem for Java, JS and C (code can easily be indented in any IDE), large unindented blocks of code are not so readable e.g. in PlantUML compiler. It might also become an issue the day someone wants to target Python ;-)

maxleiko commented 7 years ago

INDENT§

brice-morin commented 6 years ago

@jakhog has implemented the infrastructure to generate indented code, etc. Go and JS compilers now use it. I suggest the other compilers also use it when they go through a major refactoring. I guess we can close the issue for now.