### The Maxima on-line user's manual

Algebra Calculator

#### 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

s : string(123);

ss;

Calculate

##### string

string("Da einer der ...

Calculate

##### string

string(+1/74724249600...

Calculate

##### string

string(-3617/10670622...

Calculate

a: xyz;

string(a);

Calculate

##### parse_string-string

parse_string(string(2...

Calculate

##### string

int:4;

string:32;

int+string+string+int...

Calculate

##### string

not sposition("=",str...

Calculate

##### string

a1:5;

StringOfAns:string(1*...

Calculate