From: Manuel Collado <m.collado@fi.upm.es>
Subject: Re: ANNOUNCE: Avatox 1.0 is now available
Date: Sat, 09 Sep 2006 10:28:49 +0200
Date: 2006-09-09T10:28:49+02:00 [thread overview]
Message-ID: <45027b40@news.upm.es> (raw)
In-Reply-To: <45018e97$0$17399$9b4e6d93@newsspool2.arcor-online.net>
Georg Bauhaus escribió:
> Randy Brukardt wrote:
>
>> (Note: I don't see an obvious way to flatten this extra information in XML.
>> It's not flat in Janus/Ada; there are a number of tables that collectvely
>> make up the compiler symboltable, and we only flatten each one in turn. But
>> I'm sure you clever guys will figure out a way.)
>
> XML is anything but flat. :-) Every document instance is a tree plus
> pointers, unique references, typed pointers, multipointers, index keys,
> etc.
> I believe you can even have nested scopes for identifiers when
> using Relax NG.
What puzzles me is that the XML structure (nesting) doesn't follows the
lexical Ada source structure. Example from avatox.adb --> avatox.adb.xml:
<A_CLAUSE ... startLine="29" endLine="29" startCol="1" endCol="29">
<A_WITH_CLAUSE ... startLine="29" endLine="29" startCol="1" endCol="29"/>
<AN_EXPRESSION ... startLine="29" endLine="29" startCol="6" endCol="28">
<A_SELECTED_COMPONENT ... startLine="29" endLine="29" startCol="6"
endCol="28"/>
<AN_EXPRESSION ... startLine="29" endLine="29" startCol="6" endCol="19">
....
You can see that <A_WITH_CLAUSE> from (29,1) to (29,29) lexically contains
<AN_EXPRESSION> from (29,6) to (29,28). But the latest is not nested inside
the former. Instead, it appears as a sibling of it.
The same for <A_SELECTED_COMPONENT> from (29,6) to (29,28) and
<AN_EXPRESSION> from (29,6) to (29,19).
Is that the intended behaviour?
--
Manuel Collado
next prev parent reply other threads:[~2006-09-09 8:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-17 0:58 ANNOUNCE: Avatox 1.0 is now available Marc A. Criley
2006-08-17 2:10 ` Jeffrey Creem
2006-08-18 8:03 ` Pascal Obry
2006-08-18 8:04 ` Pascal Obry
2006-08-18 8:05 ` Pascal Obry
2006-08-21 20:59 ` Simon Wright
2006-08-24 0:41 ` Marc A. Criley
2006-08-24 6:03 ` Simon Wright
2006-08-25 1:15 ` Marc A. Criley
2006-09-06 23:29 ` Randy Brukardt
2006-09-07 20:46 ` Simon Wright
2006-09-08 2:40 ` Randy Brukardt
2006-09-08 13:40 ` Georg Bauhaus
2006-09-09 8:28 ` Manuel Collado [this message]
2006-09-09 12:21 ` Simon Wright
2006-09-11 7:58 ` Manuel Collado
2006-09-09 18:56 ` Marc A. Criley
2006-09-11 8:10 ` Manuel Collado
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox