Skip to content

Retrieve list of identifiers #41

Open

Description

@phorward

From @bb-mausbrand

def logics_get_identifiers(l):
    def _dump(a):
        if a.emit == "Identifier":
            yield a.match
        for child in a.children:
            if child:
                yield from _dump(child)
    return list(_dump(l.ast))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions