Last change
on this file since 15 was 2, checked in by Rick van der Zwet, 15 years ago |
Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)
|
File size:
307 bytes
|
Line | |
---|
1 | { This program is correct wrt the context-free grammar;
|
---|
2 | in the context-sensitive grammar it is incorrect.
|
---|
3 | }
|
---|
4 |
|
---|
5 | program rontest;
|
---|
6 |
|
---|
7 | var
|
---|
8 | rontest, { declared earlier ? }
|
---|
9 | ray : integer;
|
---|
10 | var raytest,
|
---|
11 | rontest : real; { definitely declared earlier }
|
---|
12 |
|
---|
13 | begin
|
---|
14 | ray := 35;
|
---|
15 | ray := 33;
|
---|
16 | rontest := -1.5
|
---|
17 | end
|
---|
18 |
|
---|
19 |
|
---|
20 | .
|
---|
Note:
See
TracBrowser
for help on using the repository browser.