Download The MCPL Programming Manual and User Guide
Transcript
i CONTENTS Contents 1 Introduction 1 2 Language Overview 2.1 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 3 Expressions 3.1 Names and Constants . . . . . . 3.2 Vectors and Tables . . . . . . . 3.3 Function Calls . . . . . . . . . . 3.4 Method Calls . . . . . . . . . . 3.5 Postfixed Expression Operators 3.6 Prefixed Expression Operators . 3.7 Infixed Expression Operators . . 3.8 VALOF Expressions . . . . . . . 3.9 MATCH and EVERY Expressions . 3.10 Expression Precedence . . . . . 3.11 Manifest Constant Expressions . 3.12 Static Constant Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Commands 4.1 Assignments . . . . . . . . . . . . . . . 4.2 Conditional Commands . . . . . . . . . 4.3 Repetitive Commands . . . . . . . . . 4.4 Flow of Control . . . . . . . . . . . . . 4.5 Exception Handling . . . . . . . . . . . 4.6 Sequences and Compound Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 4 5 6 6 7 7 8 8 9 10 10 . . . . . . 10 11 12 12 13 14 15 5 Patterns 16 6 Declarations 6.1 External Declarations 6.2 Manifest Declarations 6.3 Global Declarations . 6.4 Static Declarations . 6.5 Function Definitions 17 17 18 18 19 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Scope and Extent Rules 20 8 Modules and the Interface with C 21