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)
| File | Size | Uploaded | |
|---|---|---|---|
| pyasdl-22.1.23.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|