statecharts icon indicating copy to clipboard operation
statecharts copied to clipboard

Error in statechart language parser

Open RainerKlute opened this issue 8 years ago • 2 comments

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

RainerKlute avatar Sep 16 '16 11:09 RainerKlute

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.

RainerKlute avatar Sep 20 '16 07:09 RainerKlute

How about the Xtend-ey array.get( index )

BeckmaR avatar Sep 20 '16 09:09 BeckmaR