ANSI ISO IEC 10279-1991 Information technology - Programming languages - Full BASIC《信息技术.程序设计语言.INCITS采纳的全BASIC语言》.pdf

上传人:syndromehi216 文档编号:437140 上传时间:2018-11-14 格式:PDF 页数:17 大小:1,018.21KB
下载 相关 举报
ANSI ISO IEC 10279-1991 Information technology - Programming languages - Full BASIC《信息技术.程序设计语言.INCITS采纳的全BASIC语言》.pdf_第1页
第1页 / 共17页
ANSI ISO IEC 10279-1991 Information technology - Programming languages - Full BASIC《信息技术.程序设计语言.INCITS采纳的全BASIC语言》.pdf_第2页
第2页 / 共17页
ANSI ISO IEC 10279-1991 Information technology - Programming languages - Full BASIC《信息技术.程序设计语言.INCITS采纳的全BASIC语言》.pdf_第3页
第3页 / 共17页
ANSI ISO IEC 10279-1991 Information technology - Programming languages - Full BASIC《信息技术.程序设计语言.INCITS采纳的全BASIC语言》.pdf_第4页
第4页 / 共17页
ANSI ISO IEC 10279-1991 Information technology - Programming languages - Full BASIC《信息技术.程序设计语言.INCITS采纳的全BASIC语言》.pdf_第5页
第5页 / 共17页
亲,该文档总共17页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

1、INTERNATIONAL STANCARD ISO/IEC 10279 First edition 1991-10-15 Information technology - Programming languages - Full BASIC Technologies de Iinformaiion - Langages de programmation - Full BASIC Reference number ISOllEC 10279:1991(E) Processed and adopted by ASC NCITS and approved by ANSI as an America

2、n National Standard.Date of ANSI Approval: 1/11/99Published by American National Standards Institute,11 West 42nd Street, New York, New York 10036Copyright 1999 by Information Technology Industry Council (ITI).All rights reserved.These materials are subject to copyright claims of International Stand

3、ardization Organization (ISO),International Electrotechnical Commission (IEC), American National Standards Institute (ANSI), andInformation Technology Industry Council (ITI). Not for resale. No part of this publication may be reproducedin any form, including an electronic retrieval system, without t

4、he prior written permission of ITI. All requestspertaining to this standard should be submitted to ITI, 1250 Eye Street NW, Washington, DC 20005.Printed in the United States of AmericaAdopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard.Da

5、te of ANSI Approval: 1/11/99Published by American National Standards Institute,25 West 43rd Street, New York, New York 10036Copyright 2002 by Information Technology Industry Council (ITI).All rights reserved.These materials are subject to copyright claims of International Standardization Organizatio

6、n (ISO), InternationalElectrotechnical Commission (IEC), American National Standards Institute (ANSI), and Information Technology Industry Council(ITI). Not for resale. No part of this publication may be reproduced in any form, including an electronic retrieval system, withoutthe prior written permi

7、ssion of ITI. All requests pertaining to this standard should be submitted to ITI, 1250 Eye Street NW,Washington, DC 20005.Printed in the United States of AmericaISOllEC 10279:1991(E) Foreword IS0 (the International Organization for Standardization) and IEC (the International Electrotechnical Commis

8、sion) form the specialized system for worldwide standardization. National bodies that are members of IS0 or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. IS0

9、and IEC technical com- mittees collaborate in fields of mutual interest. Other international or- ganizations, governmental and non-governmental, in liaison with IS0 and IEC, also take part in the work. In the field of information technology, IS0 and IEC have established a joint technical committee,

10、ISO/IEC JTC 1. Drat? International Standards adopted by the joint technical committee are circulated to national bod- ies for voting. Publication as an International Standard requires ap- proval by at least 75 % of the national bodies casting a vote. International Standard ISO/IEC 10279 was prepared

11、 by Joint Technical Committee ISO/IEC JTC 1, information technology. Annexes A and B are for information only CJ ISO/IEC 1991 All rights reserved. No part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, wi

12、thout permission In writing from the publisher. ISOllEC Copyright Office l Case Postale 56 l CH-1211 Genkve 20 l Switzerland Printed In Switzerland ii INTERNATIONAL STANDARD ISOllEC 10279:1991 (E) Information technology - Programming languages - Full BASIC 1 Scope This International Standard specifi

13、es the programming language Full BASIC and is derived from the American National Standard X3.113-1987. For details of the syntax and semantics see ANSI X3.113-1987 which specifies the syntax of programs written in BASIC, including core BASIC and various extensions thereto; - the formats of data and

14、the minimum precision and range of numeric representations and the minimum length and set of characters in strings that are acceptable as input to an automatic data processing system being controlled by a program written in BASIC; - the formats of data and the minimum precision and range of numeric

