[Yarv-devel] translation of node_scope
Eric Hodel
drbrain at segment7.net
Wed Mar 9 00:26:14 EST 2005
On 08 Mar 2005, at 19:52, jm wrote:
> -----------------------------------------------------------------------
> ------
> /home/jeffm/yarv//lib/ruby/site_ruby/1.9/dbi/row.rb:157: [BUG] sorry,
> don't support this method type: NODE_SCOPE
> ruby 1.9.0 (2005-02-01) [i686-linux]
>
> simple question what is NODE_SCOPE?
In 1.8, NODE_SCOPE creates a new scope.
Using ParseTree's parse_tree_show:
class Example
def example
1 + 1
end
end
Has the AST:
[[:class,
:Example,
:Object,
[:defn,
:example,
[:scope, [:block, [:args], [:call, [:lit, 1], :+, [:array, [:lit,
1]]]]]]]]
But I don't recall if a NODE_SCOPE can be created outside of a def.
(At least, I haven't seen any show up.) But 1.8 is likely to be
totally unlike YARV in this respect.
--
Eric Hodel - drbrain at segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/yarv-devel/attachments/20050308/2797fb53/PGP.bin
More information about the Yarv-devel
mailing list