Last change
on this file 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:
236 bytes
|
Rev | Line | |
---|
[2] | 1 | { This program is correct wrt the context-free grammar;
|
---|
| 2 | however, it should reject the variable name 'readreal'.
|
---|
| 3 | }
|
---|
| 4 |
|
---|
| 5 | program builtins;
|
---|
| 6 |
|
---|
| 7 | var
|
---|
| 8 | r,i : integer;
|
---|
| 9 | var
|
---|
| 10 | readreal : real;
|
---|
| 11 |
|
---|
| 12 | begin
|
---|
| 13 | r := 42;
|
---|
| 14 | i := 21;
|
---|
| 15 | readreal := -1.5
|
---|
| 16 | end
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | .
|
---|
Note:
See
TracBrowser
for help on using the repository browser.