15、representations and the minimum length and set of characters in strings that can be generated as output by an automatic data processing system being controlled by a program written in BASIC; - the semantic rules for interpreting the meaning of a program written in BASIC; - errors and exceptional cir

16、cumstances to be detected and also the manner in which such errors and exceptional circumstances are to be handled This International Standard also refers to ECMA-116 for the specification of mini-graphics. Note: ECMA-116 is based on ANSI X3.1 13-1987. This International Standard specifies its own c

17、onformance subsets, which include those specified in ANSI X3.1 13- 1987 and ECMA-116. This International Standard is designed to promote the interchangeability of BASIC programs among a variety of automatic data processing systems. 2 Normative references The following standards contain provisions wh

18、ich, through reference in this text, constitute provisions of this International Standard. At the time of publication, the editions indicated were valid. All standards are subject to revision, and parties to agreements based on this International Standard are encouraged to investigate the possibilit

19、y of applying the most recent editions of the standards indicated below. Members of IEC and of IS0 maintain registers of currently valid International Standards. ANSI X3.1 13-l 987: Information systems - programming languages - full BASIC. STANDARD ECMA-1 i6: 1986, BASIC. 1 ISOllEC 10279:1991 (E) 3

20、Technical content 3.1 Principal technical content Apart from the conformance rules the technical content of this International Standard is defined in part by Sections 3 to 16 of the ANSI X3.113-1987 (which will be referred to a ANS BASIC). The definition of reserved wordin ANS BASIC Section 3.2 is f

21、or information only with respect to this International Standard. The technical content for the mini-graphics module of this International Standard is defined by Section 13 of ECMA-116. 3.2 Additional reserved words For the subset core, insert the following paragraph after paragraph 6 of Subsection 4

22、.4.2 of ANS BASIC. “The keywords ACCESS, AND, ANGLE, AREA, ARITHMETIC, ASK, AT, BASE, BEGIN, BREAK, CALL, CASE, CHAIN, CLEAR, CLIP, CLOSE, COLLATE, COLOR, DATA, DATUM, DEBUG, DECIMAL, DECLARE, DEF, DEGREES, DEVICE, DIM, DISPLAY, DO, ELAPSED, ELSEIF, END, ERASE, ERASABLE, EXIT, EXTERNAL, FILETYPE, FO

23、R, FUNCTION, GO, GOSUB, GOTO, GRAPH, IF, IMAGE, INPUT, INTERNAL, IS, LENGTH, LET, LINE, LINES, LOOP, MARGIN, MAT, MISSING, NAME, NATIVE, NEXT, NUMERIC, OFF, ON, OPEN, OPTION, OR, ORGANIZATION, OUTIN, OUTPUT, POINT, POINTER, POINTS, PROGRAM, PROMPT, RADIANS, RANDOMIZE, READ, RECSIZE, RECTYPE, REST, R

24、ESTORE, RETURN, SAME, SELECT, SEQUENTIAL, SET, SETTER, SIZE, SKIP, STANDARD, STATUS, STEP, STOP, STREAM, STRING, STYLE, SUB, TAB, TEXT, THEN, THERE, TIMEOUT, TO, TRACE, UNTIL, USING, VARIABLE, VIEWPORT, WHILE, WINDOW, WITH, WRITE, and ZONEWIDTH shall not be used as identifiers.” 4 Conformance There

25、are two aspects of conformance to a set of modules in this International Standard: conformance by a program written in the BASIC language, and conformance by an implementation which processes such programs. The conformance requirements are structured so that any program conforming to a set of module

26、s will produce the same results when executed by any implementation conforming to the same or an encompassing set of modules (though certain implementation-dependent features are noted in ANS BASIC Appendix C). 4.1 Modules The programming language defined by this International Standard is organized

27、in a modular fashion. Conformance to this International Standard is defined with respect to particular sets of the following fifteen modules and combinations thereof: a A core module, which encompasses all programs whose syntax conforms to ANS BASIC Sections 4 to 10, parts of ANS BASIC Section 11 (e

28、xcluding internal-format record and native-format record files), and ANS BASIC Section 12. t-4 A subset core module, which encompasses all programs whose syntax conforms to ANS BASIC Sections 4 to 10 (except that a substitute definition of reserved word applies - see 3.2), parts of ANS BASIC Section

29、 11 (excluding enhanced-internal and enhanced-native files), and ANS BASIC Subsection 12.2. (The subset core module is identical to the core module except that the list of reserved words is larger and exception handling is excluded.) c) An enhanced-internal file module, which encompasses all program

