Re: Synopsis - getting started

Stefan Seefeld <[email protected]> Sun, 06 May 2007 16:17:28 -0400
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
Roman Yakovenko wrote:
> Hi. I have small problem with using Cxx.Parser class. It seems that it
> doesn't honor the additional include directories I specify. I guess I
> have some error. Can you take a look on next script and to say what is
> wrong with it?
> 
> cxx = Cxx.Parser(
> 
>            preprocess=True
> 
>            , cppflags=['-I
> /home/roman/language-binding/sources/pygccxml_dev/unittests/data' ] )
> 
> 
> 
> ast = AST.AST()
> 
> cxx.process( ast, input=['bit_fields.hpp'] )
> 
> 
> If I pass full path to the file, the ast is built

The input is looked for in the current working directory (if its
path isn't absolute). The include search path is used when resolving
include directives only.

There are various examples in the source package (installed under <prefix>/share/doc)
demonstrating the suggested usage of synopsis scripts, and in particular, how to bind
certain fixed parameters from the script, and others (such as input) as arguments when
the script is invoked.

Regards,
		Stefan

-- 

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