Grammar CComplexobject enforces content

Description

It is now defined like this:
c_complex_object: rm_type_id '[' ( ROOT_ID_CODE | ID_CODE ) ']' c_occurrences? ( SYM_MATCHES '{' c_attribute_def+ '}' )? ;

That means, you cannot write: WHOLE[id1] matches {}

When you write this, the problem is solved.

c_complex_object: rm_type_id '[' ( ROOT_ID_CODE | ID_CODE ) ']' c_occurrences? ( SYM_MATCHES '{' c_attribute_def* '}' )? ;

Environment

None

Activity

Show:
Thomas Beale
May 17, 2016, 9:35 AM

The grammar is correct. If you don't want any content, just put:

WHOLE[id1]

Bert Verhees
May 17, 2016, 9:40 AM
Edited

thanks for the statement, i change it back

Reporter

Bert Verhees

Labels

None

Components

Affects versions

Priority

Trivial
Configure