-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get all preambles in Python, add test, update C test, and align react…
…or-c
- Loading branch information
1 parent
a088c1a
commit 55a1680
Showing
4 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
target Python | ||
|
||
reactor Base { | ||
preamble {= | ||
def initiation(self): | ||
print("Hello World\n") | ||
=} | ||
} | ||
|
||
reactor Extended extends Base { | ||
reaction(startup) {= | ||
self.initiation() | ||
=} | ||
} | ||
|
||
main reactor { | ||
e = new Extended() | ||
} |