Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323804 - [HUTN] Shorthand forms for object
Summary: [HUTN] Shorthand forms for object
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 06:31 EDT by Louis Rose CLA
Modified: 2012-02-06 10:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Rose CLA 2010-08-27 06:31:10 EDT
As reported by Hallvard Traetteberg here:
http://www.eclipse.org/forums/index.php?t=msg&th=174430&start=0&S=b6dd16fc128b94bb3b504afe76d9fa2c

A typo in the HUTN parser is preventing anonymous, contained objects from being recognised.

The following code doesn't parse, because the contained Person has no identifier:

Family {
  members: Person { name: "John" }
}


Related to this, examples in the HUTN specification use a further shorthand form, which Epsilon HUTN doesn't support:

Family {
  members: Person;
}

and:

Family {
  members: Person "John";
}
Comment 1 Louis Rose CLA 2010-08-27 06:33:40 EDT
The parser has been changed to allow both anonymous, contained objects and the semi-colon terminated shorthand in the HUTN specification.

Checked into SVN. Assigning to Dimitris for build integration, thanks!
Comment 2 Dimitris Kolovos CLA 2010-09-06 09:29:27 EDT
Fixed in the latest interim version.
Comment 3 Dimitris Kolovos CLA 2010-11-25 08:22:42 EST
Fixed in 0.8.0.