The Kompren tutorials are available on the official web page of the Kompren DSL.
The robot
folder contains the metamodel, the grammar and the input model used as the illustrative example. The generated tutorials are provided as follows:
begin
end
A ProgramUnit contains the commands for controlling a robot. It is the main class of the language. Type begin
.
Type end
.
begin
move ( 25 )
end
It defines a command for moving forward the robot. distance
must be defined. The robot moves foward for a given distance in centimeter. The expected format is a double value.
Type move (
.
Then, give the value, here: 25
.
Type )
.
See also:
Defining a ProgramUnit
begin
turn ( -100 )
end
It defines a command for rotating the robot. angle
must be defined. The robot rotates following a given rotation angle in degree. The expected format is a double value.
Type turn (
.
Then, give the value, here: -100
.
Type )
.
See also:
Defining a ProgramUnit