0

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?

Raymond Hettinger
  • 216,523
  • 63
  • 388
  • 485
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468

1 Answers1

4

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

Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
azbarcea
  • 3,323
  • 1
  • 20
  • 25