Please enable JavaScript.
Coggle requires JavaScript to display documents.
Stages of Compilation - Coggle Diagram
Stages of Compilation
Stage 2: Syntax Analysis
-
Analyses syntactical structure of the input, determining if the syntax is correct for language it is written in
-
-
Line of code passes through a syntax check. If it fails, the syntax analyser reports the error and line to the user.
Abstract syntax tree is created from input token stream, as it is created it follows syntax to check everything is correct.
When identifier is added to the tree, symbol table is checked to see if it exists. Information form the tree can be used to update data type of identifiers.
-
-
-
-