Professional Documents
Culture Documents
Problem Definition: - Input: SCXML Statechart Model - Output
Problem Definition: - Input: SCXML Statechart Model - Output
• Base Transformation
– The code structure for both languages is the same
• We can use the same rules
– They differ in the syntax
– We create a base transformation with the common
rules to create a switch structure
Example
• Base T (base_T.m2t):
Example
• ΔT
– We use a ΔT for each language to introduce
specific elements for that language
– We specify the rules in the Base T that need to be
rewritten to generate specific language output
– We can introduce new rules. E.g. writeBreak() in
ΔTC++ (break; is not necessary in Ada)
Example
• ΔTC++
Example
• ΔTAda
Example
• Goal:
– ScXml2Cpp.m2t
– ScXml2Ada.m2t
How?