Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 245275

Summary: QVTO: Implement ForExp expression
Product: [Modeling] QVTo Reporter: Alexander Igdalov <alexander.igdalov>
Component: EngineAssignee: Alexander Igdalov <alexander.igdalov>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dvorak.radek
Version: unspecifiedKeywords: plan
Target Milestone: 2.0 M2   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Igdalov CLA 2008-08-26 12:32:45 EDT
 
Comment 1 Alexander Igdalov CLA 2008-09-25 13:35:41 EDT
Fixed.
Comment 2 Alexander Igdalov CLA 2008-09-25 13:44:46 EDT
ForExp (forEach and forOne) implemented.
The spec contains strange EBNF for these constructs.

1. Iterators are described wrongly. Changed to identifiers. Their type is deduced from the source collection expression.
2. Binding to primary expression is errorneous. ForEach and forOne cannot be placed standalone without a source expression.

Note: ForExp does NOT implement a Java-like for-cycle. In fact, there is no corresponding QVT construction.