Did I find the right examples for you? yes no

All Samples(41)  |  Call(0)  |  Derive(21)  |  Import(20)
Base class for writing visitors for a Cython tree, contains utilities for
recursing such trees using visitors. Each node is
expected to have a child_attrs iterable containing the names of attributes
containing child nodes or lists of child nodes. Lists are not considered
part of the tree structure (i.e. contained nodes are considered direct
children of the parent node).

visit_children visits each of the children of a given node (see the visit_children
documentation). When recursing the tree using visit_children, an attribute
access_path is maintained which gives information about the current location(more...)

src/c/y/Cython-0.20.1/Cython/Compiler/ParseTreeTransforms.py   Cython(Download)
import Builtin
 
from Cython.Compiler.Visitor import VisitorTransform, TreeVisitor
from Cython.Compiler.Visitor import CythonTransform, EnvTransform, ScopeTrackingTransform
from Cython.Compiler.UtilNodes import LetNode, LetRefNode, ResultRefNode
class NameNodeCollector(TreeVisitor):
    """Collect all NameNodes of a (sub-)tree in the ``name_nodes``
    attribute.
    """
    def __init__(self):
class YieldNodeCollector(TreeVisitor):
 
    def __init__(self):
        super(YieldNodeCollector, self).__init__()
        self.yields = []

src/c/y/cython-HEAD/Cython/Compiler/ParseTreeTransforms.py   cython(Download)
import Builtin
 
from Cython.Compiler.Visitor import VisitorTransform, TreeVisitor
from Cython.Compiler.Visitor import CythonTransform, EnvTransform, ScopeTrackingTransform
from Cython.Compiler.UtilNodes import LetNode, LetRefNode, ResultRefNode
class NameNodeCollector(TreeVisitor):
    """Collect all NameNodes of a (sub-)tree in the ``name_nodes``
    attribute.
    """
    def __init__(self):
class YieldNodeCollector(TreeVisitor):
 
    def __init__(self):
        super(YieldNodeCollector, self).__init__()
        self.yields = []

src/c/y/CythonCTypesBackend-HEAD/Cython/Compiler/ParseTreeTransforms.py   CythonCTypesBackend(Download)
import Builtin
 
from Cython.Compiler.Visitor import VisitorTransform, TreeVisitor
from Cython.Compiler.Visitor import CythonTransform, EnvTransform, ScopeTrackingTransform
from Cython.Compiler.UtilNodes import LetNode, LetRefNode, ResultRefNode
class NameNodeCollector(TreeVisitor):
    """Collect all NameNodes of a (sub-)tree in the ``name_nodes``
    attribute.
    """
    def __init__(self):
class YieldNodeCollector(TreeVisitor):
 
    def __init__(self):
        super(YieldNodeCollector, self).__init__()
        self.yields = []

src/e/s/essig-HEAD/vm/cython/Cython/Compiler/ParseTreeTransforms.py   essig(Download)
from Cython.Compiler.Visitor import VisitorTransform, TreeVisitor
from Cython.Compiler.Visitor import CythonTransform, EnvTransform, ScopeTrackingTransform
from Cython.Compiler.ModuleNode import ModuleNode
from Cython.Compiler.Nodes import *
from Cython.Compiler.ExprNodes import *
class NameNodeCollector(TreeVisitor):
    """Collect all NameNodes of a (sub-)tree in the ``name_nodes``
    attribute.
    """
    def __init__(self):

src/p/y/pylibs-HEAD/Cython/Compiler/ParseTreeTransforms.py   pylibs(Download)
from Cython.Compiler.Visitor import VisitorTransform, TreeVisitor
from Cython.Compiler.Visitor import CythonTransform, EnvTransform
from Cython.Compiler.ModuleNode import ModuleNode
from Cython.Compiler.Nodes import *
from Cython.Compiler.ExprNodes import *
class NameNodeCollector(TreeVisitor):
    """Collect all NameNodes of a (sub-)tree in the ``name_nodes``
    attribute.
    """
    def __init__(self):

src/e/s/essig-HEAD/vm/cython/Cython/Compiler/AnalysedTreeTransforms.py   essig(Download)
from Cython.Compiler.Visitor import VisitorTransform, ScopeTrackingTransform, TreeVisitor
from Nodes import StatListNode, SingleAssignmentNode, CFuncDefNode
from ExprNodes import DictNode, DictItemNode, NameNode, UnicodeNode, NoneNode, \
                      ExprNode, AttributeNode, ModuleRefNode, DocstringRefNode
from PyrexTypes import py_object_type

src/p/y/pylibs-HEAD/Cython/Compiler/AnalysedTreeTransforms.py   pylibs(Download)
from Cython.Compiler.Visitor import VisitorTransform, ScopeTrackingTransform, TreeVisitor
from Nodes import StatListNode, SingleAssignmentNode, CFuncDefNode
from ExprNodes import DictNode, DictItemNode, NameNode, UnicodeNode, NoneNode, \
                      ExprNode, AttributeNode, ModuleRefNode, DocstringRefNode
from PyrexTypes import py_object_type

src/c/y/CythonCTypesBackend-HEAD/Cython/CTypesBackend/CodeWriter.py   CythonCTypesBackend(Download)
"""
 
from Cython.Compiler.Visitor import TreeVisitor
from Cython.Compiler.ExprNodes import *
from Cython.Compiler.Nodes import StatListNode
class DeclarationWriter(TreeVisitor):
 
    indent_string = u"    "
 
    def __init__(self, result = None):

src/c/y/Cython-0.20.1/Cython/CodeWriter.py   Cython(Download)
"""
 
from Cython.Compiler.Visitor import TreeVisitor
from Cython.Compiler.ExprNodes import *
 
class DeclarationWriter(TreeVisitor):
 
    indent_string = u"    "
 
    def __init__(self, result = None):

src/c/y/cython-HEAD/Cython/CodeWriter.py   cython(Download)
"""
 
from Cython.Compiler.Visitor import TreeVisitor
from Cython.Compiler.ExprNodes import *
 
class DeclarationWriter(TreeVisitor):
 
    indent_string = u"    "
 
    def __init__(self, result = None):

  1 | 2  Next