30、s whose syntax conforms to the enhanced production rules in ANS BASIC Section 11 (lacking the prefix IN”), together with the core. d) An enhanced-internal file subset module, which encompasses all programs whose syntax conforms to the enhanced production rules in ANS BASIC Section 11 (lacking the pr

31、efix “N”), together with the subset core. 2 ISOllEC 10279:1991 (E) e) f ) 9) h) 0 i) 4 1) ml n) 0) An enhanced-native file module, which encompasses all programs whose syntax conforms to the enhanced native production rules in ANS BASIC Section 11 (indicated with the prefix “N”), together with the c

32、ore. An enhanced-native file subset module, which encompasses all programs whose syntax conforms to the enhanced native production rules in ANS BASIC Section 11 (indicated with the prefix “N”), together with the subset core. A graphics module, which encompasses all programs whose syntax conforms to

33、ANS BASIC Section 13, together with the core. A graphics subset module, which encompasses all programs whose syntax conforms to ANS BASIC Section 13, together with the subset core. A mini graphics module, which encompasses all programs whose syntax conforms to ECMA-116 Section 13 (see Annex B), toge

34、ther with the core. A mi/;i graphics subset module, which encompasses all programs whose syntax conforms to ECMA-116 Section 13 (see Annex B), together with the subset core. A real-time module, which encompasses all programs whose syntax conforms to ANS BASIC Section 14, together with the core. A re

35、al-time subset module, which encompasses all programs whose syntax conforms to ANS BASIC Section 14, together with the subset core. A fixed decimal module, which encompasses all programs whose syntax conforms to ANS BASIC Section 15, together with the core. A fixed decimal subset module, which encom

36、passes all programs whose syntax conforms to ANS BASIC Section 15, together with the subset core. An editing module, which encompasses all unsorted programs and editing commands whose syntax conforms to ANS BASIC Section 16. In addition, the Conformance Modules shall include those described in ANS X

37、3-l 13, Section 2, and in ECMA-116, Section 2. (Note: See Annex A for details on the relationship between these conformance modules and the conformance modules defined in ANS X3-l 13 and ECMA-116.) 4.2 Program conformance A program conforms to a set of modules in this International Standard only whe

38、n the program and each statement or other syntactic element contained therein is syntactically valid according to the syntactic rules specified by this International Standard as belonging to that set; - the program as a whole violates none of the global constraints imposed by this International Stan

39、dard on the application of the syntactic rules. 3 ISOllEC 10279:1991 (E) 4.3 Implementation conformance An implementation conforms to a set of modules in this International Standard only when it accepts and processes all programs conforming to that set of modules in this International Standard; it r

40、eports reasons for rejecting any program which does not conform to that set of modules in this International Standard; it interprets errors and exceptional circumstances according to the specifications of this International Standard; - it interprets the semantics of each statement of a conforming pr

41、ogram according to the specifications in this International Standard; - it interprets the semantics of a conforming program as a whole according to the specifications in this International Standard: it accepts as input, manipulates, and can generate as output numbers of at least the precision and ra

42、nge specified in this International Standard; it accepts as input, manipulates, and can generate as output strings of at least the length and composed of at least those characters specified in this International Standard; - it is accompanied by documentation available to the user that describes the

43、actions taken in regard to features referred to as “undefined” or “implementation-defined” in this International Standard; it is accompanied by documentation available to the user that describes and identifies all enhancements to the language defined in this International Standard. This Internationa

44、l Standard makes no requirement concerning the interpretation of the semantics of any statement or program as a whole that does not conform to this International Standard. In addition, an implementation conforms to the editing requirements of this International Standard if it accepts and processes u

45、nsorted programs and editing commands according to the specifications in ANS BASIC Section 16. 4.4 Errors This International Standard does not include specific requirements for reporting syntactic errors in the text of a program. Implementations conforming to a set of modules in this International S

46、tandard may accept programs written in an enhanced language without having to report all constructs not conforming to that set of modules. Whenever a statement, or other program element, does not conform to the syntactic rules given herein, and that statement, or program element, does not have a cle

47、ar, well-documented implementation-defined meaning, an error shall be reported. Errors shall be reported in a clear and well-documented way, and whenever feasible the implementation should indicate the erroneous statement and the position of the error within the statement. 4.5 Exceptions An exceptio

48、n is a circumstance arising in the course of execution of a program when an implementation recognizes that the semantic rules of this International Standard cannot be followed or that some resource constraint is about to be exceeded. All exceptions described in this International Standard shall be d

49、etected, reported, and processed when they occur, unless some mechanism provided in ANS BASIC Subsection 12.1 or in an enhancement to this International Standard has been invoked by the user to handle exceptions. In the absence of programmer-specified recovery procedures, exceptions shall be handled by the recovery procedures specified in this International Standard. If no recovery procedure is specified in this International 4 ISOllEC 10279A991 (E) Standard, or if restrictions imposed by the hardware or the operating environment make it impossible to follow the procedure specified in this

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 标准规范 > 国际标准 > ANSI

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1