Skip to content

Python scripts to create XML from Clang's AST of C/C++ source code

Notifications You must be signed in to change notification settings

BentleyJOakes/PCX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCX

Python scripts to take C or C++ source code and extract an XML representation from Clang's AST

parse_source.py

Usage: python2 parse_source.py filename.c(pp)

Walks through the AST produced by clang using the Python bindings of libclang.

Uses to_xml.py, which will break down the elements in the AST tree into XML nodes. Note that the tokenizing of clang is not perfect, and must be handled relatively manually.

About

Python scripts to create XML from Clang's AST of C/C++ source code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages