help-octave
[Top][All Lists]
Advanced

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

Re: Is there a command that shows the C-code the interpreter creates?


From: GoSim
Subject: Re: Is there a command that shows the C-code the interpreter creates?
Date: Thu, 18 Apr 2019 11:01:25 -0500 (CDT)

  if condition
       A = 1;
    else
       A = "1";
    end

    B = A;


a method could be:
when an if condition is encountered search for "declarations". Put
declarations in front of the if construction. Introduce values that the user
can not set. Check if any of these values changes and select that one.

A_0=null
A_1=null
  if condition
       A_0 = 1;
    else
       A_1 = "1";
    end

find which A is not null
let's say A_1 is not null

    B_0 = A_1;

Some minor additions to your interpreter could handle this.



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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