ToMathematicaExpression


Name:
ToMathematicaExpression - converts SLI data to Mathematica input
Synopsis:
 
any ToMathematicaExpression -> string

Examples:
 

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

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

Remarks:
 
The conversion of doubles does not yet guarantee the existence
of the decimal point and an appropriate number of digits.
References:
 
[1] The Mathematica Book
Author:
Diesmann  
Source:
/home/graber/work-nest/nest-git/nest-simulator/lib/sli/mathematica.sli