Re: [pygccxml-development] low level vs high level API
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-03-08 05:42:40
|
On 3/7/06, Matthias Baas <ba...@ir...> wrote: > Roman Yakovenko wrote: > > 2. You needed some search algorithm with power of customization of > > search criteria, right? > > I took Matthias ideas and some code and added it to pygccxml.declara= tions > > The first place user will look at, in order to see how can he find > > some declaration, am I wrong? > > Are you referring to the algorithm module, the matcher module or some > other module? I couldn't find any code that looked like I could do the > kind of queries I was doing in my version....? I am referring to pygccxml/declarations/filters.py module.: 1. you can find any declaration by name, full name, location( file, directory ), declaration type 2. you can find any function by return type, [partial] list of arguments 3. you can find variable by type, name, value 4. you can find declaration using regular expression 5. you can find declaration by access type > - Matthias - That's all your ideas, not my. Take a look on it please. Also I created new module pygccxml/declarations/matcher.py. It should repla= ce relevant functionality found in algorithm.py. I even put some documentation in filters.py module :-). -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |