openEHR / adl-antlr

Antrl4 grammars for ADL
Apache License 2.0
1 stars 4 forks source link

Ambiguity in lexer: ARCHETYPE_REF and ARCHETYPE_HRID #9

Closed pieterbos closed 8 years ago

pieterbos commented 8 years ago

This leads to parser errors, for example the specializes section needs an archetype reference, not a HRID, but the token stream supplies a HRID, leading to mismatched input errors:

line 5:4 mismatched input 'openEHR-EHR-COMPOSITION.report_result.v1.0.0' expecting ARCHETYPE_REF

With the following ADL-fragment:

template (adl_version=2.0.5; rm_release=1.0.2; generated)
    openEHR-EHR-COMPOSITION.blood_pressure.v1.0.0

specialize
    openEHR-EHR-COMPOSITION.report_result.v1.0.0
wolandscat commented 8 years ago

This is now corrected.

pieterbos commented 8 years ago

Tested, works.