How to output conversion result to source
StateGo is a tool for designing a "State Transition Diagram".
You write your program directly into a table of nodes called states, which represent states.
The written program is rearranged by the template and becomes an executable source code.
Prepare a place to insert the conversion content into the source code to be output.
For example, in the case of C#, it becomes as follows.
using System;
using System.IO;
:
: Free programming
:
public class HogeControl {
:
: Free programming
:
// [STATEGO OUTPUT START] indent(4) $/../$ insertion start mark
The converted source code is inserted here.
// [STATEGO OUTPUT END] insertion end mark
:
: Free programming
:
}
Each state transformed by the template is inserted between the [insert start mark] and [insert end mark].
In other words, you can program freely otherwise.
Simple to use
The simple way to use StateGo is to use only function names in the program, and implement the functions in places other than the insertion location.
The conversion in StateGo is just rearranging the contents of the state with the template and inserting it into the insertion location, so you can define the functions and variables used in StateGo at places other than the insertion location.