Re: [pygccxml-development] Future of pypp_api...
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-08-21 05:05:02
|
On 8/21/06, Allen Bierbaum <al...@vr...> wrote: > The cases I would do this are where I think it may make it seem more > like a DSL. For example scons does this very well by masking the fact > that when you call what looks like a method what is actually happening > is that a class is being created behind the scene. You don't have to go to provide an example: str, list, dict, set > That said, I don't think I would do this much and once again where I do > it the change will not be permanent. Just something for you to review. > > >> - Template support by default > > > > > > We are still working on the document. > > > > https://python-ogre.python-hosting.com/file/trunk/python-ogre/ogre_generate_code.py?rev=13 > > > > > > Please take a look on generate_instantiations_string function and its > > usage. > > It is possible to make this code much user friendly. > > Yes. This code looks pretty similar in spirit to the TemplateBuilder > stuff I did for pyOpenSG. I just want to take it that step further and > make it very user friendly so the don't have to know all the ugly > details happening behind the scenes to allow this to work. I think it > can be done and I will do it. :-) Now you are talking! > >> - Some helper functions that I have found useful and may be helpful for > >> others. > >> - Adding methods to some existing interfaces to make some things simpler > > > > > > I think I know what you mean: functions that creates "def" and similar > > code, right? > > No. I was meaning add methods to existing class interfaces or modules > that py++ defines. Would you mind to provide few examples? > > I was thinking of just making it even simplier. Just make it so if you do: > > from adapter import * > > Then you get the entire DSL or whatever API it defines. >>> import this See item 2. But it is your decision. > > What I need to see is the places that you said "no, you can do this", I > need to see what you are saying can be done and how. Because as I see > it right now there is always going to be a two phase process where a > template header has to be created behind the scenes before the parsing. I will write some document -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |