On Thu, 25 Oct 2001, markus liedl wrote:
> The structure of the produced AST will change in future releases. At
> first the 'ok' from matju is still missing, and I don't want to get in
> a dead end...

Yep, and despite rumours of the contrary, I only have one head.

> Especially, I'm not sure how to represent Attributes. The code 'a.o=9'
> is parsed to 
>   Ruby::Assign[ Ruby::A[ Ruby::LVar[:a], :o], Ruby::LAtom[9] ]
> where this would also be nice:
>   Ruby::M[ Ruby::LVar[:a], :o=, [Ruby::LAtom[9]], nil, nil]]]

Both are correct (except the latter has too many "]"). Soon, this one may
also become correct:

    Ruby::M[ Ruby::LVar[:a], :o=, [Ruby::LAtom[9]] ]

(as I merge Type.rb changes from RubyX11 0.6 (not released))

>   to matju for MetaRuby and the type-checking AST. It helps.

I had serious doubts regarding the pertinence of RubyAST (now RubySchema),
but if you say so... ;-)

________________________________________________________________
Mathieu Bouchard                   http://hostname.2y.net/~matju