Kind of ParsTree for 1.9.1

R

Robert Dober

2009/8/10 J=C3=B6rg W Mittag said:
Robert said:
Unfortunately, by then it will already be too late.
I am not sure I get you here, when I call ruby -a it surely would not
be too late for the compiler to keep the AST. My question was rather,
would it be too much overhead for the VMs to be prepared to have the
AST and expose it via an API in that case?

Probably that is much work OTOH it would be great for studies and experimen=
ts.
I hoped Charles would have some time to give me his view on this, but
of course he is a very busy man.

Cheers
Robert
--=20
module Kernel
alias_method :=CE=BB, :lambda
end
 
C

Charles Oliver Nutter

I am not sure I get you here, when I call ruby -a it surely would not
be too late for the compiler to keep the AST. My question was rather,
would it be too much overhead for the VMs to be prepared to have the
AST and expose it via an API in that case?

Probably that is much work OTOH it would be great for studies and experiments.
I hoped Charles would have some time to give me his view on this, but
of course he is a very busy man.

The problem remains that ASTs may be different, or not even exist on
some impls that go straight to bytecode. Storing a source
representation would be easier, and then you can use an offline parser
library at runtime to parse it to whatever form you want.

- Charlie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top