“AIC” All In the Cards Final Report COMS 4115 Programming Languages and Translators AIC is a language that allows the easy creation of card games ranging from the well known to brand new user created. Andrew Willouer asw2126 8/10/2009“AIC” All In the Cards Final Report Andrew Willouer asw2126 Aug. 10 2 Contents 1 Introduction ....................................................................................................................................4 1.1 Goals of AIC – Intuitive & Ease of Use....................................................................................4 2 Language Tutorial ............................................................................................................................4 2.1 Introduction ..............................................................................................................................4 2.2 Example....................................................................................................................................4 3 Language Reference Manual.............................................................................................................6 3.1 Lexical Conventions ...................................................................................................................6 3.1.1 Comments .............................................................................................................................6 3.1.2 Identifiers (Names) .................................................................................................................6 3.1.3 Keywords ...............................................................................................................................6 3.1.4 Integer Constants ...................................................................................................................6 3.1.5 String Constants .....................................................................................................................6 3.1.6 Operators...............................................................................................................................6 3.1.7 Conditional Statements...........................................................................................................7 3.1.8 Iteration Statements ...............................................................................................................7 3.2 Data Types ................................................................................................................................7 3.2.1 Arrays ....................................................................................................................................7 3.3 Scope .......................................................................................................................................8 3.4 Declarations ..............................................................................................................................8 3.4.1 Variables ................................................................................................................................8 3.4.2 Functions ...............................................................................................................................8 3.4.2.1 Predefined Functions........................................................................................................8 4 Project Plan .....................................................................................................................................8 4.1 Team Roles and Responsibilities: ............................................................................................8 4.2 Project Timeline:....................................................................................................................9 4.3 Planning and Specification: .....................................................................................................9 4.4 Development and Testing:......................................................................................................9 4.5 Programming Style Guide: ................................................................................................9 4.6 Software Development Environment: ...................................................................................10 4.7 Project Log: .........................................................................................................................10 5 Architecture Design........................................................................................................................11“AIC” All In the Cards Final Report Andrew Willouer asw2126 Aug. 10 3 5.1 Block Diagram:.....................................................................................................................11 6 Test Plan .......................................................................................................................................12 6.1 Automated Testing: .............................................................................................................12 6.2 Non-Automated Testing: ......................................................................................................12 7 Lessons Learned ............................................................................................................................12 8 References ....................................................................................................................................13 9 Appendix .......................................................................................................................................13 9.1 AOC.ml................................................................................................................................13 9.2 AST.ml.................................................................................................................................13 9.3 Scanner.mll .........................................................................................................................14 9.4 Parser.mly ...........................................................................................................................17 9.5 Printer.ml ............................................................................................................................19 9.6 Interpret.ml
View Full Document