SPARCompiler Pascal 3.0.2 Reference Manual A Sun Microsystems, Inc. Business 2550 Garcia Avenue Mountain View, CA 94043 U.S.A. Part No.: 801-5055-10 Revision A, December 1993 1993 by Sun Microsystems, Inc.—Printed in USA. 2550 Garcia Avenue, Mountain View, California 94043-1100 All rights reserved. No part of this work covered by copyright may be reproduced in any form or by any means—graphic, electronic or mechanical, including photocopying, recording, taping, or storage in an information retrieval system— without prior written permission of the copyright owner. The OPEN LOOK and the Sun Graphical User Interfaces were developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees. RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 (October 1988) and FAR 52.227-19 (June 1987). The product described in this manual may be protected by one or more U.S. patents, foreign patents, and/or pending applications. TRADEMARKS The Sun logo, Sun Microsystems, Sun Workstation, NeWS, and SunLink are registered trademarks of Sun Microsystems, Inc. in the United States and other countries. Sun, Sun-2, Sun-3, Sun-4, Sun386i, SunCD, SunInstall, SunOS, SunPro, SunView, NFS, and OpenWindows are trademarks of Sun Microsystems, Inc. UNIX and OPEN LOOK are registered trademarks of UNIX System Laboratories, Inc. PostScript is a registered trademark of Adobe Systems Incorporated. Adobe also owns copyrights related to the PostScript language and the PostScript interpreter. The trademark PostScript is used herein only to refer to material supplied by Adobe or to programs written in the PostScript language as defined by Adobe. X Window System is a product of the Massachusetts Institute of Technology. SPARC is a registered trademark of SPARC International, Inc. Products bearing the SPARC trademark are based on an architecture developed by Sun Microsystems, Inc. SPARCstation is a trademark of SPARC International, Inc., licensed exclusively to Sun Microsystems, Inc. All other products or services mentioned in this document are identified by the trademarks, service marks, or product names as designated by the companies who market those products. Inquiries concerning such trademarks should be made directly to those companies. Contents Preface. xxi 1. Lexical Elements . 1 Character Set . 1 Special Symbols . 2 Reserved Words . 3 Identifiers. 3 Comments . 5 2. Data Types . 7 Summary of Data Format Differences . 7 Default Data Alignments and Padding . 8 Data Formats with -calign . 9 Data Formats with -xl . 9 Data Formats with -calign and -xl. 10 Real. 10 Real Variables . 10 iii Real Initialization . 11 Real Constants . 12 Data Representation. 13 Integer . 15 Integer Variables. 15 Integer Initialization. 16 Integer Constants . 16 Data Representation. 18 Boolean. 18 Boolean Variables . 18 Boolean Initialization . 19 Boolean Constants . 19 Data Representation. 20 Character . 20 Character Variables . 20 Character Initialization . 21 Character Constants. 21 Data Representation. 21 Enumerated . 22 Enumerated Variables . 22 Data Representation. 22 Subrange . 23 Subrange Variables . 23 Data Representation . 23 iv SPARCompiler Pascal 3.0.2 Reference Manual—December 1993 Record . 24 Record Variables. 25 Record Initialization. 25 Data Representation of Unpacked Records. 28 Data Representation of Packed Records . 28 Array . 31 Array Variables. 32 Array Initialization. 33 Packed Arrays. 35 Data Representation. 35 Set . 35 Set Variables . 36 Set Initialization . 36 Packed Sets . 37 Data Representation. 37 File . 39 Pointer. 39 Standard Pointer. 39 Universal Pointer . 40 Procedure and Function Pointers . 41 Pointer Initialization . 43 Data Representation. 43 3. Statements . 45 Standard Statements. 45 Contents v Statements Specific to Pascal. 45 assert Statement . 46 case Statement. 49 exit Statement. 51 goto Statement. 53 next Statement. 55 otherwise Statement . 57 return Statement . 58 with Statement. 60 4. Assignments and Operators . 63 Data Type Assignments/Compatibility. 63 String Assignments . 64 Fixed- and Variable-Length Strings . 65 Null Strings . 65 String Constants . 66 Operators . 66 Arithmetic Operators. 67 The mod Operator . 67 Bit Operators. 69 Boolean Operators . 69 The and then Operator . 70 The or else Operator . 71 Set Operators. 72 Relational Operators . 73 vi SPARCompiler Pascal 3.0.2 Reference Manual—December 1993 Relational Operators on Sets. ..
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages302 Page
-
File Size-