RE: [Opencxx-users] Re: refining the Synopsis AP Is
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <20DCDD8F0FCED411AC4D001083CF504501AA9822@MTL-EXCHANGE> |
> From: Vladimir Prus [mailto:[email protected]] > Sent: November 2, 2004 03:36 > <aside> > Isn't > def __init__(self, files=None, declarations=None, typedict=None): > """Constructor""" > > if files is None: files = {} > > reduntant? What about > > def __init__(self, files={}, declarations=None, typedict=None): > """Constructor""" > > </aside> you are right. Feel free to fix it. > The Synopsis.AST can be described as storing "bare-bone" C++ > declarations. I'm > afraid I don't know the good one-word name for that :-( yes, it's all about declarations. However, it's not just C++, which is quite important in this discussion, as this means the representation can't be based on syntax. (Right now it is used to represent C++, python, and IDL.) Regards, Stefan