Pa aml Pac-Man Game Programming Language Chun-Kang Chen(cc3260) Hui-Hsiang Kuo (hk2604) Shuwei Cao (sc3331) Wenxin Zhu (wz2203) Final Report 12.22.2011Thanks to our teammates!Thanks to our teammates!Thanks to our teammates!I Contents 1. An Introduction to PaCaml ............................................................................................. 1 1.1 Background .......................................................................................................... 1 1.2 Description ........................................................................................................... 1 1.3 Features ................................................................................................................ 2 1.4 A Quick Look at PaCaml Code ............................................................................ 2 2. Language Tutorial ........................................................................................................... 4 2.1 Sample Program ................................................................................................... 4 2.2 How to Compile and Run the Sample Program ................................................... 5 2.3 How to Write a PaCaml Source File .................................................................... 6 2.4 Other Functionalities .......................................................................................... 10 2.4.1 Functions ..................................................................................................... 10 2.4.2 Arithmetic Functionality ............................................................................. 10 2.4.3 Assignment ................................................................................................. 11 2.4.4 Recursive..................................................................................................... 11 2.4.5 Loop ............................................................................................................ 12 2.4.6 Logic ........................................................................................................... 12 2.4.7 Condition..................................................................................................... 13 3. Language Reference Manual ........................................................................................ 15 3.1 Lexical conventions............................................................................................ 15 3.1.1 Comments ................................................................................................... 15 3.1.2 Naming ........................................................................................................ 15 3.1.3 Keywords .................................................................................................... 16 3.2 Data Types.......................................................................................................... 16 3.2.1 Primitive Data Types .................................................................................. 16 3.2.2 Derived Data Types .................................................................................... 17 3.2.3 Game-specific Types .................................................................................. 17 3.3 Expressions......................................................................................................... 19 3.3.1 Unary operators ........................................................................................... 19 3.3.2 Additive operators ....................................................................................... 19II 3.3.3 Multiplicative operators .............................................................................. 20 3.3.4 Relational operators .................................................................................... 20 3.3.5 Equality operators ....................................................................................... 21 3.3.6 expression && expression: ......................................................................... 21 3.3.7 expression || expression: .............................................................................. 21 3.4 Declarations ........................................................................................................ 21 3.5 Statements and Blocks ....................................................................................... 21 3.5.1 Expression statement .................................................................................. 21 3.5.2 Conditional statement ................................................................................. 22 3.5.3 While statement .......................................................................................... 22 3.5.4 Blocks ......................................................................................................... 22 3.5.5 Return statement ......................................................................................... 23 3.6 Function Definitions ........................................................................................... 23 3.6.1 Basic Functions ........................................................................................... 23 3.6.2 Built-in Functions ....................................................................................... 23 4. Project Plan ................................................................................................................... 26 4.1 Project Management Process .................................................................................. 26 4.2 Programming Style Guide....................................................................................... 26 4.3 Project Time Management ...................................................................................... 27 4.3.1 Events List .................................................................................................. 27 4.3.1 Events and Time Estimation ....................................................................... 28 4.3.2 Gantt Chart .................................................................................................. 28 4.4 Roles and Responsibilities ................................................................................. 29 4.5 Software Development Environment ................................................................. 29 4.5.1
View Full Document