SSEHUB / EASyProducer

EASy-Producer - A Product Line Engineering Toolset
Apache License 2.0
10 stars 2 forks source link

Editor does not allow nested eval blocks #66

Closed rsizonenko closed 8 years ago

rsizonenko commented 8 years ago

Editor does not allow to model nested eval blocks (both in top-level project and in compounds) Example: compound C { Integer a; eval { a > 0; eval { a < 100; } } }

Editor complains: missing '}' at 'eval' and extraneous input '}' expecting EOF

eichelbe commented 8 years ago

Example is not correct, nested eval blocks must go first. Made grammar a bit more liberal to allow also plain nesting of eval blocks. Access to nested eval blocks happens via the contained elements - removed specific interface to keep the block similar to freeze.

Added test case...

eichelbe commented 8 years ago

Please check / close.

rsizonenko commented 8 years ago

Nested evals possible (also multiple ones) when the come in the beginning of current eval block - checked