Skip to content

Commit

Permalink
[docs] PR15254: Add "AST" to the lexicon.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175077 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chisophugis committed Feb 13, 2013
1 parent c0a6e07 commit ccb51f9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/Lexicon.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ A
**ADCE**
Aggressive Dead Code Elimination

**AST**
Abstract Syntax Tree.

Due to Clang's influence (mostly the fact that parsing and semantic
analysis are so intertwined for C and especially C++), the typical
working definition of AST in the LLVM community is roughly "the
compiler's first complete symbolic (as opposed to textual)
representation of an input program".
As such, an "AST" might be a more general graph instead of a "tree"
(consider the symbolic representation for the type of a typical "linked
list node"). This working definition is closer to what some authors
call an "annotated abstract syntax tree".

Consult your favorite compiler book or search engine for more details.

B
-

Expand Down

0 comments on commit ccb51f9

Please sign in to comment.