octave-maintainers
[Top][All Lists]
Advanced

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

Re: evaluator


From: Paul Kienzle
Subject: Re: evaluator
Date: Mon, 23 Feb 2004 20:07:08 -0500

The evaluator is built into the node classes of the parse tree.

You can find the root invocation in the function eval_string
in parse.y.  The root node is a tree_statement_list as defined
in pt-stmt.h.  eval_string calls the eval method of the
tree_statement_list.

The whole point of the compiler is to translate the parse tree
into C++ statements, not to call the octave evaluator.  The
simplification in the first pass is that you will be using
arithmetic on octave values rather than type inference.

Paul Kienzle
address@hidden

On Feb 23, 2004, at 7:41 PM, Jens Ruecknagel wrote:

can somebody give me a hint to the evaluator? I am looking for the clases that evaluate the pt-* parse tree.

I am familiar with the pt-pr-code.h - I was hoping there would be something similar for evaluating, so I can just "merge" them to build a first octave compiler.



reply via email to

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