itemisCREATE / statecharts

YAKINDU Statechart Tools (http://www.statecharts.org)
Eclipse Public License 1.0
173 stars 84 forks source link

Error in statechart language parser #979

Open RainerKlute opened 7 years ago

RainerKlute commented 7 years ago

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 commented 7 years ago

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.

BeckmaR commented 7 years ago

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