[#407] New feature for Ruby? — Clemens.Hintze@...

Hi all,

27 messages 1999/07/01
[#413] Re: New feature for Ruby? — matz@... (Yukihiro Matsumoto) 1999/07/01

Hi Clemens,

[#416] Re: New feature for Ruby? — Clemens Hintze <c.hintze@...> 1999/07/01

On Thu, 01 Jul 1999, Yukihiro Matsumoto wrote:

[#418] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/01

Hi

[#426] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/02

Hi,

[#440] Now another totally different ;-) — Clemens Hintze <c.hintze@...>

Hi,

21 messages 1999/07/09
[#441] Re: Now another totally different ;-) — matz@... (Yukihiro Matsumoto) 1999/07/09

Hi,

[#442] Re: Now another totally different ;-) — Clemens Hintze <c.hintze@...> 1999/07/09

On Fri, 09 Jul 1999, you wrote:

[#443] — Michael Hohn <hohn@...>

Hello,

26 messages 1999/07/09
[#444] interactive ruby, debugger — gotoken@... (GOTO Kentaro) 1999/07/09

Hi Michael,

[ruby-talk:00492] Syntax tree (Re: Some questions concerning GC in Ruby extensions)

From: matz@... (Yukihiro Matsumoto)
Date: 1999-07-14 07:22:36 UTC
List: ruby-talk #492
Hi,

This is the second part of the answers to your questions, mostly
concerning syntax tree nodes.

In message "[ruby-talk:00490] Some questions concerning GC in Ruby extensions"
    on 99/07/14, Clemens Hintze <c.hintze@gmx.net> writes:

|Concerning Ruby's syntax tree...
|
|    7. Are there any docs, that explain the format of that tree a
|          little bit?

In English?  No, sorry.  In Japanese?  No.

The format is written in node.h.  The source is the perfect document
as I said before. :-)

# even bugs are described there.

|    8. How flexible is that syntax tree?
|
|          8.a. Would it, for example, be possible to transfer another
|                    language, let us say Smalltalk, to such a syntax tree,
|                    and let the Ruby VM work with it (in principle)?

It highly depends on Ruby.  Node types were added ad hoc.

|          8.b. Could I store that syntax tree in some format, so that
|                    later, I could reload it and start evaluation again?

No.

|          8.c. Are there any functions, that deals with the syntax tree
|                  (like: traversing, add a node, delete one, ...)

No.

The syntax tree is not opened for users.  Tree structures may change
dramatically in the future version.  It's very possible since tree
traversing is major perfomance bottleneck.

I suggest you to leave it blackbox.

                                                matz.

In This Thread