Abstract syntax tree
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.
Abstract syntax tree - Wikipedia Jump to content From Wikipedia, the free encyclopedia Tree representation of the abstract syntactic structure of source code For the trees used in linguistics, see parse tree . This article includes a list of references , related reading , or external links , but its sources remain unclear because it lacks inline citations . Please help improve this article by introducing more precise citations. ( February 2013 ) ( Learn how and when to remove this message ) An abstract syntax tree for the following code for the Euclidean algorithm : b:\n a := a - b\n else:\n b
related reading
- Tree (abstract data type) - Wikipediaen.wikipedia.org
- Context-free grammar - Wikipediaen.wikipedia.org
- Abstraction (computer science) - Wikipediaen.wikipedia.org
- Chomsky hierarchy - Wikipediaen.wikipedia.org
- L-system - Wikipediaen.wikipedia.org
- Reading 19: Parsersweb.mit.edu
- Parsing Expressions · Crafting Interpreterscraftinginterpreters.com
- 2. Kaleidoscope: Implementing a Parser and AST — LLVM 23.0.0git documentationllvm.org
- Structure and Interpretation of Computer Programsmitp-content-server.mit.edu
- Algorithm - Wikipediaen.wikipedia.org
- Representing Code · Crafting Interpreterscraftinginterpreters.com
- What is a suffix tree?educative.io