Changes

Jump to navigation Jump to search
74 bytes added ,  22:05, March 20, 2012
Line 15: Line 15:  
:'''Syntax analysis''' or '''parsing''': arrange the tokens into a parse tree or syntax tree which represents the structure of the program.
 
:'''Syntax analysis''' or '''parsing''': arrange the tokens into a parse tree or syntax tree which represents the structure of the program.
   −
:'''Semantic analysis''': annotate the parse tree with semantic actions, and perform various consistency checks.
+
:'''Semantic analysis''': annotate the parse tree with semantic actions, and perform various consistency checks; a symbol table is used to keep track of names declared by the programmer.
    
:'''Intermediate code generation''': use the annotated parse tree to generate code in some simple machine-independent intermediate language.
 
:'''Intermediate code generation''': use the annotated parse tree to generate code in some simple machine-independent intermediate language.
SkipCaptcha
265

edits

Navigation menu