ANSI INCITS 238-1994 Information Technology - Programming Language - PL B.pdf
《ANSI INCITS 238-1994 Information Technology - Programming Language - PL B.pdf》由会员分享,可在线阅读,更多相关《ANSI INCITS 238-1994 Information Technology - Programming Language - PL B.pdf(221页珍藏版)》请在麦多课文档分享上搜索。
1、ANSI INCITS 238-1994 (R1999)(formerly ANSI X3.238-1994 (R1999)for Information Technology Programming Language PL/BANSI X3.238-l 994 American National Standard for Information Technology - Programming Language - PL/B Secretariat Information Technology Industry Council Approved December 8, 1994 Americ
2、an National Standards Institute Abstract This standard defines the programming language PL/B. PL/B is a full-featured programming lan- guage oriented towards development of portable business application software in on-line stand- alone and networked environments. Accompanying this standard is a rati
3、onale document that explains various issues raised during the deliberations of the X3J15 committee in developing the standard. AmericanNationalStandardApproval of an American National Standard requires review by ANSI that therequirements for due process, consensus, and other criteria for approval ha
4、vebeen met by the standards developer.Consensus is established when, in the judgment of the ANSI Board of StandardsReview, substantial agreement has been reached by directly and materiallyaffected interests. Substantial agreement means much more than a simplemajority, but not necessarily unanimity.
5、Consensus requires that all views andobjections be considered, and that a concerted effort be made toward theirresolution.The use of American National Standards is completely voluntary; their existencedoes not in any respect preclude anyone, whether he has approved the standardsor not, from manufact
6、uring, marketing, purchasing, or using products, processes,or procedures not conforming to the standards.The American National Standards Institute does not develop standards and will inno circumstances give an interpretation of any American National Standard.Moreover, no person shall have the right
7、or authority to issue an interpretation ofan American National Standard in the name of the American National StandardsInstitute. Requests for interpretations should be addressed to the secretariat orsponsor whose name appears on the title page of this standard.CAUTION NOTICE: This American National
8、Standard may be revised orwithdrawn at any time. The procedures of the American National StandardsInstitute require that action be taken periodically to reaffirm, revise, or withdrawthis standard. Purchasers of American National Standards may receive currentinformation on all standards by calling or
9、 writing the American National StandardsInstitute.CAUTION: The developers of this standard have requested that holders of patents that may be required for theimplementation of the standard disclose such patents to the publisher. However, neither the developers nor the publisherhave undertaken a pate
10、nt search in order to identify which, if any, patents may apply to this standard. As of the date ofpublication of this standard and following calls for the identification of patents that may be required for the implementationof the standard, no such claims have been made. No further patent search is
11、 conducted by the developer or publisher inrespect to any standard it processes. No representation is made or implied that licenses are not required to avoidinfringement in the use of this standard.Published byAmerican National Standards Institute11 West 42nd Street, New York, New York 10036Copyrigh
12、t 1995 by Information Technology Industry Council (ITI)All rights reserved.No part of this publication may be reproduced in anyform, in an electronic retrieval system or otherwise,without prior written permission of ITI, 1250 Eye Street NW,Washington, DC 20005.Printed in the United States of America
13、Contents Page Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VIII 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 2 3 4 4.1 4.2 4.3 4.3.1 4.3.2 4.4 4.4.1 4.4.2 4.4.3
14、4.4.4 4.4.5 4.5 4.5.1 4.5.2 4.5.3 4.6 4.6.1 4.6.2 4.6.3 4.6.4 Introduction . .l Organization of document .l Scope .l Notation .l Conventions .2 Program translation . .2 Dextral orientation . .2 Interactive I/O .2 Normative references . .3 Definition of terms . .5 Primitive elements 7 Character sets
15、. .7 Basic elements .7 Labels . .9 Data labels .9 Execution labels .9 Constants .lO Decimal constants . .lO Octal constants .lO Hexadecimal constants .lO Integer constants . .lO Numeric constants . .l 1 Literals and values . .l 1 Character literals . .l 1 Single-character literals . .12 Numeric lite
16、rals . .I 12 Variables . .12 Character variables .12 Numeric variables .13 Array variables .14 List variables . .15 I 4.6.5 4.7 4.8 4.9 4.10 4.10.1 4.10.2 4.10.3 4.10.4 4.10.5 4.10.6 5 5.1 5.2 5.3 5.4 5.5 5.6 6 6.1 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.3 6.3.1 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6 6.3.7 Page FILE,
17、IFILE, AFILE and PFILE variables . .I5 Expressions 15 Flags 17 Events . .I8 Miscellaneous . ia File name specification . ia Tab specifications . ia Array specifications . .I9 Array reference . 19 Combinations of variables and literals .I9 Various lists 20 General concepts . .21 Execution errors . 21
18、 Return stack . 21 Common data . 21 Numeric move operation . 22 Character move operation . 23 Integer value 23 Language . 25 Statements .25 Compiler directive statements .25 EQUATE statement .26 INCLUDE statement . .26 Conditional compilation directive statements . .26 LISTON and LISTOFF .30 Data st
19、atements .30 DIM statement 30 INIT statement 31 FORM statement .31 LIST statement .32 LISTEND statement . .33 VARLIST statement . .33 FILE statement .34 ii 6.3.8 6.3.9 6.3.10 6.4 6.4.1 6.4.1 .l 6.4.1.2 6.4.1.3 6.4.1.4 6.4.1.5 6.4.1.6 6.4.1.7 6.4.1.8 6.4.1.9 6.4.1.10 6.4.1.11 6.4.1.12 6.4.1.13 6.4.1.
20、14 6.4.1.15 6.4.1.16 6.4.2 6.4.2.1 6.4.2.2 6.4.2.3 6.4.2.4 6.4.2.5 6.4.3 6.4.3.1 6.4.3.2 6.4.3.3 6.4.3.4 6.4.3.5 Page IFILE statement . .35 AFILE statement . 35 PFILE statement .36 Execution statements 36 Control statements 37 GOT0 . .37 BRANCH . .38 IF, ELSE, ENDIF .38 LOOP, WHILE, UNTIL, REPEAT 39
21、 CALL . .41 PERFORM 41 RETURN . .42 RETCOUNT 42 NORETURN .42 TRAP . 43 TRAPCLR . 44 TRAPSAVE . .45 TRAPRESTORE .45 CHAIN 45 STOP . 46 PAUSE . 47 Arithmetic statements .47 ADD . 48 SUBTRACT . .48 MULTIPLY 4 9 DIVIDE .49 COMPARE . . .49 Data manipulation statements . 50 MOVE 50 LOAD .52 STORE .53 APPE
22、ND .53 CMOVE 54 . . . III 6.4.3.6 6.4.3.7 6.4.3.8 6.4.3.9 6.4.3.10 6.4.3.11 6.4.3.12 6.4.3.13 6.4.3.14 6.4.3.15 6.4.3.16 6.4.3.17 6.4.3.18 6.4.3.19 6.4.3.20 6.4.3.21 6.4.3.22 6.4.3.23 6.4.3.24 6.4.3.25 6.4.3.26 6.4.3.27 6.4.3.28 6.4.3.29 6.4.3.30 6.4.3.31 6.4.3.32 6.4.3.33 6.4.3.34 6.4.3.35 6.4.4 6.
23、4.4.1 6.4.4.2 Page PACK . 54 UNPACK 54 CLEAR .55 EXTEND . 56 BUMP . 56 RESET . 56 SETLPTR . 57 LENSET . . .57 ENDSET . 58 MOVEFPTR 58 MOVELPTR 58 TYPE . 58 MATCH 58 CMATCH 59 SEARCH . .59 SCAN . 60 COUNT 60 REPLACE . 61 EDIT . 61 CHECK1 0 . 64 CHECK1 1 . 64 SFORMAT 65 NFORMAT 65 SETFLAG .66 FLAGSAVE
24、 . 66 FLAGRESTORE 66 AND . 67 OR . 67 XOR .67 NOT .68 Interactive I/O statements .68 DISPLAY . .68 KEYIN 79 iv 6.4.4.3 6.4.4.4 6.4.4.5 6.4.4.6 6.4.4.7 6.4.4.8 6.4.4.9 6.4.4.10 6.4.4.11 6.4.5 6.4.5.1 6.4.5.2 6.4.5.3 6.4.5.4 6.4.5.5 6.4.5.6 6.4.5.7 6.4.5.8 6.4.5.9 6.4.5.10 6.4.5.11 6.4.5.12 6.4.5.13 6
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIINCITS2381994INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGEPLBPDF

链接地址:http://www.mydoc123.com/p-435569.html