Traversal of the syntactical tree

Traversal of the syntactical tree. Traversal of all the tops and leaves of the syntactical tree to collect various information or to compile, analyze or modify the code. Traversal of the tree is performed according to the rules of the language used for writing the source program. The traversal begins from the top and goes on downwards and rightwards along its perimeter.