octave-maintainers
[Top][All Lists]
Advanced

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

Re: reconstructing m files from octave_function


From: Júlio Hoffimann
Subject: Re: reconstructing m files from octave_function
Date: Tue, 11 Dec 2012 08:38:16 -0300

I think your question is better suited for the help mailing list? I would argue it has nothing to do with GNU Octave at all. Please, next time be aware of that.

Since i started to answer, i'll give you one last advise. Your use case is a typical scenario for regular expressions, you can define a template string containing markers, for instance:
function y = f(x)

  foo = $foo;

  % do something

end
and replace all occurrences of $foo by the actual value. If you have a recent compiler, you can use C++11 regular expressions, if not use Boost.Regex (where the standard is based upon) or Boost.Xpressive.

Regards,
Júlio.

reply via email to

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