Search code examples
pythonterminologyacronymasdl

What does ASDL stand for?


I see in the ast docs

-- ASDL's 7 builtin types are:
-- identifier, int, string, bytes, object, singleton, constant

In that context what does ASDL stand for? Is it just the cpython grammar?


Solution

  • Abstract Syntax Description Lanuguage (ASDL) is a language designed to describe the tree-like data structures in compilers

    The abstract syntax tree (AST) is a high-level representation of the program structure without the necessity of containing the source code; it can be thought of as an abstract representation of the source code. The specification of the AST nodes is specified using the Zephyr Abstract Syntax Definition Language (ASDL) Wang97. PEP 339 -- Design of the CPython Compiler

    You can see a good write up of it here