Page images
PDF
EPUB

6.3

Cross-reference Between ANSI Standard And Test Programs

Section 3:

Characters and Strings

3.2: Syntax

1 93 102 103 104 109 112 192 193 194 195 204 205 206

3.4: Semantics

1 186 187 188 189 190 191 204 205 206

3.6: Remarks

206

Section 4: Programs

4.2: Syntax

2 3

4 196 199 201

4.4: Semantics

2 3 4 187 188 196 197 198 200 201 202

[blocks in formation]

Cross-reference between ANSI Standard and Test Programs (cont.)

Section 7: Expressions

7.2: Syntax

24 25 26 36 37 38 39 40 41 42 43 61 143 144 145
146 147 148 149 150 151 155 157 158 159 164 165 166

7.4: Semantics

24 25 26 33 35 39 40 41 42 43 61 143 144 145 146
147 148 149 150 151 155 157 158 159 164 165 166 169 175 178
181 184

7.5: Exceptions

28 29 31

32 35 167 168 170 173 174 176 177 180 182 183

7.6: Remarks

39 40 41
184

42

43 117 119 120 121 124 127 128 169 175 178

Section 8: Implementation -Supplied Functions

8.2: Syntax

130 131 143 144 145 146 147 148 149 150 164

8.4: Semantics

114 115 116 117 119 120 121 123 124 127 128 130 131 132 133
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
149 150 164 167 169

[blocks in formation]

Cross-reference between ANSI Standard and Test Programs (cont.)

[blocks in formation]

Section 11: For-Statements and Next-Statements

--

[blocks in formation]

12.2: Syntax

1 1 6 165 172 173 174 175 192 193 203 204

[blocks in formation]

Section 14: The Data-, Read-, and Restore-Statements

[blocks in formation]

Cross-reference between ANSI Standard and Test Programs (cont.)

[blocks in formation]

16.4: Semantics

151 153 154 155 156 157 158 159 160 161 162 163 164 167

Section 17: The Randomize Statement

17.2: Syntax

131

17.4: Semantics

131

Section 18: The Remark-Statement

18.2: Syntax

15

18.4: Semantics

15

Appendix A

Differences between Versions 1 and 2 of

the Minimal BASIC Test Programs

In the development of Version 2, variety of changes in the test system. some stylistic. Below is a

list

of differences.

we introduced a wide

a Some were substantive, the more significant

1.

a

Perhaps the most extensive change has to do with the more complete treatment of the errors and exceptions which must be detected and reported by a conforming processor.

processor. We've tried to make clear the distinction between the two and just what conformance entails in each case. Also, Version 2 tests wider variety of anomalous conditions for the processor to handle. It is in this

area of helpful recovery from programmer mistakes that the Minimal BASIC standard imposes stricter requirements than other language standards

and

the tests reflect this emphasis.

2.

Version 2 differs significantly from Version 1 in its treatment of accuracy requirements. We abandoned any attempt to compute internal accuracy

for the purpose of judging conformance as being too vulnerable to the problems of circularity. Rather we formulated a criterion of

accuracy, and computed the required results outside the program itself. The programs therefore generally contain only simple IF statements comparing constants or

variables (no lengthy expressions). Those test sections where we did attempt some internal computation of accuracy, e.g., the error measure and computation of accuracy of constants and variables, are informative only.

3.

There are a number of new informative tests for the RND function. These

to help users whose applications are strongly dependent on

dependent on a nearly patternless RND sequence.

are

4.

The overall structure of the test system is more explicit.
The

group numbering should help to explain why testing of certain sections of the ANSI standard had to precede

others. Also, it should be easier to isolate the programs relevant to the testing of a given section by referring to

the

group structure.

[ocr errors][subsumed]

We tried to be especially careful to keep the printed output of the various tests as consistent as their subject matter would allow. In particular, we always made sure that the programs stated as explicitly as possible what was necessary for the test to pass or fail and that this message was surrounded by triple asterisks.

« PreviousContinue »