
text2expr  -  converts  character  strings  into  MuPAD

statements

Calling sequence:

text2expr(string)

Parameter:

string   --  character string

Overloading:

all

Summary:

text2expr converts the character stringstring into a MuPAD statement
when the character string contains a syntactically correct statement sequence.
In contrast to the function input , the statement sequence need not be closed
with a semicolon or a colon.

The statement is returned without being evaluated further. It can be evaluated
by use of the function eval. text2expr is a kernel function.

>>  text2expr("x:= 3; x+2+1");

     (x:= 3; x+2+1)

>>  text2expr("a:= 3"); a; eval(%2), a;

      a:= 3

      a

      3, 3

See also:  input , eval

