Uncommon

Abstract syntax tree

Tree representation of the abstract syntactic structure of source code

Abstract syntax tree

Uncommon card · No. 79092

An abstract syntax tree (AST) is a data structure used in computer science to represent the structure of a program or code snippet. It is a tree representation of the abstract syntactic structure of text (often source code) written in a formal language. Each node of the tree denotes a construct occurring in the text. It is sometimes called just a syntax tree. The syntax is "abstract" in the sense that it does not represent every detail appearing in the real syntax, but rather just the structural or content-related details. For instance, grouping parentheses are implicit in the tree structure, so these do not have to be represented as separate nodes. Likewise, a syntactic construct like an if-condition-then statement may be denoted by means of a single node with three branches. This distinguishes abstract syntax trees from concrete syntax trees, traditionally designated parse trees. Parse trees are typically built by a parser during the source code translation and compiling process. Once...

Read on Wikipedia · Image Dcoetzee, CC0

Open boosters, collect cards and trade them. Free to play.

Play for free
Abstract syntax tree – Uncommon Wikipedia card | Wikiverse TCG