On Fri, 6 Jul 2001, Robert Feldt wrote:
> FYI: I'm "very close now" TM (:-)) to a RiR parser but I'm going on
> vacation this weekend so you'll have to wait a while more. Maybe someone
> beats me to it? ;-)
> The solution I've chosen is to have the comments as "statements" in the
> AST. So you'd have to associate them with the following class or method
> def yourself. Other/better ideas anyone?



I think comments should not be part of the AST proper, but be available as
"annotations", optionally. So you could either discard them or find them
between other elements, e.g. between statement 4 and statement 5 in a list
of statements. This is so that language processors can concentrate on the
actual code. 

There could be an annotation processor that detects that a certain
in-between annotation can be attached instead to an actual expression. 



matju