Generators

How to use

Dependency in manifest

First you need to declare them in your manifest.
For instance, if you would like to use the Kotlin generator, declare it as follow in the “dependencies” section:

1
2
3
4
5
6
7
8
name: HelloWorld
project: MyFirstProject
organisation: MyOrg
version: 1.0.0
stability: alpha
releaseNumber: 1
dependencies:
  - TLang/Generator/Kotlin 1.0.0:alpha:1 kotlin

Use in template

In a tlang file, you need to import it with the “use” keyworkd and define a lang template as Kotlin code in the braquets after the “tmpl” keyword.

use kotlin.Kotlin

tmpl[kotlin] myTemplate() lang {
    var myVar:String = "The value"

    impl MyClass {
        func myFunc(param1: String[], param2: String):Int {
	        return 42
        }
    }
}

Generators

This is a list of known generators. If you have created your own you can ask us to add it here.

Lang

More languages will come

Data

More data format will come

Doc

More doc format will come

Cmd

More command languages will come

Style

More style will come