ANSI INCITS 113-1987 Information Systems - Programming Languages - Full BASIC (Supplement A - 1989).pdf
《ANSI INCITS 113-1987 Information Systems - Programming Languages - Full BASIC (Supplement A - 1989).pdf》由会员分享,可在线阅读,更多相关《ANSI INCITS 113-1987 Information Systems - Programming Languages - Full BASIC (Supplement A - 1989).pdf(377页珍藏版)》请在麦多课文档分享上搜索。
1、for Informations Systems - Programming Languages - Modules and Individual Character kNSI INCITS 113a-1989 (R2003) (formerly ANSI X3.113a-1989 (R1998): for Full Basic Input Developed by Where IT all begins ANSI X3.113a-1989 Supplement to ANSI X3 113-1 989 I American National Standard I for informatio
2、n systems - programming languages - modules and individual character input for full BASIC Approved July 26,1989 Secretariat: Computer and Business Equipment Manufacturers Association Page 1 of 14 pages 1. Introduction This Addendum is designed to promote the interchangeability of BASIC programs amon
3、g a variety of automatic for example, a module may provide for additional mathematical functions from which programs may access the ones needed and ignore the rest. Finally, modules could be used to add functional enhancements to BASIC; for example, a full GKS binding could be pro- vided to BASIC us
4、ing modules. 18.2 Syntax 1. program 2. module-part 3. module-def program-name-line? main-program = remark-line* module-def = module-line module-header procedure-part* (procedure-part I module-part)* remark-line* end-module-line ANSI X3.113a-1989 Page 6 of 14 pages 4. module-line 5. module-statement
5、6. module-name 7. module-header 8. module-header-line 9. public-line 10. public-statement 11. global-type 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. function-type sub-type picture-type share-line share-statement channel-type channel-list module-option-line module-option-statement end-module
6、-line end-module-statement type-declaration external-share-type 25. qualifred-id-list 26. qualifred-id 27. numeric-identifier 28. string-identifier 29. subprogram-name 30. picture-name 31. line 32. declaration-line 33. dim-line line-number module-statement tait MODULE module-name routine-identifier
7、(remark-line I public-line)* (remark-line I share-line)* module-header-line* remark-line I declaration-line I dim-line I module-option-line I block line-number public-statement tail PUBLIC global-type nweric-type I string-type l function-type I sub-type I picture-type ECTNCTION function-list PICRE p
8、icture-name-list line-number share-statement tail SHARE (global-type I channel-type) CHANNEL channel-list channel-number ( comma channel-number )* line-number module-option-statement tail MODULE option-statement line-number end-moduk-statement tail END MODULE external-share-type EXTERNAL (FUNCTION /
9、 SUB / PICTURE / NUMERIC / STRING) qualifred-id-list qualifred-id (comma qualifred-id)* module-name period (defrned-junction I routine-identifier I simple-nwneric-variable I simple-string-variable I formal-array) module-name period letter identifrer-character* module-name period letter identifrer-ch
10、aracte fl dollar-sign module-name period routine-identifier module-name period routine-identifrer public-line I share-line I module-line I module-option-line I module-header-line I end-module-line I dim-line I declaration-line line-number declaration-statement tail line-number dim-statement tail SUB
11、 sub-list A given identijer shall not appear more than once in the union of the public-statements, share-statements, declare-statements with the numeric-type, and the dimension-statements in the module-header of a given module- def. A given identijer shall not appear more than once in the union of t
12、he public-statements, share-statements, declare-statements with the string-type, and the dimension-statements in the module-header of a given module-def. A given identifier shall not appear more than once in the union of the public-statements, share-statements, and declare-statements with the functi
13、on-type in the module-header of a given module-def. A given identifier shall not appear more than once in the union of the public-statements, share-statements, and declare-statements with the sub-type in the module-header of a given module-def. ANSI X3.113a-1989 Page 7 of 14 pages A given identijer
14、shall not appear more than once in the union of the public-statements, share-statements, and declare-statements with the picture-type in the module-header of a given module-def. A given channel-number shall not appear more than once in the union of the share-statements with the channel- type in the
15、module-header of a given module-def. An identifier that appears in apublic-statement of a given module-def shall not also appear in an external-share- type in that module-def. A variable or routine whose identifier appears in apublic-statement shall be accessible: from the main-program, or from any
16、external-proc-def, or from any other module-def associated with the muin-program, provided that such main-program, external-proc-defs, or other associated module-defS shall contain a declare-statement with an external-shure-type containing a reference o that variable or routine. A variable or routin
17、e whose identifier appears in a public-statement or shure-statement shall be accessible from within the module-de$ including the module-header and all external-proc-defs in the module-de5 without further declaration. A channel-number that appears in a share-statement shall be accessible from within
18、the module-de$ including the module-header and all external-proc-defs in the module-def. A variable whose identifier, or a channel whose channel-number does not appear in either apublic-statement or share-statement shall be accessible only from within the module-header. A module-header shall contain
19、 at most one ANGLE option, at most one ARITHMETIC option, at most one COLLATE option, and at most one BASE option. If a module-header contains a MODULE OPTION statement of a given type, then no OPTION statement of that type may appear in the module-header or in any external-procedure in that module-
20、def. If an external-procedure in a module-def accesses a numeric share-identifier orpublic-identifier in that module- def, then the ARITHMETIC options of that external-procedure and the module-header shall be the same. If an external-procedure in a module-def accesses a string share-identifier or pu
21、blic-identifier in that module-def, then the COLLATE options of that external-procedure and the module-header shall be the same. A qualifred-id appearing in an external-share-type containing the keyword FUNCIION shall contain a dejned- function that refers to a defined-function that appears in apubl
22、ic-statement in the module-def named in the qualijied-id. A qualified-id appearing in an external-share-type containing the keyword SUB shall contain a routine-identijer that refers to a subprogram-name that appears in apublic-statement in the module-def named in the qualified-id. A qualified-id app
23、earing in an external-share-type containing the keyword PICTURE sha contain a routine- identijer that refers to apicture-name that appears in a public-statement in the module-defnamed in the qualified-id. A qualified-id appearing in an external-share-type containing the keyword NUMERIC shall contain
24、 a simple- numeric-variable or numeric formal-array that refers to a simple-numeric-variable or numeric array-name that appears in apublic-statement in the module-def named in the qualified-id. A qualifred-id appearing in an external-share-type containing the keyword STRING shall contain a simple- s
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIINCITS1131987INFORMATIONSYSTEMSPROGRAMMINGLANGUAGESFULLBASICSUPPLEMENTA1989PDF

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