Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Parse_string

Function: parse_string (<str>) Parse the string <str> as a Maxima expression (do not evaluate it). The string <str> may or may not have a terminator (dollar sign `\$` or semicolon `;`). Only the first expression is parsed, if there is more than one. Complain if <str> is not a string.

Examples:

```          (%i1) parse_string ("foo: 42; bar: foo^2 + baz");
(%o1)                    foo : 42
(%i2) parse_string ("(foo: 42, bar: foo^2 + baz)");
2
(%o2)          (foo : 42, bar : foo  + baz)```

See also `eval_string`.

```(%o1)                                true
(%i2) ```

### Related Examples

##### string

string(-3391/12256645...

Calculate

##### string

string(-3391/12256645...

Calculate

##### string

:lisp (setf my-string...

Calculate

##### string

string((-(spotRate+a*...

Calculate

##### string

string(4)+string(1/(3...

Calculate

##### string-subst

f:3;

d: a* b* z* w* e* i* ...

e:subst(f,a,d);

Calculate

##### string

string(-3617/10670622...

Calculate

##### string

a . a . b . b . b + a...

string (a . a . b . ...

Calculate

##### string

string(+1133171/56546...

Calculate

##### string

string(+537049/704217...

Calculate 