octave-maintainers
[Top][All Lists]
Advanced

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

oct2mat script based on parse tree


From: John W. Eaton
Subject: oct2mat script based on parse tree
Date: Tue, 08 Jan 2008 15:16:09 -0500

On  8-Jan-2008, I wrote:

| I don't think you need to modify the parse tree here when you
| encounter something like "+=".  You just need to emit the lhs, then
| the binary op corresponding to the OP= operator (you can get that with
| the octave_value::op_eq_to_binary_op method) and then emit the rhs.

Oops, I meant to say

  emit lhs
  emit "="
  emit lhs again
  emit binary operator corresponding to original OP= operator
  emit rhs

jwe


reply via email to

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