Creating Your First DSL Script

Flow Name and Structure

Each script must define at least one flow name (e.g. @Init). You can also define multiple flows in the same script and jump between them using built-in commands.

Simplest example:

@Init
Set("name", "DSL Forge!" ),
Log("Hello, {0}", Get("name"))
  • @Init is the flow name

  • Log is the simplest built-in command for debug output

You can define multiple flows in the same file and use Goto or Call to move between them:

@Init
Goto("@MainMenu")

@MainMenu
Log("Entered Main Menu")

Last updated