Joel Christner (jec2160) COMS-W4115 Spring 2009 Minimalistic Basic Compiler (MBC) Project Final Report Rev 1.0 5/14/2009Table&of&Contents&Table of Contents........................................................................ 2 Introduction................................................................................ 4 Language Status and Open Defects .................................................................................. 4 Language Status............................................................................................................ 4 Open Defects................................................................................................................. 4 Language Tutorial........................................................................ 4 Language Goals............................................................................................................. 4 Language Features ........................................................................................................ 5 How to Use MBC........................................................................................................... 5 Mathematics Example.................................................................................................... 5 Iteration (For Loop) Example........................................................................................... 5 Iteration (While Loop) Example ....................................................................................... 6 Decision (If-Then-Else) Example ..................................................................................... 6 Language Reference Manual ......................................................... 6 Language Overview ........................................................................................................... 6 Styles Used........................................................................................................................ 7 Lexical Conventions and Program Structure....................................................................... 7 Program Termination...................................................................................................... 7 Whitespace .................................................................................................................... 7 Program Structure ......................................................................................................... 7 Comments ..................................................................................................................... 7 Tokens........................................................................................................................... 7 Identifiers ....................................................................................................................... 7 Keywords....................................................................................................................... 8 Numerical Literals........................................................................................................... 8 Miscellaneous ................................................................................................................ 8 Operations ......................................................................................................................... 8 Multiplicative Operators.................................................................................................. 8 Additive Operators ......................................................................................................... 8 Relational Operators....................................................................................................... 9 Assignment Operators ................................................................................................... 9 Iteration Statements and Program Control ......................................................................... 9 While Loops ................................................................................................................... 9 For Loops ...................................................................................................................... 9 If-Then Statements......................................................................................................... 9 End Statements ........................................................................................................... 10 Display Operations ....................................................................................................... 10 Exceptions ................................................................................................................... 10 Project Plan.............................................................................. 10 Processes........................................................................................................................ 10 Programming Style .......................................................................................................... 11 Planned Project Timeline.................................................................................................. 11Roles and Responsibilities................................................................................................ 11 Software Development Environment and Tools ................................................................ 11 Project Log ...................................................................................................................... 12 Architectural Design .................................................................. 12 Block Diagram of Major Components............................................................................... 12 Interfaces Between Components ..................................................................................... 13 Component Ownership .................................................................................................... 14 Test Plan.................................................................................. 14 Example Source Programs and Target Languages........................................................... 14 Translator Test Suites ...................................................................................................... 15 Test Case Reasoning
View Full Document