Re: Using synopsis to translate python source code to C/C++ or Java

Stefan Seefeld <[email protected]> Fri, 27 Mar 2009 12:40:16 -0400
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
Tom Malcolmson wrote:
> I'm surprised to hear you say that it would be relatively easy in
> Python.  I thought that the hard part with Python is the type inference.
>   

You are right, and I'm sorry for not expressing myself more clearly. 
What I was thinking of when making the statement was the analysis side 
of things. It's far easier to analyse Python code than it is to analyse 
C++ code.
Of course, there are things that need to be addressed when mapping from 
one to another.

As Synopsis is able to process (and parse) comments, it would be 
possible to embed mapping directives into comments, i.e. you may 
annotate e.g. function declarations with type info, quite similar to how 
API documentation is typically written.

I haven't yet looked into Python 3 in the context of Synopsis, and so 
can't comment on how best to support the new features.

Thanks,
       Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...