Articles about Xtext

Xtext’s New Generator: Migration

By | February 19th, 2016|Eclipse, Generator, Xtext|

Xtext 2.9 ships with a new generator architecture, which is described in the previous post. Even though there is no immediate urge to migrate an existing language to the new generator infrastructure, here is how to do it. Make sure to keep a copy of your old code in order to safely roll back in [...]

Xtext’s New Generator

By | February 4th, 2016|Eclipse, Generator, Xtext|

Xtext 2.9 adds support for two additional editor platforms: Web-editors and IDEA. It also adds generic build system integration for Maven and for Gradle. As a result the number of generator options has grown a lot. So we took the opportunity to re-implement Xtext's code generator – the one that creates the language infrastructure from the [...]

Tutorial: Embedded Java With Xtext

By | January 24th, 2016|Eclipse, Tutorial, Xtext|

Jbase is a customization of Xbase to handle pure Java expressions and to adhere to the stricter Java type system. Jbase main implementation aspects are: redefines many of the Xbase grammar rules so that they can handle Java expressions (including array access expressions with []) customizes the Xbase compiler to handle additional Java expressions customizes [...]

How To Eat The World With DSLs

By | January 24th, 2016|DSLs, Eclipse, Xtext|

Everybody repeats the popular quote by investor Marc Andreessen: “ Software is Eating the World”. This phrase describes how software is going everywhere these days and how it disrupts traditional businesses. Industries that seemed to be well-established and developed are taken over by startups with software in often just a couple of months. Think of [...]

Parsing Expressions With Xtext

By | January 1st, 2016|DSLs, Eclipse, Xtext|

Parsing simple XML-like, structural languages with Xtext is a no-brainer. However, parsing nested expressions is often considered a bit more complicated. This is due to their recursive nature and also because with Xtext you have to avoid left-recursive parser rules. As the underlying parser (generated by Antlr) uses a top-down approach, it would recurse endlessly [...]