Contents    Page-10    Prev    Next    Page+10    Index   

Computer Programs as Trees

When a compiler parses a program, it often creates a tree. When we indent the source code, we are emphasizing the tree structure.

if ( x > y )
   j = 3;
   j = 1;

This is called an abstract syntax tree or AST.