Flex/Bison Tutorial
CAPSL Flex/Bison Tutorial Aaron Myles Landwehr 1 2/17/2012 CAPSL GENERAL COMPILER OVERVIEW 2 2/17/2012 CAPSL Compiler Overview Lexer / Scanner Parser Semantic Analyzer Optimizers Code Generator Frontend Middle-end Backend 3 2/17/2012 CAPSL Lexer/Scanner Lexical Analysis process of converting a sequence of characters into a sequence of tokens. 4 foo = 1 - 3**2 Lexeme Token Type foo Variable = Assignment Operator 1 Number - Subtraction Operator 3 Number ** Power Operator 2 Number 2/17/2012 CAPSL Parser Syntactic Analysis The process of analyzing a sequence of tokens to determine its grammatical structure. syntax errors are identified during this stage.
–Syntax errors are identified during this stage. 5 foo= 3 2 - 1 ** Lexeme Token Type foo Variable Assignment Operator 1 Number - Subtraction Operator 3 Number ** Power Operator 2 Number = 2/17/2012 . CAPSL Semantic Analyzer •Semantic Analysis –The process of performing semantic checks. •E.g. type checking, object binding, etc. ...
Download Flex/Bison Tutorial
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document: