ASDL

1 program Added 2026-03-13T04:57:17Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Abstract Syntax Description Language, Zephyr ASDL
Provenance: commit f6d0847deb · authored 2026-03-13T05:57:45+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

3 sources · pl_id: pl/zephyr-asdl
LLM (this repo) · 1PldbEsolang

Related languages

Zephyr ASDL (0.91)AHDL (0.32)WDL (0.32)SDL (0.31)JHDL (0.30)

LLM-contributed programs

Python AST Grammar

Provenance: commit f6d0847deb · authored 2026-03-13T05:57:45+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.asdl · license: PSF-2.0 · added: 2026-03-13T04:57:17Z
-- ASDL's 4 built-in types are:
-- identifier, int, string, constant

module Python
{
    mod = Module(stmt* body, type_ignore* type_ignores)
        | Interactive(stmt* body)
        | Expression(expr body)
        | FunctionType(expr* argtypes, expr returns)

    stmt = FunctionDef(identifier name, arguments args,
                        stmt* body, expr* decorator_list, expr? returns,
                        string? type_comment)
         | AsyncFunctionDef(identifier name, arguments args,
                              stmt* body, expr* decorator_list, expr? returns,
                              string? type_comment)
         | ClassDef(identifier name,
                     expr* bases,
                     keyword* keywords,
                     stmt* body,
                     expr* decorator_list)
         | Return(expr? value)
         | Delete(expr* targets)
         | Assign(expr* targets, expr value, string? type_comment)
         | AugAssign(expr target, operator op, expr value)
         | AnnAssign(expr target, expr annotation, expr? value, int simple)

    expr = BoolOp(boolop op, expr* values)
         | NamedExpr(expr target, expr value)
         | BinOp(expr left, operator op, expr right)
         | UnaryOp(unaryop op, expr operand)
         | Lambda(arguments args, expr body)
         | IfExp(expr test, expr body, expr orelse)
         | Dict(expr* keys, expr* values)
         | Set(expr* elts)
         | ListComp(expr elt, comprehension* generators)
         | Constant(constant value, string? kind)
         | Name(identifier id, expr_context ctx)
         | List(expr* elts, expr_context ctx)
         | Tuple(expr* elts, expr_context ctx)

    boolop = And | Or

    operator = Add | Sub | Mult | MatMult | Div | Mod | Pow | LShift
             | RShift | BitOr | BitXor | BitAnd | FloorDiv

    unaryop = Invert | Not | UAdd | USub

    cmpop = Eq | NotEq | Lt | LtE | Gt | GtE | Is | IsNot | In | NotIn

    expr_context = Load | Store | Del

    comprehension = (expr target, expr iter, expr* ifs, int is_async)

    arguments = (arg* posonlyargs, arg* args, arg? vararg, arg* kwonlyargs,
                 expr* kw_defaults, arg? kwarg, expr* defaults)

    arg = (identifier arg, expr? annotation, string? type_comment)
          attributes (int lineno, int col_offset, int? end_lineno,
                      int? end_col_offset)

    type_ignore = TypeIgnore(int lineno, string tag)
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about ASDL (mapped to pl/zephyr-asdl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/ASDL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Asdfjkl; Ases →