ctree.cpp package

Submodules

ctree.cpp.codegen module

Code generation for C preprocessing directives.

class ctree.cpp.codegen.CppCodeGen(indent=0)[source]

Bases: ctree.codegen.CodeGenVisitor

Visitor to generate C preprocessor directives.

visit_CppComment(node)[source]
visit_CppDefine(node)[source]
visit_CppInclude(node)[source]

ctree.cpp.dotgen module

DOT generation for C preprocessor directives.

class ctree.cpp.dotgen.CppDotLabeller[source]

Bases: ctree.dotgen.DotGenLabeller

Visitor to generator DOT.

visit_CppComment(node)[source]
visit_CppInclude(node)[source]

ctree.cpp.nodes module

C preprocessor nodes supported by ctree.

class ctree.cpp.nodes.CppComment(text='')[source]

Bases: ctree.cpp.nodes.CppNode

Represents // foo

class ctree.cpp.nodes.CppDefine(name=None, params=None, body=None)[source]

Bases: ctree.cpp.nodes.CppNode

class ctree.cpp.nodes.CppInclude(target='', angled_brackets=True)[source]

Bases: ctree.cpp.nodes.CppNode

Represents #include <foo.h>.

class ctree.cpp.nodes.CppNode[source]

Bases: ctree.nodes.CtreeNode

Base class for all C Preprocessor nodes in ctree.

codegen(indent=0)[source]
label()[source]

Module contents

Table Of Contents

Previous topic

ctree.cilk package

Next topic

ctree.ocl package

This Page