octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parse tree generation


From: David Bateman
Subject: Re: parse tree generation
Date: Sun, 20 May 2007 07:55:28 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Brian W. wrote:
> I'd like to ask again, if my question was unclear, or if really nobody knows
> how to obtain the parse tree of a script/function file?
> 
> If there is no obvious way to achieve this, can you roughly point out, which
> sequence of functions of the octave source is called when the user calls a
> -not yet compiled- function file? All I figured out is that the actual work
> is done in the bison output parse.cc, but that function seems to interfere
> with the octave workspace and input stream, so that it is probably not a
> good idea to invoke it directly.
> 
> Thanks
> Brian

What do you want to do with the parse tree? I believe if you use "help"
or "which" on a file it will force it to load and parse the file. Though
I then know of no sensible why to access the parse tree from a script..

D.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]