💾 Archived View for tris.fyi › pydoc › pycparser.c_ast captured on 2023-01-29 at 04:17:13. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-07-16)
-=-=-=-=-=-=-
This module has no docstring.
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
alignment = <member 'alignment' of 'Alignas' objects>
attr_names = ()
coord = <member 'coord' of 'Alignas' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('dim_quals',)
coord = <member 'coord' of 'ArrayDecl' objects>
dim = <member 'dim' of 'ArrayDecl' objects>
dim_quals = <member 'dim_quals' of 'ArrayDecl' objects>
type = <member 'type' of 'ArrayDecl' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'ArrayRef' objects>
name = <member 'name' of 'ArrayRef' objects>
subscript = <member 'subscript' of 'ArrayRef' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('op',)
coord = <member 'coord' of 'Assignment' objects>
lvalue = <member 'lvalue' of 'Assignment' objects>
op = <member 'op' of 'Assignment' objects>
rvalue = <member 'rvalue' of 'Assignment' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('op',)
coord = <member 'coord' of 'BinaryOp' objects>
left = <member 'left' of 'BinaryOp' objects>
op = <member 'op' of 'BinaryOp' objects>
right = <member 'right' of 'BinaryOp' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'Break' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'Case' objects>
expr = <member 'expr' of 'Case' objects>
stmts = <member 'stmts' of 'Case' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'Cast' objects>
expr = <member 'expr' of 'Cast' objects>
to_type = <member 'to_type' of 'Cast' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
block_items = <member 'block_items' of 'Compound' objects>
coord = <member 'coord' of 'Compound' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'CompoundLiteral' objects>
init = <member 'init' of 'CompoundLiteral' objects>
type = <member 'type' of 'CompoundLiteral' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('type', 'value')
coord = <member 'coord' of 'Constant' objects>
type = <member 'type' of 'Constant' objects>
value = <member 'value' of 'Constant' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'Continue' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
align = <member 'align' of 'Decl' objects>
attr_names = ('name', 'quals', 'align', 'storage', 'funcspec')
bitsize = <member 'bitsize' of 'Decl' objects>
coord = <member 'coord' of 'Decl' objects>
funcspec = <member 'funcspec' of 'Decl' objects>
init = <member 'init' of 'Decl' objects>
name = <member 'name' of 'Decl' objects>
quals = <member 'quals' of 'Decl' objects>
storage = <member 'storage' of 'Decl' objects>
type = <member 'type' of 'Decl' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'DeclList' objects>
decls = <member 'decls' of 'DeclList' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'Default' objects>
stmts = <member 'stmts' of 'Default' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
cond = <member 'cond' of 'DoWhile' objects>
coord = <member 'coord' of 'DoWhile' objects>
stmt = <member 'stmt' of 'DoWhile' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'EllipsisParam' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'EmptyStatement' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('name',)
coord = <member 'coord' of 'Enum' objects>
name = <member 'name' of 'Enum' objects>
values = <member 'values' of 'Enum' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('name',)
coord = <member 'coord' of 'Enumerator' objects>
name = <member 'name' of 'Enumerator' objects>
value = <member 'value' of 'Enumerator' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'EnumeratorList' objects>
enumerators = <member 'enumerators' of 'EnumeratorList' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'ExprList' objects>
exprs = <member 'exprs' of 'ExprList' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'FileAST' objects>
ext = <member 'ext' of 'FileAST' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
cond = <member 'cond' of 'For' objects>
coord = <member 'coord' of 'For' objects>
init = <member 'init' of 'For' objects>
next = <member 'next' of 'For' objects>
stmt = <member 'stmt' of 'For' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
args = <member 'args' of 'FuncCall' objects>
attr_names = ()
coord = <member 'coord' of 'FuncCall' objects>
name = <member 'name' of 'FuncCall' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
args = <member 'args' of 'FuncDecl' objects>
attr_names = ()
coord = <member 'coord' of 'FuncDecl' objects>
type = <member 'type' of 'FuncDecl' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
body = <member 'body' of 'FuncDef' objects>
coord = <member 'coord' of 'FuncDef' objects>
decl = <member 'decl' of 'FuncDef' objects>
param_decls = <member 'param_decls' of 'FuncDef' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('name',)
coord = <member 'coord' of 'Goto' objects>
name = <member 'name' of 'Goto' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('name',)
coord = <member 'coord' of 'ID' objects>
name = <member 'name' of 'ID' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('names',)
coord = <member 'coord' of 'IdentifierType' objects>
names = <member 'names' of 'IdentifierType' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
cond = <member 'cond' of 'If' objects>
coord = <member 'coord' of 'If' objects>
iffalse = <member 'iffalse' of 'If' objects>
iftrue = <member 'iftrue' of 'If' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'InitList' objects>
exprs = <member 'exprs' of 'InitList' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('name',)
coord = <member 'coord' of 'Label' objects>
name = <member 'name' of 'Label' objects>
stmt = <member 'stmt' of 'Label' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'NamedInitializer' objects>
expr = <member 'expr' of 'NamedInitializer' objects>
name = <member 'name' of 'NamedInitializer' objects>
children(self) A sequence of all children that are Nodes
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
A base NodeVisitor class for visiting c_ast nodes. Subclass it and define your own visit_XXX methods, where XXX is the class name you want to visit with these methods. For example: class ConstantVisitor(NodeVisitor): def __init__(self): self.values = [] def visit_Constant(self, node): self.values.append(node.value) Creates a list of values of all the constant nodes encountered below the given node. To use it: cv = ConstantVisitor() cv.visit(node) Notes: * generic_visit() will be called for AST nodes for which no visit_XXX method was defined. * The children of nodes for which a visit_XXX was defined will not be visited - if you need this, call generic_visit() on the node. You can use: NodeVisitor.generic_visit(self, node) * Modeled after Python's own AST visiting facilities (the ast module of Python 3.0)
generic_visit(self, node) Called if no explicit visitor function exists for a node. Implements preorder visiting of the node.
visit(self, node) Visit a node.
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'ParamList' objects>
params = <member 'params' of 'ParamList' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('string',)
coord = <member 'coord' of 'Pragma' objects>
string = <member 'string' of 'Pragma' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('quals',)
coord = <member 'coord' of 'PtrDecl' objects>
quals = <member 'quals' of 'PtrDecl' objects>
type = <member 'type' of 'PtrDecl' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
coord = <member 'coord' of 'Return' objects>
expr = <member 'expr' of 'Return' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
cond = <member 'cond' of 'StaticAssert' objects>
coord = <member 'coord' of 'StaticAssert' objects>
message = <member 'message' of 'StaticAssert' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('name',)
coord = <member 'coord' of 'Struct' objects>
decls = <member 'decls' of 'Struct' objects>
name = <member 'name' of 'Struct' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('type',)
coord = <member 'coord' of 'StructRef' objects>
field = <member 'field' of 'StructRef' objects>
name = <member 'name' of 'StructRef' objects>
type = <member 'type' of 'StructRef' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
cond = <member 'cond' of 'Switch' objects>
coord = <member 'coord' of 'Switch' objects>
stmt = <member 'stmt' of 'Switch' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
cond = <member 'cond' of 'TernaryOp' objects>
coord = <member 'coord' of 'TernaryOp' objects>
iffalse = <member 'iffalse' of 'TernaryOp' objects>
iftrue = <member 'iftrue' of 'TernaryOp' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
align = <member 'align' of 'TypeDecl' objects>
attr_names = ('declname', 'quals', 'align')
coord = <member 'coord' of 'TypeDecl' objects>
declname = <member 'declname' of 'TypeDecl' objects>
quals = <member 'quals' of 'TypeDecl' objects>
type = <member 'type' of 'TypeDecl' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('name', 'quals', 'storage')
coord = <member 'coord' of 'Typedef' objects>
name = <member 'name' of 'Typedef' objects>
quals = <member 'quals' of 'Typedef' objects>
storage = <member 'storage' of 'Typedef' objects>
type = <member 'type' of 'Typedef' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
align = <member 'align' of 'Typename' objects>
attr_names = ('name', 'quals', 'align')
coord = <member 'coord' of 'Typename' objects>
name = <member 'name' of 'Typename' objects>
quals = <member 'quals' of 'Typename' objects>
type = <member 'type' of 'Typename' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('op',)
coord = <member 'coord' of 'UnaryOp' objects>
expr = <member 'expr' of 'UnaryOp' objects>
op = <member 'op' of 'UnaryOp' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ('name',)
coord = <member 'coord' of 'Union' objects>
decls = <member 'decls' of 'Union' objects>
name = <member 'name' of 'Union' objects>
children(self)
show(self, buf=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, offset=0, attrnames=False, nodenames=False, showcoord=False, _my_node_name=None) Pretty print the Node and all its attributes and children (recursively) to a buffer. buf: Open IO buffer into which the Node is printed. offset: Initial offset (amount of leading spaces) attrnames: True if you want to see the attribute names in name=value pairs. False to only see the values. nodenames: True if you want to see the actual node names within their parents. showcoord: Do you want the coordinates of each Node to be displayed.
attr_names = ()
cond = <member 'cond' of 'While' objects>
coord = <member 'coord' of 'While' objects>
stmt = <member 'stmt' of 'While' objects>