Changes

Jump to navigation Jump to search
35 bytes added ,  22:39, March 29, 2012
Line 35: Line 35:  
:'''Lexical analysis''': convert the source code into a sequence of tokens, such as variable names, keywords, numbers, and special symbols such as '+'.
 
:'''Lexical analysis''': convert the source code into a sequence of tokens, such as variable names, keywords, numbers, and special symbols such as '+'.
   −
:'''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; check that the structure is valid.
    
:'''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.
 
:'''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.
SkipCaptcha
265

edits

Navigation menu