Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/y/Py2C-HEAD/tests/test_syntax_tree.py   Py2C(Download)
class BasicNode(syntax_tree.AST):
    """Basic node
    """
    _fields = [
        ('f1', int, syntax_tree.NEEDED),
class BasicNodeCopy(syntax_tree.AST):
    """Equivalent but not equal to BasicNode
    """
    _fields = [
        ('f1', int, syntax_tree.NEEDED),
class AllIntModifersNode(syntax_tree.AST):
    """Node with all modifiers
    """
    _fields = [
        ('f1', int, syntax_tree.NEEDED),
class ParentNode(syntax_tree.AST):
    """Node with another node as child
    """
    _fields = [
        ('child', BasicNode, syntax_tree.NEEDED),
class AllIdentifierModifersNode(syntax_tree.AST):
    """Node with all modifiers of identifier type
    """
    _fields = [
        ('f1', syntax_tree.identifier, syntax_tree.NEEDED),