[plt-scheme] Student parsing problem
Actually, I teach this pattern ... So the rules aren't trivial.
On Jun 2, 2009, at 7:15 PM, David Van Horn wrote:
> Carl Eastlund wrote:
>> I have had students run into the same problem with #; comments,
>> that a
>> #; before whitespace or another comment could be forgotten. I think
>> all of the s-expression-eating reader forms should have the "no
>> whitespace/comment" restriction in the student languages.
>
> I frequently use the pattern
>
> #;
> (define (f x) ...)
>
> in student language programs. It preserves the indentation of the
> definition and this program should be acceptable, IMO.
>
> David