ASDL Parser
Project description
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
:
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-22.1.23.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file pyasdl-22.1.23.tar.gz
.
File metadata
- Download URL: pyasdl-22.1.23.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f1c4d93fec80ec7f7eeb306934ec11447fb642b44abab6892da472328f3df3 |
|
MD5 | ddac86389fdad4288dc1eed0b942f0ee |
|
BLAKE2b-256 | 13e02c298f0c9e7a41332ada7eceb9e5f72654d103ddcbcff0354d729b378982 |
File details
Details for the file pyasdl-22.1.23-py3-none-any.whl
.
File metadata
- Download URL: pyasdl-22.1.23-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3bb3514208a0ae72013f9fb0ee84f80ff5df8e990b5d602e4cd9412bf635efd |
|
MD5 | e950169e5d1941f91c8af6d0428ad461 |
|
BLAKE2b-256 | fb8d0aebe45e9df3154cbeeda3ea508730e4c2ff6af5a0b527aca328018dbb02 |