Columbia COMS W4115 - PCGSL - Playing Card Game Simulation Language (83 pages)

Previewing pages 1, 2, 3, 4, 5, 6, 38, 39, 40, 41, 42, 78, 79, 80, 81, 82, 83 of 83 page document View the full content.
View Full Document

PCGSL - Playing Card Game Simulation Language



Previewing pages 1, 2, 3, 4, 5, 6, 38, 39, 40, 41, 42, 78, 79, 80, 81, 82, 83 of actual document.

View the full content.
View Full Document
View Full Document

PCGSL - Playing Card Game Simulation Language

99 views


Pages:
83
School:
Columbia University
Course:
Coms W4115 - Programming Languages and Translators
Programming Languages and Translators Documents

Unformatted text preview:

PCGSL Playing Card Game Simulation Language Enrique Henestroza eh2348 columbia edu Yuriy Kagan yk2159 columbia edu Andrew Shu ans2120 columbia edu Peter Tsonev pvt2101 columbia edu COMS W4115 Programming Languages and Translators December 19 2008 Contents 1 Introduction 1 1 Simple 3 3 2 Language Tutorial 4 3 Language Manual 3 1 Lexical Conventions 3 1 1 Comments 3 1 2 Identifiers 3 1 3 Keywords 3 1 4 Constants 3 1 5 Operators 3 1 6 Meaning of Identifiers 3 1 7 Scope Namespace and Storage Duration 3 2 Declarations 3 2 1 Variables 3 2 2 Functions 3 2 3 Special Blocks 3 3 Expressions and Operators 3 3 1 Precedence and Association Rules in PCGSL 3 3 2 Expressions 3 3 3 Function Calls 3 3 4 Assignment 3 4 Statements 3 4 1 Expression Statements 1 5 5 5 5 6 6 6 6 7 8 8 9 9 9 9 11 11 11 12 12 3 4 2 3 4 3 3 4 4 Selection Statements Iteration Statements Jump Statements 4 Project Plan 4 1 Planning Specification 4 2 Development Testing 4 3 Programming Style Guide 4 4 Project timeline 4 5 Roles and Responsibilities 4 6 Software Development Environment 4 7 Project Log 5 Architectural Design 12 12 13 14 14 15 15 17 17 18 18 19 2 Chapter 1 Introduction The Playing Card Game Simulation Language PCGSL is designed to be a simple programming language for programming card games Our language allows a programmer to work within a standard set of conventions and procedures for playing card games without having to write a large amount of code as one would have to in a general purpose language This allows the programmer to focus on creating randomized simulations of popular games or hands as well as quick mock ups of new games based around standard 52 card decks 1 1 Simple PCGSL is simple to learn Using well known C style imperative syntax conventions our language 3 Chapter 2 Language Tutorial 4 Chapter 3 Language Manual 3 1 Lexical Conventions This section covers the lexical conventions including comments and tokens A token is a series of contiguous characters that the compiler treats as a



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view PCGSL - Playing Card Game Simulation Language and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view PCGSL - Playing Card Game Simulation Language and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?