Soft Generators is an implementation of EMF generators for C++, Go and TypeScript languages
Soft Generators is part of Soft project
- Install a Java JRE 8+
- Download archive of a generator from the project releases page
- Unzip archive
Generator can now be run with the following command:
$ java -jar sof.generator.<lang>-<version>.jar --version
<lang> = the generator language : go, ts, cpp
<version> = the generator version
Example:
$ java -jar soft.generator.go-1.5.0.jar --version
soft.generator.go version: 1.5.0
Use the Docker images available from Docker Hub:
Example:
$ docker run --rm masagroup/soft.generator.go --version
soft.generator.go version: 1.5.0
$ docker run --rm -v "$PWD":/gen -w /gen masagroup/soft.generator.go -s -m /gen/model.ecore -o /gen
Usage: [-hsv] -m=<model> -o=<folder> [-p=<property=value>]... [-P=<propertyfile>]... [-t=<template>]...
-h, --help print this help and exit
-m, --model=<model> the input model
-o, --output=<folder> the output folder
-p, --property=<property=value> set value for given property
-P, --properties=<propertyfile> load properties from a property file
-s, --silent print nothing but failures
-t, --template=<template> the template to be executed: <templates list>
-v, --version print version information and exit
If you want to bootstrap generators yourself, you'll need:
- Make
- Docker
- Run Make, specifying dist target with the following command:
make all dist
If you want to debug generators with an Eclipse IDE, you'll need: