Re: Not available in Maple 9 anymore: save all variables once

From: Humberto Jose Bortolossi (hjbortol_at_mat.puc-rio.br)
Date: 02/15/05


Date: 15 Feb 2005 11:41:09 -0800

Hi!

I've tried to use the parse command to build a "save all"
command. Unfortunately, parse complains about the reserved
word save in the string.

I wonder why the Maple's programmers decided to remove
the "save all" functionality.

Best, Humberto.

> sc := "save ":
> for l in [anames( 'user' )] do
> sc := sprintf("%s %s,", sc, l);
> od:
> sc := sprintf("%s \"%s\"", sc, libFileName);
  sc := "save computeSumOfPartialFullCosts, save computeSumOfPar\
        tialFullCosts,, computeSumOfGenerationHBSDDP, computeGPiec\
        ewisePrimeInverse, computeH, E, F, G, computeIntervalEnds,\
         computeGPiecewisePrime, l, computeGPiecewise, computeSumO\
        fPartialFullCostsSDDP, EPrime, computeSumOfGenerationHB, /\
        export/home/hjbortol/hsp/maple/2005/ThermalSystemState.mai\
        n.m, GSDDP, plotG1, plotG2, printToFile, computeIntervalEn\
        dsSDDP, thermalSort, plotGPrime, thermalSortSDDP, /export/\
        home/hjbortol/hsp/maple/2005, printGTau, "/export/home/hjb\
        ortol/hsp/maple/2005/ThermalSystemState.main.m""

> parse(sc);
Error, incorrect syntax in parse: reserved word `save` unexpected (41)

Carl Devore <devore@math.udel.edu> wrote in message news:<Pine.LNX.4.62.0502141522260.9757@bishop.math.udel.edu>...
> This message is in MIME format. The first part should be readable text,
> while the remaining parts are likely unreadable without MIME-aware tools.
>
> ---1350506480-1384856424-1108412606=:9757
> Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed
> Content-Transfer-Encoding: QUOTED-PRINTABLE
>
> On Mon, 14 Feb 2005, Humberto Jose Bortolossi wrote:
> > The problem is: I don=B4t know to make Maple evaluate (interpret) the=20
> > contents of the "eval_me" variable. Is there a such way? I mean, if I=20
> > have a symbol or string with a maple command, is it possible to make=20
> > Maple interpret such string and execute the command? Does Maple operate=
> =20
> > in a meta level?
>
> Yes, the command that you want is `parse`. See ?parse.
> ---1350506480-1384856424-1108412606=:9757--



Relevant Pages

  • Looking for ideas as to how I could do this.....
    ... this string, I would process (i.e. parse) that line to put the data into a ... I had a function that was working on windows xp/2000 machines which was ... the process use COMMAND.COM, I get errors in the find command. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: CommandLineToArgvA?
    ... distinct multibyte args? ... The string I want to ... parse is not a command line but I want to treat it exactly like a command line ...
    (microsoft.public.vc.language)
  • [HPADM] Scripting Question
    ... I am trying to write a script that will take output from a command or ... parse a file to get certain information from within the output or file. ... ends when it matches another given string. ...
    (HP-UX-Admin)
  • Re: Unbalanced braces in variable names
    ... # Giving this command in tclsh will not work, ... # % string length $ ... of the variable name and figures out a way to parse it. ...
    (comp.lang.tcl)
  • Not available in Maple 9 anymore: save all variables once
    ... In the old versions of Maple, the command ... I mean, if I have a symbol or string with a maple command, is it ... possible to make Maple interpret such string and execute ...
    (sci.math.symbolic)

Quantcast