Machine Learning Formatting with Xtext

Writing a codeformatter is boring and errorprone. I hate it because I'm lazy, but is there an alternative? Yes, of course! We're in 2017, folks!


robot-hand-keyboard.jpg

There's a project called Codebuff out there. Codebuff takes examples that are well formatted and trains a machine to format your code in the same way as a programmar who builded the examples would do it. So formatting becomes easy and individual.

So far so good - does that also work for DSLs? DSLs that were created with Xtext? Yes – since yesterday :)

Here's a small video to demostrate how easy it works now.

 
 
 
 
 
1:07
 
 
 
1:07
 
 
 
 
 
 
 
 
 
 
Wistia video thumbnail - Codebuff
0:14
 

Thanks for reporting a problem. We'll attach technical data about this session to help us figure out the issue. Which of these best describes the problem?

Any other details or context?

Cancel
message
 
 
 
 
 
 
 

 

To be honest – it's still a prototype that is not published yet. We'll show that stuff in more detail at the Eclipse DemoCamp in Munich on the 4th of Dec. 2017.

Hopefully you are completly flashed and we see each other in Munich next week.

After the DemoCamp we'll come up with a more detailed article – stay tuned.

About Holger Schill

Holger Schill is a regular speaker at international conferences. He is a committer to Xtext and other opensource projects and focusses on DSLs since more than 10 years. Holger leads the Itemis branch in Heide and is always looking for smart and talented people to work with.