octave-maintainers
[Top][All Lists]
Advanced

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

Parseable output from Octave


From: Oyvind Kristiansen
Subject: Parseable output from Octave
Date: Wed, 4 Feb 2004 00:45:27 +0100 (CET)

Some programs use Octave for calculations. An example of such programs, is
SciCraft (former Zherlock, www.scicraft.org). SciCraft currently passes
commands to Octave at stdin, and analyses output from stdout.

Currently, output from Octave is hard to parse, and to correct this, I
have a proposition for a simpler variable formatting.

Problems for parsers are for instance:
-"unnecessary" whitespace
-information that occur at "random" places (like "Columns x to y ...")
-there is no way of determining where the printing of variables end (so
far, they've searched for "octave:")
-in string arrays, one has no way of determining the difference between
lineshifts and new row.

My patch tries to fix this.

Note: a new internal variable, machine_readable=true|false (defaults to
false), will turn the feature.

It is also desireable to make this option apply to output from who/whos.


Cheers,
Oeyvind Kristiansen

Attachment: patch
Description: Text document

Attachment: test_m.m
Description: Text document


reply via email to

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