ASDL 代表什么?
What does ASDL stand for?
我在ast
docs
看到
-- ASDL's 7 builtin types are:
-- identifier, int, string, bytes, object, singleton, constant
在这种情况下,ASDL 代表什么?仅仅是cpython语法吗?
抽象语法描述语言 (ASDL) 是一种旨在描述编译器中树状数据结构的语言
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
你可以看到一个good write up of it here
我在ast
docs
-- ASDL's 7 builtin types are:
-- identifier, int, string, bytes, object, singleton, constant
在这种情况下,ASDL 代表什么?仅仅是cpython语法吗?
抽象语法描述语言 (ASDL) 是一种旨在描述编译器中树状数据结构的语言
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
你可以看到一个good write up of it here