octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #63199] [feature request] add a function to in


From: Yu Hongbo
Subject: [Octave-bug-tracker] [bug #63199] [feature request] add a function to inverse eval() function
Date: Mon, 10 Oct 2022 22:58:35 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?63199>

                 Summary: [feature request] add a function to inverse eval()
function
                 Project: GNU Octave
               Submitter: yuhongbo
               Submitted: Tue 11 Oct 2022 02:58:33 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: other
         Discussion Lock: Any
        Operating System: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Tue 11 Oct 2022 02:58:33 AM UTC By: Yu Hongbo <yuhongbo>
With the popularization of distributed software development, we are more
inclined to give complex operations to the server,  retrieve the results
through Web services, then parse the results   to variants.

However, the retrieved results mostly cannot directly use the printed text.
For example, 

a =
{
  [1,1] = 1
  [1,2] =
  {
    [1,1] = 2
  }

}

Octave cannot elegently parse this printed text to the original cell. A good
way is add a function to generate expressions which can be handled with exec()
function.

So I propose to add expression() function, and the usage is like:
>> ANS = exec(expression(VARIANTS));
>> # the ANS here is a copy of VARIANTS

For distributed system, the example is like:
>> request_body = webread(website, options);
>> ANS = exec(request_body);
>> # the request_body here is the expression which the web server intents to
response, which compliants to expression(VARIANTS)
>> # the ANS here are parsed variants










    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63199>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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