octave-maintainers
[Top][All Lists]
Advanced

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

Re: Automatic code generation


From: Júlio Hoffimann
Subject: Re: Automatic code generation
Date: Fri, 4 Nov 2011 11:16:39 -0300

Hi Juan,

You need to be more explicit in what you're trying to achieve. What is the purpose?

For a language to be able to produce code for other languages, it needs only I/O string capabilities, e.g., all the programming languages today.

You can take a look at self-replication, in particular quine programs:

http://en.wikipedia.org/wiki/Quine_(computing)

Regards,
Júlio.

2011/11/4 Juan Pablo Carbajal <address@hidden>
On Fri, Nov 4, 2011 at 2:55 PM, Juan Pablo Carbajal <address@hidden> wrote:
> On Fri, Nov 4, 2011 at 2:24 PM, Søren Hauberg <address@hidden> wrote:
>> fre, 04 11 2011 kl. 14:07 +0100, skrev Juan Pablo Carbajal:
>>> Does anybody has functions to generate octave code?
>>
>> I don't understand what you mean (I might be missing the obvious,
>> though). Do you want a function written in the Octave language that
>> generates a file containing another Octave function?
>>
>> Søren
>>
>>
>
> Yes. As I said it doesn't need to be an Octave function that generates
> the file. This is clearly string manipulation, and maybe is better to
> do something extendable in another language.
>
>
> --
> M. Sc. Juan Pablo Carbajal
> -----
> PhD Student
> University of Zürich
> http://ailab.ifi.uzh.ch/carbajal/
>

For example using a DOM representation of an Octave file maybe a good
option. For that python etree may come handy (or boost in C++, but I
wouldn't start there).


--
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

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