420 likes | 647 Views
Syntax Analysis. Parser = Syntax analyzerInput: sequence of tokens from lexical analysisOutput: a parse tree of the program E.g., ASTProcess:Try to derive from a starting symbol to the input string (How?)Build the parse tree following the derivationScanner and parserScanner looks at the lower level part of the programming languageOnly the language for the tokensParser looks at the higher lever part of the programming languageE.g., if statement, functionsThe tokens are abstracted.
E N D