7 Languages For The JVM- Learning By Example


Structural DSLs are great but at some point a software system needs behavior. Xtext now lets you reuse and integrate all kinds of Java language constructs right in your language. The new approach allows for embedding the powerful expressions known from Xtend as well as Java type references and annotations. As a result you get a holistic development experience and a fully-integrated Eclipse IDE, too.

Learn this new API by example and have a look at the 7 different languages we've built with it (in less than 7 weeks). It is surprisingly simple!

Image

Scripting Language

A simple scripting language that allows you to write code into a blank file without any structural boilerplate like class or method definitions.
It translates to a Java class with a main method.

Image

Build Language

A little language that lets you define tasks and dependencies between them. Much like a nice and concise Ant or a statically typed Gradle.

Image

DSL for MongoDB

Document structures for MongoDB can be defined with this language. It generates a handy Java API to interact with MongoDB in a statically typed and structured manner.

Image

DSL for Guice

This language allows you to declare Google Guice modules in a more readable and declarative way. Thereby many of the runtime checks can be done at compile time.

Image

Http Routing Language

Web.xml on steroids and without the XML: Write a URL pattern and map it to a method call in Java. Similar to how the Play! framework does it, but with great Eclipse integration and not limited to static methods.

Image

Template Language

A straight forward template language which allows for statically-typed expressions and named arguments with default values.

Image

Little Tortoise

Remember Logo? A cute little tortoise painting on a canvas whatever you want.

@Xtext on Twitter