Swarm Final Report A Cellular Programming Language Team Epidemic Rajesh Ramakrishnan [email protected] Jason Gluckman [email protected] Thomas Chau [email protected] Greg Bramble [email protected] Programming Languages and Translators, Fall 2007: Prof. Stephen Edwards.- 2 - Table of Contents White Paper..................................................................................4 Abstract.........................................................................................................................4 Motivation......................................................................................................................4 Goals.............................................................................................................................4 Language Tutorial .......................................................................5 What is a swarm?..........................................................................................................5 What is Swarm?............................................................................................................5 A Full Example..............................................................................................................6 Reference Manual........................................................................8 Introduction ...................................................................................................................8 Model of Computation ...............................................................................................8 The Cell .....................................................................................................................9 The Facet ..................................................................................................................9 Binding.....................................................................................................................10 Lexical Conventions....................................................................................................10 Comments ...............................................................................................................10 Identifiers.................................................................................................................10 Special Semantics...................................................................................................10 Primitive data cells:..................................................................................................11 Main Cell:.................................................................................................................11 Meaning of Identifiers..................................................................................................11 Predefined Cells..........................................................................................................12 Math cells: ...............................................................................................................12 Comparison Cells: ...................................................................................................12 Input / Output Cells:.................................................................................................13 Derived Cells...............................................................................................................14 Conversions ................................................................................................................14 Declarations ................................................................................................................14 Statements..................................................................................................................14 Binding Operators .......................................................................................................15 => [Direct Bind]........................................................................................................15 -> [Cross Bind].......................................................................................................15 Chaining ..................................................................................................................15 Execution Flow............................................................................................................16 Scope and Linkage .....................................................................................................16 Project Plan................................................................................17 Programming Style Guide...........................................................................................17 Project Timeline ..........................................................................................................17 Software Development Environment...........................................................................18- 3 - Roles and Responsibilities..........................................................................................18 Project Log..................................................................................................................18 Architecture Design..................................................................19 Testing Plan ...............................................................................21 Simple Test Cases......................................................................................................21 Conway’s Game of Life, fully implemented.................................................................23 Lessons Learned.......................................................................25 Gregory Bramble.........................................................................................................25 Thomas Chau..............................................................................................................25 Jason Gluckman .........................................................................................................25 Rajesh Ramakrishnan.................................................................................................25 Appendix: Grammar..................................................................26 Appendix B: Source Code........................................................28 Repository
View Full Document