Skip to content

Commit f67c3d5

Browse files
committed
Cleanup generated code
1 parent eceec43 commit f67c3d5

File tree

69 files changed

+1655
-12005
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1655
-12005
lines changed

1.Basics/.project

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<projectDescription>
3-
<name>ThingMLDemo</name>
4-
<comment></comment>
5-
<projects>
6-
</projects>
7-
<buildSpec>
8-
<buildCommand>
9-
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
10-
<arguments>
11-
</arguments>
12-
</buildCommand>
13-
<buildCommand>
14-
<name>org.sintef.thingml.resource.thingml.builder</name>
15-
<arguments>
16-
</arguments>
17-
</buildCommand>
18-
</buildSpec>
19-
<natures>
20-
<nature>org.sintef.thingml.resource.thingml.nature</nature>
21-
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
22-
</natures>
23-
</projectDescription>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>ThingMLDemo</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.sintef.thingml.resource.thingml.builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.sintef.thingml.resource.thingml.nature</nature>
21+
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
2-
thing HelloWorld {
3-
4-
statechart HelloWorld init Greetings {
5-
6-
on entry `Serial.begin(9600);`
7-
8-
state Greetings {
9-
on entry `Serial.println("Hello World!");`
10-
}
11-
}
12-
}
13-
14-
configuration HelloApp
15-
{
16-
instance hello : HelloWorld
1+
2+
thing HelloWorld {
3+
4+
statechart HelloWorld init Greetings {
5+
6+
on entry `Serial.begin(9600);`
7+
8+
state Greetings {
9+
on entry `Serial.println("Hello World!");`
10+
}
11+
}
12+
}
13+
14+
configuration HelloApp
15+
{
16+
instance hello : HelloWorld
1717
}

1.Basics/1_HelloWorld/thingml-gen/arduino/HelloApp/HelloApp/HelloApp.ino

Lines changed: 0 additions & 239 deletions
This file was deleted.

1.Basics/2_Blink/Blink1.thingml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
thing Blink1 {
2-
3-
message tic() @xms_tic "500";
4-
5-
required port clock {
6-
receives tic
7-
}
8-
9-
statechart Blink1 init OFF {
10-
11-
on entry `pinMode(12, OUTPUT);`
12-
13-
state OFF {
14-
on entry `digitalWrite(12, LOW);`
15-
transition -> ON event clock?tic
16-
}
17-
18-
state ON {
19-
on entry `digitalWrite(12, HIGH);`
20-
transition -> OFF event clock?tic
21-
}
22-
}
23-
}
24-
25-
protocol Timer;
26-
27-
configuration Blink1App
28-
{
29-
instance blink1 : Blink1
30-
connector blink1.clock over Timer
1+
thing Blink1 {
2+
3+
message tic() @xms_tic "500";
4+
5+
required port clock {
6+
receives tic
7+
}
8+
9+
statechart Blink1 init OFF {
10+
11+
on entry `pinMode(12, OUTPUT);`
12+
13+
state OFF {
14+
on entry `digitalWrite(12, LOW);`
15+
transition -> ON event clock?tic
16+
}
17+
18+
state ON {
19+
on entry `digitalWrite(12, HIGH);`
20+
transition -> OFF event clock?tic
21+
}
22+
}
23+
}
24+
25+
protocol Timer;
26+
27+
configuration Blink1App
28+
{
29+
instance blink1 : Blink1
30+
connector blink1.clock over Timer
3131
}

0 commit comments

Comments
 (0)