ebook img

IS 11403: Information technology - Programming languages - Pascal PDF

85 Pages·1993·4.9 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview IS 11403: Information technology - Programming languages - Pascal

इंटरनेट मानक Disclosure to Promote the Right To Information Whereas the Parliament of India has set out to provide a practical regime of right to information for citizens to secure access to information under the control of public authorities, in order to promote transparency and accountability in the working of every public authority, and whereas the attached publication of the Bureau of Indian Standards is of particular interest to the public, particularly disadvantaged communities and those engaged in the pursuit of education and knowledge, the attached public safety standard is made available to promote the timely dissemination of this information in an accurate manner to the public. “जान1 का अ+धकार, जी1 का अ+धकार” “प0रा1 को छोड न’ 5 तरफ” Mazdoor Kisan Shakti Sangathan Jawaharlal Nehru “The Right to Information, The Right to Live” “Step Out From the Old to the New” IS 11403 (1993): Information technology - Programming languages - Pascal [LITD 14: Software and System Engineering] “!ान $ एक न’ भारत का +नम-ण” Satyanarayan Gangaram Pitroda ““IInnvveenntt aa NNeeww IInnddiiaa UUssiinngg KKnnoowwlleeddggee”” “!ान एक ऐसा खजाना > जो कभी च0राया नहB जा सकता हहहहै””ै” Bhartṛhari—Nītiśatakam “Knowledge is such a treasure which cannot be stolen” si ii403 : 1993 ISO/IEC 7185(1990) Indian Standard INFORMATIONTECHNOLOGY- PROGRAMMINGLANGUAGES- PASCAL ( First Revision ) UDC 681-3.06 : 800.92 PAS @ BIS 1993 BUREAU OF INDIAN STANDARDS MANAK BHAVAN, 9 BAHADUR SHAH ZAQAR MARG NEW DELHI 110002 June 1993 Price Rs 22O.Op gnimmargorP segaugnaL lanoitceS ,eettimmoC DTL 34 LANOITAN FOREWORD sihT naidnI dradnatS ( tsriF noisiveR ) hcihw is lacitnedi htiw CEI/OSI 7185 : 1990 noitamrofnI‘ ygolonhcet - gnimmargorP languages - ,’lacsaP issued yb eht lanoitanretnI noitazinagrO rof noitazidradnatS and lanoitanretnI lacinhcetortcelE noissimmoC ( CEI/OSI ,) was detpoda yb eht uaeruB fo naidnI Standards no eht noitadnemmocer fo eht gnimmargorP segaugnaL lanoitceS eettimmoC ( DTL 34 ) and lavorppa fo eht scinortcelE and noitacinummoceleT noisiviD .licnuoC sihT standard was tsrif dehsilbup- ni 1986 gnitpoda CEI/OSI 7185 : 1983. ehT tneserp noisiver has neeb nekat up, gnitpoda eht desiver noisrev fo eht evoba said CEI/OSI standard. ehT rojam snoisiver :gnieb )a noitaxaler fo eht xatnys fo laer ,srebmun ot wolla tigid‘ ’secneuqes rehtar than dengisnu‘ ’sregetni rof eht suoirav ;stnenopmoc )b ni eht handling fo enil-fo-dneG ’sretcarahc ni txet ;selif and )c ni eht handling fc emit-nur .srorre ehT‘ txet fo eht CEI/OSI lanoitanretnI dradnatS has neeb devorppa as elbatius rof noitacilbup as naidnI dradnatS tuohtiw .snoitaived niatreC snoitnevnoc era revewoh ton lacitnedi htiw esoht desu ni naidnI Standards. noitnettA is ylralucitrap drawn ot eht :gniwollof )a reverehW eht sdrow lanoitanretnI‘ ’dradnatS raeppa gnirrefer ot this standard, yeht dluohs eb daer as naidnI‘ ,’dradnatS )b ammoC ( , ) has neeb desu as a lamiced rekram elihw ni naidnI ,dradnatS eht tnerruc ecitcarp is ot esu a tniop ( . ) as eht lamiced .rekram CROSS ECNEREFER nI this naidnI ,dradnatS eht gniwollof lanoitanretnI dradnatS is derrefer .ot daeR ni its ecalp eht :gniwollof International Indian Standard Degree of Standard Correspondence IS0 646 noitamrofnI gnissecorp - SI 10315 : 1982 tib-7 dedoc retcarahc yllacinhceT 0SI tib-7 dedoc retcarahc tes rof tes rof noitamrofni egnahcretni tnelaviuqe noitamrofni egnahcretni SI 30411 3991: CEI/OSI 0991:5817 Indian Standard INFORMATIONTECHNOLOGY- PROGRAMMINGLANGUAGES- PASCAL ( First Revision ) 1 Scope 1.1 lanoitanretnI dradnatS seificeps eht scitnames and xatnys fo eht retupmoc gnimmargorp egaugnal This lacsaP yb gniyficeps stnemeriuqer rof a rossecorp and rof a gnimrofnoc .margorp owT slevel fo ecnailpmoc era denifed rof htob srossecorp and .smargorp 1.2 sihT lanoitanretnI dradnatS seod ton yficeps )a eht ezis ro ytixelpmoc fo a margorp and its data that lliw deecxe eht yticapac fo yna cificeps data gnissecorp metsys ro eht yticapac fo ralucitrapa ,rossecorp ron eht snoitca ot eb nekat nehw eht gnidnopserroc stimil era ;dedeecxe )b eht laminim stnemeriuqer fo a data gnissecorp metsys that is elbapac fo gnitroppus an noitatnemelpmi fo a rossecorp rof ;lacsaP )c eht dohtem fo gnitavitca eht kcolb-margorp ro eht tes fo sdnammoc desu ot lortnoc eht tnemnorivne ni hcihw a lacsaP margorp is demrofsnart and ;detucexe )d eht msinahcem yb hcihw smargorp nettirw ni lacsaP era demrofsnart rof esu yb a data gnissecorp ;metsys )e eht dohtem rof gnitroper srorre ro warnings; )f eht lacihpargopyt noitatneserper fo a margorp dehsilbup rof human .gnidaer 2 Normative reference ehT gniwollof standard sniatnoc snoisivorp ,hcihw hguorht ecnerefer ni this ,txet etutitsnoc snoisivorp fo this lanoitanretnI .dradnatS At eht emit fo ,noitacilbup eht noitide detacidni was .dilav llA standards era tcejbus ot ,noisiver and seitrap ot stnemeerga desab no this lanoitanretnI dradnatS era degaruocne ot etagitsevni eht ytilibissop fo gniylppa eht tsom tnecer noitide fo eht standard detsil .woleb srebmeM fo CEI and 0SI maintain sretsiger fo yltnerruc dilav lanoitanretnI Standards. 0SI :646 1983, Information processing-HO 7-bit coded character set for information interchange. 3 Definitions roF eht sesoprup fo this lanoitanretnI ,dradnatS eht gniwollof snoitinifed .ylppa NOTE -To draw atbntion to language concepts, some terms are printed in italics on their first mention or at their defining occurrence(s) in this International Standard. 1 SI 11403 3991-: CEI/OSI 7185 : 1990 3.1 Error A noitaloiv yb a margorp fo eht stnemeriuqer fo this lanoitanretnI dradnatS that a rossecorp is dettimrep ot evael .detcetednu NOTES 1 If it is possible to construct a program in which the violation or non-violation of this International Standard requires knowledge of the data read by the program or the implementation definition of implementation-defined features, then violation of that requirement is classified as an error. Processors may report on such violations of the requirement without such-knowledge, but~there always remain some cases that require execution, simulated execution, or proof procedures with the required knowledge. Requirements that can be verified without such knowledge are not classified as errors. 2 Processors should attempt the detection of as many errors as possible, and to as complete a degree as possible. Permission to omit detection isprovided for implementations in which the detection would be an excessive bnrden. 3.2 Extension A noitacifidom ot esualc 6 fo eht stnemeriuqer fo this lanoitanretnI dradnatS that seod ton etadilavni yna margorp gniylpmoc htiw this lanoitanretnI ,dradnatS as denifed yb 5.2, tpecxe yb gnitibihorp eht esu fo eno ro erom ralucitrap sgnilleps fo sreifitnedi ees( 6.1.2 and .)3.1.6 3.3 Implementation-defined ylbissoP gnireffid neewteb ,srossecorp tub denifed rof yna ralucitrap .rossecorp 3.4 Implementation-dependent ylbissoP gnireffid neewteb srossecorp and ton denifed‘ylirassecen rof yna ralucitrap .rossecorp 3.5 Processor A metsys ro msinahcem that stpecca a margorp as ,tupni seraperp ti rof ,noitucexe and setucexe eht ssecorp os denifed htiw data ot ecudorp .stluser NOTE - A processor may consist of an interpreter, a compiler and run-time system, or another mechanism, together with an associated host computing machine and operating system, or another mechanism for achieving the same effect. A compiler in itself, for example, does not constitute a processor. 4 Definitional conventions ehT egaugnalatem desu ni this lanoitanretnI dradnatS ot yficeps eht xatnys fo eht stcurtsnoc is desab no ruaN-sukcaB .mroF ehT noitaton has neeb deifidom morf eht lanigiro ot timrep retaerg ecneinevnoc fo noitpircsed and ot wolla rof evitareti snoitcudorp ot ecalper evisrucer .seno elbaT 1 lists eht sgninaem fo eht suoirav .slobmysatem rehtruF noitacificeps fo eht stcurtsnoc is nevig yb esorp and, ni emos ,sesac yb tnelaviuqe margorp .stnemgarf ynA reifitnedi that denifedsi ni esualc 6 as a deriuqer reifitnedi shall etoned eht deriuqer-gnidnopserroc ytitne yb its ecnerrucco ni hcus a margorp .tnemgarf nI all rehto ,stcepser yna hcus margorp tnemgarf is dnuob yb yna tnenitrep tnemeriuqer FO this lanoitanretnI .dradnatS A reifitnedi-atem shall eb a ecneuqes fo srettel and snehpyh gninnigeb htiw a .rettel A ecneuqes fo lanimret and lanimretnon slobmys ni a noitcudorp seilpmi eht noitanetacnoc fo eht txet that yeht yletamitlu .tneserper nihtiW 6.1 this noitanetacnoc is ;tcerid on sretcarahc shall .enevretni nI all rehto parts fo this lanoitanretnI dradnatS eht noitanetacnoc is ecnadroccani htiw eht selur tes tuo ni 6.1. 2 IS 11403 : 1993 ISO/IEC 7185 : 1990 Table 1 - Metalanguage symbols Metasymbol Meaning I Shall be denifed ot eb > llahS evah as an evitanretla noitinifed I ylevitanretlA dnE fo noitinifed 1xI 0 ro 1 ecnatsni fo x I x 1 0 ro erom secnatsni fo x x( I )y :gnipuorG rehtie fo x ro y ehT lanimret lobmys zyx ‘xyz’ -cifitnedi-atem A lanimretnon lobmys ehT sretcarahc deriuqer ot mrof lacsaP smargorp shall eb esoht ylticilpmi deriuqer ot mrof eht snekot and srotarapes denifed ni 6.1. esU fo eht sdrow and nehw gnisserpxe a pihsnoitaler neewteb of, in, containing, closest-containing, lanimret ro lanimretnon ,slobmys shall evah eht gniwollof sgninaem eht- x a :y srefer ot eht x gnirrucco yltcerid ni a noitcudorp gninifed ;y of eht- x a :y is suomynonys htiw eht‘ x fo a ;’y in a- y srefer ot yna y morf hcihw an x is yltcerid ro yltceridni ;devired containing an x: eht- y closest-containing an x: that y gniniatnoc na x dna ton gniniatnoc rehtona y gniniatnoc taht .x esehT citcatnys snoitnevnoc era desu ni esualc 6 ot yficeps niatrec citcatnys stnemeriuqer and osla eht stxetnoc nihtiw hcihw niatrec citnames snoitacificeps .ylppa nI noitidda ot eht lamron hsilgnE selur rof ,noitanehpyh noitanehpyh is desu ni this lanoitanretnI dradnatS ot mrof dnuopmoc sdrow that tneserper ,sreifitnedi-atem citnames ,smret ro .htob llA sreifitnedi&tem that niatnoc erom than eno drow era nettirw as a tinu htiw snehpyh gninioj eht parts. citnameS smret gnidne ni ”epyt“ and ”elbairav“ era osla nettirw as eno detanehpyh .tinu citnameS smret gnitneserper dnuopmoc saedi era esiwekil nettirw as detanehpyh units, ,.g.e ,eulav-tigid ,tniop-noitavitca ,elbitapmoc-tnemngissa and .eulav-gniyfitnedi SETON era dedulcni ni this lanoitanretnI dradnatS ylno rof sesoprup fo ,noitacifiralc and aid ni eht esu fo eht standard. SETON era evitamrofni ylno and era ton a trap fo eht lanoitanretnI .dradnatS selpmaxE ni this lanoitanretnI dradnatS era tnelaviuqe ot .SETON 5 Compliance erehT era owt slevel fo ,ecnailpmoc level 0 and level 1. leveL 0 seod ton edulcni -yarra-tnamrofnoc .sretemarap leveL 1 seod edulcni .sretemarap-yarra-tnamrofnoc 5.1 Processors A rossecorp gniylpmoc htiw eht stnemeriuqer fo this lanoitanretnI dradnatS shall )am fi ti seilpmoc at level 0, tpecca all eht serutaef fo eht egaugnal deificeps ni clause 6, except for 6.6.3.6 e), 6.6.3.7, and 6.6.3.8, with the meanings ,defined ni esualc ;6 )b fi ti seilpmoc at level 1, tpecca all eht serutaef fo eht egaugnal deificeps ni esualc 6 htiw eht sgninaem denifed ni esualc 6; 3 SI 11403 : 1993 CEI/OSI 7185 : 1990 )c ton eriuqer eht noisulcni fo roetutitsbus lanoitidda egaugnal stnemele ni a margorp ni redro ot hsilpmocca a erutaef ,fo eht egaugnal that is deificeps ni esualc ;6 )d eb deinapmocca yb a tnemucod that sedivorp a noitinifed fo all denifed-noitatnemelpmi ;serutaef )e eb elba ot enimreted rehtehw ro ton eht margorp setaloiv yna stnemeriuqer fo this lanoitanretnI ,dradnatS erehw such a violation is not designated an error, report the result of this determination eht resu fo eht rossecorp erofeb eht noitucexe fo eht ,kcolb-margorp fi ,yna and shall tneverp to noitucexe fo eht ,kcolb-margorp fi ;yna )f taert hcae noitaloiv that is detangised an rorre ni at tsael eno fo eht gniwollof syaw )1 ereht shall eb a tnemetats ni an gniynapmocca tnemucod that eht rorre is ton ,detroper and a eton gnicnerefer hcae hcus tnemetats shall raeppa ni a etarapes noitces fo eht gniynapmocca ;tnemucod )2 eht rossecorp shall troper eht rorre ro eht ytilibissop fo eht rorre gnirud noitaraperp fo eht margorp rof noitucexe and ni eht tneve fo hcus a troper shall eb elba ot eunitnoc rehtruf gnissecorp and shall eb elba ot esufer noitucexe fo eht ;kcolb-margorp )3 eht rossecorp shall troper eht rorre gnirud noitucexe fo eht ;margorp and fi an rorre is detroper gnirud noitucexe fo eht ,margorp eht rossecorp shall etanimret ;noitucexe fi an sruccororre nihtiw a ,tnemetats eht noitucexe fo that tnemetats shall ton eb ,detelpmoc EPYCN - 1 This means that processing will continue up to or beyond execution of the program at the option of the user. )g eb deinapmocca yb a tnemucod ,mat yletarapes sebircsed yna serutaef detpecca yb eht rossecorp that era detibihorp ro deificepstoir ni esualc :6 hcus snoisnetxe shall eb debircsed as gnieb snoisnetxe‘ ot lacsaP as deificeps yb CEI/OSI ;’5817 )h eb elba ot ,ssecorp ni a rennam ralimis ot that deificeps rof yna,srorre esu fo yna hcus :noisnetxe )i eb elba ot ,ssecorp ni a rennam ralimis ot that deificeps rof .srorre yna esu fo an -noitatnemelpmi tnedneped .erutaef ETON - 2 5.1 ot The phrase ‘be able to’ is used in permit the implementation of a switch Withw hich the user may control the reporting. A rossecorp that stroprup ot ,ylpmoc yllohw ro ,yllaitrap htiw eht stnemeriuqer fo this lanoitanretnI dradnatS shall od os ylno eht,ni gniwollof .smret A ecnailpmoc statementshall eb decudorp yb eht rossecorp as a ecneuqesnoc fo using eht rossecorp ro shall eb dedulcni ni gniynapmocca .noitatnemucod fI eht rossecorp seilpmoc ni all stcepser htiw eht stnemeriuqer fo this lanoitanretnI ,dradnatS eht ecnailpmoc tnemetats shall eb sihT< >rossecorp seilpmoc htiw eht stnemeriuqer fo level >rebmun< fo CEl/OSI 7 185. fI eht rossecorp seilpmoc emoshtiw tub ton all fo eht stnemeriuqer fo this lanoitanretnI dradnatS neht ti shall ton esu eht evoba ,tnemetats tub shall daetsni esu eht gniwollof ecnailpmoc tnemetats <Thisprocessor> seilpmoc htiw eht stnemeriuqer fo level <number> fo XJI/OSI 7 185, htiw eht gniwollof :snoitpecxe <followed by a reference to. or a complete list of, the requirements of the International Standardwith which the processor does not comply>. nI htob sesac eht txet <This processor> shall eb decalper yb an suougibmanu eman gniyfitnedi eht ,rossecorp and eht txet <number> shall eb decalper yb eht etairporppa level .rebmun ETON - 3 sross.ecorP that od not comply fully with the requirements of the InternationalS tandarda re not required to give.Wl details of their failures to comply in the compliance statement; a brief feference to accompanying documentation thd contains a complete list in sufficient detail to identify the defects is sufficient, 4 IS 11403 : 1993 ISOfiEC 7185 : 1990 5.2 Programs margorp gnimrofnoc htiw eht stnemeriuqer fo this lanoitanretnI dradnatS shall A )a fi ti smrofnoc at level 0, esu ylno esoht serutaef fo eht egaugnal deificeps ni esualc 6, tpecxe rof 6.6.3.6 ,)e 6.6.3.7, and ;8.3.6.6 )b fi ti smrofnoc at level 1, esu ylno esoht serutaef fo egaugnal-eht deificeps ni esualc ;6 and )c ton yler no yna ralucitrap noitaterpretni fo tnedneped-noitatnemelpmi .serutaef NOTES margorp that seilpmoc htiw eht stnemeriuqer 1 A of this International Standard may rely on particular implementation- defined v&es or features. 2 The requirements for conforming programs and compliant processors do not require that the results produced by a conforming program are always the same when processed by a compliant processor. They may be the same, or they may differ, depending on the program. A simple program to illustrate:this is program x (output) ; begin writeln (maxint) end. 6 Requirements 6.l Lexical tokens NOTE - The syntax given in this subclause describes the formation of lexical tokens from characters and the separation of these tokens and therefore does not adhere to the same rules as the syntax in the rest of this International Standard. 6.1.1 General The lacixel snekot desu ot tcurtsnoc lacsaP smargorp era deifissalc otni ,slobmys-laiceps ,sreifitnedi ,sevitcerid of ,srebmun-dengisnu ,slebal and .sgnirts-retcarahc ehT noitatneserper &a rettel reppu( ro-esac rewol ,esac secnereffid fo ,tnof ).cte gnirrucco erehwyna edistuo fo a gnirts-retcarahc ees( )7.1.6 shall eb tnacifingisni ni that ecnerrucco ot eht gninaem fo eht .margorp ,a‘ rettel = I ‘b’ I ‘c’ I ‘d’ j ‘e, I ‘f’ j ‘g’ j ‘h’ I ‘i’ I ‘j, ‘k’ 1 ’I‘ 1 ‘m’ 1 ’n‘ I ‘0’ I ‘p’ I ‘q’ I ‘r’ l ‘s’ l ‘t’ 1 I ’u‘ l ’v‘ l ’w‘ l ’x‘ l ’y‘ I ‘2’ tigid = ‘0’ I ‘1’ I ‘2’ I ‘3’ I ‘4’ j ‘5’ I ‘6’ I ‘7’ I ‘8’ I ‘9’ . 6.1.2 Special-symbols The slobmys-laiceps era snekot gnivah laiceps sgninaem and era desu ot timiled eht citcqtnys itinu fo eht .egaugnal lobmys-laiceps = ’+‘ I ‘-7 I *y I ‘/’ 1 ‘=’ I ‘<’ I ‘>’ I ‘[’ I ’I‘ *_. I S,L I r:r I y I ’T‘ I G(, I G)S I I ’><‘ I ‘c=’ I ’=>‘ I ’=:‘ I ‘..’ I lobmys-drow _ lobmys-drow- = ‘and’ I ‘array’ I ’nigeb‘ I ’esac‘ I ’tsnoc‘ I ’vid‘ I ’od‘ I ’otnwod‘ l ’esle‘ I ’dne‘ I ’elif‘ I ‘for’ I ’noitcnuf‘ I ’otog‘ 1 ’fi‘ I ’ni‘ I ”lebal‘ I ‘mod’ I ’lin‘ I ’ton‘ 1 ‘of’ I ‘or’ I ‘packed’ I ’erudecorp‘ I ‘program’ I ‘record’ I ’taeper‘ I ‘set’ I ’neht‘ I ‘to’ I ’epyt‘ I ’litnu‘ I ’rav‘ I ’elihw‘ I ’htiw‘ . 5

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.