ToMathematicaExpression

Command: ToMathematicaExpression


Synopsis

any ToMathematicaExpression -> string

References

[1] The Mathematica Book
Description

An error is raised for unsupported SLI data types. In particular
the function also converts heterogeneous arrays and dictionaries.

File
lib/sli/mathematica.sli
Author
Diesmann
Remarks

The conversion of doubles does not yet guarantee the existence
of the decimal point and an appropriate number of digits.
Examples


[3.4 (hello) [2 3] ] ToMathematicaExpression -->
({ImportString["3.4" "List"][[1]] "hello" {2 3}})
<< /i 6 /s (hello) >> ToMathematicaExpression -->
({i -> 6 s -> "hello"})