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

Bug 323804

Summary: [HUTN] Shorthand forms for object
Product: [Modeling] Epsilon Reporter: Louis Rose <louis>
Component: CoreAssignee: Dimitris Kolovos <dkolovos>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.