# Problem with using DADL-parser?

**URL:** <https://discourse.openehr.org/t/problem-with-using-dadl-parser/13188>\
**Category:** Reference Implementation: Java (archive)\
**Created:** [21 February 2009 12:42 UTC](https://discourse.openehr.org/t/problem-with-using-dadl-parser/13188 "2009-02-21T12:42:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [21 February 2009 12:42 UTC](https://discourse.openehr.org/t/problem-with-using-dadl-parser/13188/1 "2009-02-21T12:42:00Z")

</div>

I have a simple DADL file, I copy it here

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [21 February 2009 13:50 UTC](https://discourse.openehr.org/t/problem-with-using-dadl-parser/13188/2 "2009-02-21T13:50:51Z")

</div>

It looks like it has to do with the: (List\<ITEM\>), when I remove it,  
this error disappears.  
I took this syntax from an example, page 23, chapter 4.1, in this file:  
[http://www.openehr.org/releases/1.0.1/architecture/am/adl.pdf](http://www.openehr.org/releases/1.0.1/architecture/am/adl.pdf)

In there is following text, is this wrong? Or is it an error in the  
DADL-parser?

Thanks, Bert

4 dADL - Data ADL  
4.1 Overview  
The dADL syntax provides a formal means of expressing instance data  
based on an underlying information model, which is readable both by  
humans and machines. The general appearance is exemplified by the  
following:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;person = (List\<PERSON\>) \<  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[01234] = \<  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name = \<  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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;country = \<“England”\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[01235] = \<  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- etc

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [21 February 2009 13:52 UTC](https://discourse.openehr.org/t/problem-with-using-dadl-parser/13188/3 "2009-02-21T13:52:05Z")

</div>

Hi Bert,

It seems the combination of typed object block and the keyed  
attributes together triggered this error. I have now fixed it in the  
parser (by adjusting the lookahead depth) and included your testcase  
there. Thanks for the report!

Regards,  
Rong

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [21 February 2009 14:08 UTC](https://discourse.openehr.org/t/problem-with-using-dadl-parser/13188/4 "2009-02-21T14:08:08Z")

</div>

Thank you for quick fixing

😉

Bert
