DOC PREVIEW
Columbia COMS W4115 - PCGSL - Playing Card Game Simulation Language

This preview shows page 1-2-3-4-5-6-38-39-40-41-42-78-79-80-81-82-83 out of 83 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 83 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

reportsvn_loginterpretparserpcgslprinterscannerastArithmeticOps-IntBooleanOps-CardEntsBooleanOps-CardsBooleanOps-IntBooleanOps-StringControlFlow-ifControlFlow-Start-Play-WinningControlFlow-WhileFunctionsGetTypeGlobalAssignmentAccesshighcard.cgsIO-input-outputListAppendListAssignmentAccessListLengthMakefilepoker.cgsprintdeckRandstdlib.cgltest-basic1transfertransfer-randVarAssignmentAccessPCGSL: Playing Card Game Simulation LanguageEnrique [email protected] [email protected] [email protected] [email protected] W4115Programming Languages and TranslatorsDecember 19, 2008Contents1 Introduction 31.1 Simple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Language Tutorial 43 Language Manual 53.1 Lexical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.1.1 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.1.2 Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.1.3 Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.1.4 Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.1.5 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63.1.6 Meaning of Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . 63.1.7 Scope, Namespace, and Storage Duration . . . . . . . . . . . . . . . . 73.2 Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.2.1 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.2.2 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.2.3 Special Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.3 Expressions and Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.3.1 Precedence and Association Rules in PCGSL . . . . . . . . . . . . . . 93.3.2 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.3.3 Function Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.3.4 Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.4 Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.4.1 Expression Statements . . . . . . . . . . . . . . . . . . . . . . . . . . 1213.4.2 Selection Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.4.3 Iteration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.4.4 Jump Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 Project Plan 144.1 Planning & Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144.2 Development & Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154.3 Programming Style Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154.4 Project timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174.5 Roles and Responsibilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174.6 Software Development Environment . . . . . . . . . . . . . . . . . . . . . . . 184.7 Project Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185 Architectural Design 192Chapter 1IntroductionThe Playing Card Game Simulation Language (PCGSL) is designed to be a simple program-ming language for programming card games. Our language allows a programmer to workwithin a standard set of conventions and procedures for playing card games, without havingto write a large amount of code as one would have to in a general-purpose language. Thisallows the programmer to focus on creating randomized simulations of popular games orhands, as well as quick mock-ups of new games based around standard 52-card decks.1.1 SimplePCGSL is simple to learn. Using well known C-style imperative syntax conventions, ourlanguage...3Chapter 2Language Tutorial4Chapter 3Language Manual3.1 Lexical ConventionsThis section covers the lexical conventions including comments and tokens. A token is aseries of contiguous characters that the compiler treats as a unit. Blanks, tabs, newlines,and comments are collectively known as white space. White space is ignored except as itserves to separate tokens. Some white space is required to separate otherwise adjacentidentifiers, keywords, and constants. If the input stream has been parsed into tokens up toa given character, the next token is taken to include the …


View Full Document

Columbia COMS W4115 - PCGSL - Playing Card Game Simulation Language

Documents in this Course
YOLT

YOLT

13 pages

Lattakia

Lattakia

15 pages

EasyQL

EasyQL

14 pages

Photogram

Photogram

163 pages

Espresso

Espresso

27 pages

NumLang

NumLang

6 pages

EMPATH

EMPATH

14 pages

La Mesa

La Mesa

9 pages

JTemplate

JTemplate

238 pages

MATVEC

MATVEC

4 pages

TONEDEF

TONEDEF

14 pages

SASSi

SASSi

16 pages

JTemplate

JTemplate

39 pages

BATS

BATS

10 pages

Synapse

Synapse

11 pages

c.def

c.def

116 pages

TweaXML

TweaXML

108 pages

Load more
Download PCGSL - Playing Card Game Simulation Language
Our administrator received your request to download this document. We will send you the file to your email shortly.
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 2 2 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?