Skip to main content

ds-lang-ast

Desert Sage (DS) programs as syntax trees, shaped like Python's ast.

Contents

The package ds_ast: a node class for every construct of the DS syntax tree, parse from source to a tree, unparse from a tree back to source, compile from a tree to a .dsc artefact, and Python's ast helpers under their own names (walk, dump, NodeVisitor, NodeTransformer and the rest).

Install

pip install ds-lang-ast

It runs on Python 3.11 or later, and needs no other package. It contains no parser of its own: parse and compile run the DS compiler, dsc, which it does not bundle. It runs the first of $DS_AST_DSC, $DS_MERCURY_DSC and dsc on PATH. The dsc of the same DS release writes the trees it reads.

Reference

The API is ds_ast in The DS Bindings Reference.

Project

Licence

BSD-4-Clause OR AGPL-3.0-or-later: either licence, at the user's choice. LICENSE holds both texts.

Metadata

Release files for ds-lang-ast 1.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for ds-lang-ast 1.1.0
File Interpreter ABI Platform Actions
ds_lang_ast-1.1.0-py3-none-any.whl Python 3 none any Details for ds_lang_ast-1.1.0-py3-none-any.whl

Release files / ds_lang_ast-1.1.0-py3-none-any.whl

Download URL ds_lang_ast-1.1.0-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7d9781b9f0c5c6e11aa785643482e2baa15adb67c0510915735dde552418a84
BLAKE2b-256 checksum
How to use checksums
7954002cd8f5676d971a7fa284de3dc403d7fa1b78b2925931b6c01783b4eb00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.14

Security for ds-lang-ast 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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