[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GUI work (was: Graphical help browser)
From: |
Pedro L. Lucas |
Subject: |
Re: GUI work (was: Graphical help browser) |
Date: |
Wed, 25 Mar 2009 18:01:24 +0100 |
2009/3/24, John W. Eaton <address@hidden>:
> On 23-Mar-2009, Pedro L. Lucas wrote:
>
> | Hi, I have written a xml interface for Octave. Then, you can insert
> | commands in xml format and results are returned in xml format. IDEs
> | can use this interface. Example: IDE can write:
> | <octave>
> | <command>2+2</command>
> | <ide>2+2</ide>
> | </octave>
> | the xml interface, then, returns:
> | <octave>
> | <command>ans = 4
> | </command>
> | <ide>ans = 4
> | </ide>
> | </octave>
> |
> | Using xml tags you can build several pipes for IDE commands.
> |
> | But I have next problem:
> |
> | I can not see plots. If you send: "<command>sombrero(20)</command>",
> | xml interface returns: "<command></command>".
> |
> | To execute commands, I'm using this function, from 'octave.cc':
>
> | eval_string (code, false, parse_status, 0);
>
> We've discussed a number of times that eval_string is not the best way
> to handle a fully interactive Octave session because it can't handle
> partial commands. Or has that changed in some way that I don't
> remember, so that eval_string can properly process things like
>
> "if (some_condition)"
> " do_something ();"
> "else"
> " do_something_else ();"
> "endif"
>
> as a series of separate lines?
>
> jwe
>
Oh! Ok, eval_string can not read several-lines commands. I will try
another method.
Thanks.