Skip to main content

PyASDL

A yet another implementation for Zephyr ASDL format.

API

parse(source: str, *, filename: str = "<pyasdl>") -> Module

Parse the given source string, and return the AST in the shape of an pyasdl.Module. The full format is defined in the grammar.asdl file. The filename can be optionally supplied, and will be displayed if there is any syntax error.

fetch_comments(source: str) -> Iterator[str]:

Return an iterator of the ASDL comments in the given source string.

is_simple_sum(node: Sum) -> bool:

Check whether if the given node's all children lack any fields.

Examples

Here is a list of example tools that process the given ASDL with PyASDL:

Metadata

Release files for pyasdl 22.1.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyasdl 22.1.23
File Size Uploaded
pyasdl-22.1.23.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyasdl 22.1.23
File Interpreter ABI Platform
pyasdl-22.1.23-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / pyasdl-22.1.23.tar.gz

Download URL pyasdl-22.1.23.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
59f1c4d93fec80ec7f7eeb306934ec11447fb642b44abab6892da472328f3df3
BLAKE2b-256 checksum
How to use checksums
13e02c298f0c9e7a41332ada7eceb9e5f72654d103ddcbcff0354d729b378982
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / pyasdl-22.1.23-py3-none-any.whl

Download URL pyasdl-22.1.23-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3bb3514208a0ae72013f9fb0ee84f80ff5df8e990b5d602e4cd9412bf635efd
BLAKE2b-256 checksum
How to use checksums
fb8d0aebe45e9df3154cbeeda3ea508730e4c2ff6af5a0b527aca328018dbb02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release history Release notifications | RSS feed

This release

22.1.23 This release

2 release files

21.1.30

1 release file

20.9.12

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page