statecharts
statecharts copied to clipboard
Error in statechart language parser
Within a state, I use local reactions like the following:
[guard1] / action1
[guard2] / action2
This works as expected. However, now I change that to the following:
[guard1] / raise event
[guard2] / action2
The parser now complains about "missing EOF at '/'" at the "/" in the seconds line.
And here's a work around:
[guard1] / raise event
always [guard2] / action2
As discussed with @andreasmuelder, this error is a consequence of the upcoming array support. The syntax for accessing array elements should be changed, or otherwise existing models would be broken.
How about the Xtend-ey array.get( index )