This preview shows page 1-2-3-4-5-6-7-8-9-10-11-12-86-87-88-89-90-91-92-93-94-95-96-97-98-173-174-175-176-177-178-179-180-181-182-183-184 out of 184 pages.
SSAASSSSii A Language For Statistics Programming Languages & Translators Fall 2003 Carl Morgan – Group Leader Paul Salama Xiaotang Zhang - - 1 - -Table of Contents 1. INTRODUCTION.................................................................................................- 5 - 1.1. Purpose...........................................................................................................- 5 - 1.2. Overview .........................................................................................................- 5 - 1.3. Functionality..................................................................................................- 6 - 2. TUTORIAL ...........................................................................................................- 8 - 2.1. Getting Started................................................................................................- 8 - 2.2. Alternative: Command-line SASSi................................................................- 8 - 2.3. Variable Declarations ....................................................................................- 8 - 2.4. Vector Procedure............................................................................................- 9 - 2.5. Print Functions..............................................................................................- 9 - 2.6. Vector Arithmetic...........................................................................................- 9 - 2.7. Statistics Procedure........................................................................................- 9 - 2.8. if/else Statements............................................................................................- 9 - 2.9. Plotting Procedure .......................................................................................- 10 - 2.10. Finishing Up ............................................................................................- 11 - 3. LANGUAGE REFERENCE MANUAL...........................................................- 12 - 3.1. Lexical Conventions.....................................................................................- 12 - 3.1.1. Comments.............................................................................................- 12 - 3.1.2. Identifiers .............................................................................................- 12 - 3.1.3. Keywords...............................................................................................- 12 - 3.1.4. Numbers ...............................................................................................- 12 - 3.1.5. String Literals.......................................................................................- 12 - 3.1.6. Other Tokens........................................................................................- 13 - 3.2. Types.............................................................................................................- 13 - 3.3. Expression....................................................................................................- 13 - 3.3.1. Primary Expression..............................................................................- 13 - 3.3.2. Identifier...............................................................................................- 13 - 3.3.3. Constant................................................................................................- 14 - 3.3.4. Procedure Calls....................................................................................- 14 - 3.3.5. Access to Vector Types.........................................................................- 14 - 3.3.6. (expression) ..........................................................................................- 14 - 3.3.7. Arithmetic Expressions........................................................................- 14 - 3.3.8. Relational Expressions ........................................................................- 15 - 3.4. Vector Indexes..............................................................................................- 15 - 3.5. Variable and Constant Declaration.............................................................- 15 - 3.6. Statements.....................................................................................................- 16 - 3.6.1. Statements in “{” and “}”s...................................................................- 16 - 3.6.2. Assignments..........................................................................................- 16 - 3.6.3. Conditional Statements........................................................................- 17 - 3.6.4. Procedure Calls....................................................................................- 17 - 3.6.5. Return Statements................................................................................- 18 - 3.6.6. Including Other Files ..........................................................................- 18 - 3.7. Procedure Definitions..................................................................................- 18 - - - 2 - -3.8. Internal Functions.......................................................................................- 19 - 3.8.1. Print......................................................................................................- 19 - 3.8.2. What......................................................................................................- 19 - 3.8.3. Plot........................................................................................................- 20 - 3.8.4. Built-in Statistics Constants ................................................................- 21 - 3.8.5. Built-in Statistics Procedures ..............................................................- 21 - 4. PROJECT PLAN................................................................................................- 26 - 4.1. Team Responsibilities ..................................................................................- 26 - 4.2. Programming Style (Coding Conventions).................................................- 26 - 4.2.1. ANTLR Coding Style ...........................................................................- 26 - 4.2.2. Java Coding Style.................................................................................- 27 - 4.2.3. SASSi Coding
View Full Document