Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 522 Bytes

example.rst

File metadata and controls

20 lines (15 loc) · 522 Bytes

Parsing a c++ file

This example shows how to setup pygccxml to parse a c++ file, and how to access the declaration tree.

Let's consider the following c++ file (example.hpp):

example.hpp

The following code will show you how to create a configuration for the xml generator (an external tool, either castxml or gccxml), and how to parse the c++ file:

example.py