peterharaszin / yakindu

Automatically exported from code.google.com/p/yakindu
0 stars 0 forks source link

constant values as part of the statechart declaration #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Constant values can help to raise the expressiveness of statecharts since names 
can be used instead of concrete values. This has some impact on SCT:

* define a new stext rule for constants that is close to variable definitions 
with default value ( e.g. val pi : real = 3.14 )
* make sure that constanty can't be used on the left side of an assignment
* generate constants for different target languages
* disable constant editing in simulation view

Original issue reported on code.google.com by A.Muel...@googlemail.com on 17 Nov 2014 at 2:39

GoogleCodeExporter commented 9 years ago

Original comment by A.Muel...@googlemail.com on 18 Nov 2014 at 11:47

GoogleCodeExporter commented 9 years ago

Original comment by A.Muel...@googlemail.com on 18 Nov 2014 at 3:54

GoogleCodeExporter commented 9 years ago
Done so far:
changed Stext.xtext grammar to support definition of constants (val instead of 
var)
Added Validation to only allow constants and literals in initialisation 
expression.
Started extension of the Java code generator. 
Still missing:
C and Cpp code generator
SCTUnit Tests for constants in internal and named interfaces
Validation to check for definition order of constants

Original comment by A.Muel...@googlemail.com on 18 Nov 2014 at 4:17

GoogleCodeExporter commented 9 years ago
Added support of constants in C code generator.

Original comment by muehlbra...@itemis.de on 6 Jan 2015 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by A.Muel...@googlemail.com on 9 Jan 2015 at 1:46

GoogleCodeExporter commented 9 years ago

Original comment by A.Muel...@googlemail.com on 10 Apr 2015 at 11:43

GoogleCodeExporter commented 9 years ago
Added constant support to java code generator

Original comment by muel...@itemis.de on 10 Apr 2015 at 2:14

GoogleCodeExporter commented 9 years ago

Original comment by A.Muel...@googlemail.com on 20 Apr 2015 at 8:35