Skip to main content

ASDL Parser

Project description

PyASDL

A new ASDL parser for Zephyr's ASDL format.

Stub Generator Example

For understanding the parse tree and the visitors, you can check out the stub generator example. Basically it generates a typing stub for the AST module itself (when the Python's ASDL is given) in a straight forward way.

Usage

import pyasdl

pyasdl.parse(<asdl source>)

class TestVisitor(pyasdl.ASDLVisitor):
    def visit_Module(self, node):
        print(f"Module name: {node.name}")
        self.generic_visit(node)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyasdl-0.2.0.tar.gz (5.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page