Re: Re: software design clarification
Stefan Seefeld <[email protected]> Mon, 30 Apr 2007 08:43:17 -0400
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Markus Elfring wrote:
>
>> On the other hand, the higher level representation(s) like what we
>> currently call AST (but which is quite misleading, as here S stands for
>> Syntax, which is precisely what the A as Abstract abstracts away :-) ),
>> strives for language independence, as much as is practical.
>
> Which levels are available above that in your current design?
> http://synopsis.fresco.org/design.html
Yes, the parse tree is provided by the Synopsis::PTree API (C++),
while the AST is provided by the Synopsis.AST API (Python).
> Which wording or term will be more appropriate?
>
> Does a class for a (compilation) unit exist?
Not a class, but an object (a PTree::Node, representing the root node
of the tree).
>> Not sure whether that is what you mean by 'platform-independent' vs.
>> 'platform-dependent'.
>
> A model will become dependent on the platform if it will be mapped to
> concrete details like specific compiler tools and operating systems.
Not sure what you mean by 'mapping' in this context. The source from
which the parse tree is built may or may not be dependent on platform-
specific details (system headers, say), and so will the parse tree.
I still fail to see what you are aiming at. So far it sounds pretty
academic.
Regards,
Stefan
--
...ich hab' noch einen Koffer in Berlin...