-
Key: UML14-973
-
Legacy Issue Number: 3144
-
Status: closed
-
Source: OpenModeling ( Jos Warmer)
-
Summary:
Currently, the syntax for the literal collection allows either a single
range of values, or a list of individual values:literalCollection := collectionKind "
{" expressionListOrRange? "}"
expressionListOrRange := expression
( ( "," expression )+( ".." expression ) )? This is too complicated a rule for what could have been
made much simpler:literalCollection := collectionKind "
{" (collectionItem ("," collectionItem )+)? "}"
collectionItem := expression ( ".." expression )?
Which would also allow more general types of literal collections,
like in:Set
{ 0..2, 3, 4, 5..15 }And is just as easy to parse.
Proposed resolution:
This is more generic and should be includes in the OCL grammar.
grammar is ok. -
Reported: UML 1.2 — Fri, 17 Dec 1999 05:00 GMT
-
Disposition: Resolved — UML 1.3
-
Disposition Summary:
No Data Available
-
Updated: Fri, 6 Mar 2015 21:37 GMT