racket / algol60

Other
11 stars 14 forks source link

Consecutive comments are not accepted #8

Open bg-hub2 opened 3 months ago

bg-hub2 commented 3 months ago

This bug report ist for Racktet 8.13 [cs] from May 2024. The experimental Algol 60 system does not accept a program text with two consecutive comments. The following example demonstrates this:

#lang algol60
begin
  comment
      Example of two consecutive comments
    ;
  comment
      Racket Algol 60 does not allow two consecutive comments
    ;
  printsln(`Hello!')
end

The error message is

program.rkt:7:6: parse error near <identifier>
  context...:
   /usr/share/racket/collects/syntax/readerr.rkt:15:2: -raise-read-error
   .../syntax/module-reader.rkt:82:28: read
   /usr/share/racket/collects/syntax/module-reader.rkt:211:2: wrap-internal
   .../syntax/module-reader.rkt:76:9: wrap-internal/wrapper