Skip to content

MetaBorgCube/spoofax2-lang-example

 
 

Repository files navigation

Spoofax 2 Language Example

Example showing how to build Spoofax 2 languages from the command-line with Maven or Gradle. Contains two extremely simple languages:

  • front: default Spoofax 2 project, with the start constructor changed to Front.
  • back: not a real language, but just extends front. Has a source dependency to front, and adds a 'Compile' builder to it.

In the java directory are Java projects that take a slice of one of the Spoofax 2 language projects, and runs it separately:

  • java/parse: demonstrates running just the parser based on the grammar in front.
  • java/stratego: demonstrates running just a Stratego strategy from front on an abstract syntax tree.

Maven Build

Requires Maven to be installed. See https://spoofax.dev/howtos/development/setup-maven-for-spoofax-dev/ on how to install the recommended Maven version.

Run:

mvn clean verify

Gradle Build

A Gradle wrapper is included, so Gradle does not need to be installed. A JDK version 8 or higher is required.

Run:

./gradlew build

The Gradle build does not build Eclipse plugins, features, and update sites.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.0%
  • Shell 6.0%