MatrEL: Matrix Entertainment Language Rochelle Palting rcp2122 Columbia University COMS 4115 Fall 2008Table of Contents 1 Introduction................................................................................................................. 4 1.1 Background......................................................................................................... 4 1.2 Goals of MatrEL ................................................................................................. 4 2 Language Tutorial....................................................................................................... 5 2.1 Example .............................................................................................................. 5 3 Language Manual ....................................................................................................... 7 3.1 Introduction......................................................................................................... 7 3.2 Lexical conventions ............................................................................................ 7 3.2.1 Comments ................................................................................................... 7 3.2.2 Identifiers (Names) ..................................................................................... 7 3.2.3 Keywords .................................................................................................... 7 3.2.4 Constants..................................................................................................... 7 3.3 What’s in a Name?.............................................................................................. 8 3.4 Conversion .......................................................................................................... 8 3.4.1 Integers and Strings..................................................................................... 8 3.5 Expressions ......................................................................................................... 8 3.5.1 Primary expressions.................................................................................... 8 3.5.2 Unary operators........................................................................................... 9 3.5.3 Multiplicative operators.............................................................................. 9 3.5.4 Additive operators....................................................................................... 9 3.5.5 Relational operators .................................................................................... 9 3.5.6 Equality operators ..................................................................................... 10 3.5.7 expression and expression......................................................................... 10 3.5.8 expression or expression........................................................................... 10 3.6 Declarations ...................................................................................................... 10 3.6.1 Type-specifiers.......................................................................................... 10 3.6.2 int declarators............................................................................................ 10 3.6.3 boolean declarators ................................................................................... 10 3.6.4 string declarators....................................................................................... 10 3.6.5 matrix declarators...................................................................................... 10 3.6.6 cell declarators .......................................................................................... 11 3.7 Statements......................................................................................................... 11 3.7.1 Expression statement ................................................................................ 11 3.7.2 Compound statement ................................................................................ 11 3.7.3 Conditional statement ............................................................................... 11 3.7.4 While statement ........................................................................................ 11 3.7.5 Return statement ....................................................................................... 12 3.8 Scope rules........................................................................................................ 12 3.8.1 Lexical scope ............................................................................................ 12 3.9 Types revisited .................................................................................................. 12 3.9.1 Functions................................................................................................... 12 3.9.2 Matrices..................................................................................................... 12 3.9.3 Cells .......................................................................................................... 13 3.10 Formatted Output.............................................................................................. 134 Project Plan ............................................................................................................... 14 4.1 Process .............................................................................................................. 14 4.2 Programming Style ........................................................................................... 14 4.3 Project Timeline................................................................................................ 14 4.4 Team Responsibilities....................................................................................... 14 4.5 Software Development Environment................................................................ 14 4.6 Project Log........................................................................................................ 15 5 Architectural Design ................................................................................................. 16 5.1 Architecture....................................................................................................... 16 6 Test Plan
View Full Document