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
Release history Release notifications | RSS feed
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)