This preview shows page 1-2-3-4-5-6-7-8-55-56-57-58-59-60-61-62-111-112-113-114-115-116-117-118 out of 118 pages.
PatternizerYianni AlexanderMarinos ConstantinidesBoriana DitchevaYavor TchakalovAdam VartanianDecember 21, 2005Contents1 Introduction 41.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41.1.1 Description of the Language . . . . . . . . . . . . . . . . . 41.1.2 Fundamentals: Primitives . . . . . . . . . . . . . . . . . . 41.1.3 Fundamentals: Operators . . . . . . . . . . . . . . . . . . 51.1.4 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . 51.2 Advantages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51.2.1 Why Learn Patternizer? . . . . . . . . . . . . . . . . . . . 52 Tutorial 62.1 Sample Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.1.1 Sample Program 1: Line . . . . . . . . . . . . . . . . . . . 62.1.2 Sample Program 2: Rectangle . . . . . . . . . . . . . . . . 62.2 Getting an Image From Your Pattern File . . . . . . . . . . . . . 72.3 Eve n Cooler Sample Program . . . . . . . . . . . . . . . . . . . . 73 Language Reference Manual 93.1 Lexical Conventions and Tokens . . . . . . . . . . . . . . . . . . . 93.1.1 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.1.2 Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.1.3 Numbers Constants . . . . . . . . . . . . . . . . . . . . . 93.1.4 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.1.5 Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . 93.1.6 Operators and Other Tokens . . . . . . . . . . . . . . . . 103.2 Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.2.1 Reals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.2.2 Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.2.3 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.3 Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.3.1 Primary Expressions . . . . . . . . . . . . . . . . . . . . . 103.3.2 Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . 113.3.3 Relational . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.3.4 Logical . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113.3.5 Operational . . . . . . . . . . . . . . . . . . . . . . . . . . 111CONTENTS CONTENTS3.3.6 Precedence of Operators . . . . . . . . . . . . . . . . . . . 113.4 Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.4.1 Transformation Statements . . . . . . . . . . . . . . . . . 123.4.2 Assignments . . . . . . . . . . . . . . . . . . . . . . . . . 123.4.3 Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.4.4 Conditional . . . . . . . . . . . . . . . . . . . . . . . . . . 123.4.5 Include . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133.5 Pattern Definition . . . . . . . . . . . . . . . . . . . . . . . . . . 133.6 Internal Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 133.6.1 Print Function . . . . . . . . . . . . . . . . . . . . . . . . 133.6.2 Color Settings . . . . . . . . . . . . . . . . . . . . . . . . 134 Project Plan 144.1 Project Timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . 144.1.1 Brainstorming . . . . . . . . . . . . . . . . . . . . . . . . 144.1.2 Prop os al . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144.1.3 Language Reference …
View Full Document