Support empty dADL blocks

Description

The current grammar doesn't seem to support object block without any attributes. It's needed to support instances that have no values, the mere existence of the instance is enough, e.g. PARTY_SELF from the openEHR RM.

An example (from ADL document):

profile = (DESTINATION_PROFILE) <>

Activity

Show:
Rong Chen
July 14, 2008, 8:22 AM

As Peter Gummer correctly pointed out this change is unnecessary. The problem occurred in the Java parser is due to an error when translating the reference grammar to javaCC syntax.

[email from Peter]
"For the second issue, I don't think your suggested "[" and "]" are required. The above test archetype contains examples of empty object blocks, and the Eiffel parser accepts them. My reading of the dADL grammar as published is that this is to be expected, thanks to the rule:

single_attr_object_complex_head SYM_END_DBLOCK

This reduces to <>, i.e. an empty object block."

Thomas Beale
July 20, 2008, 10:01 AM

The current grammar already supports this case (double-checked by me in ADL workbench, ADL workbench source grammar, and ADL 1.4 published grammar today). This CR is therefore not needed and is rejected.

Assignee

Unassigned

Reporter

Rong Chen

Raised By

Rong Chen

Priority

Minor
Configure