WolframExpr.string_to_wexpr
— Methodstring_to_wexpr(wolfram)
Convert a string to a MathLink.WExpr
.
Very shallow wrapper around MathLink
's parsing.
Examples
julia> using WolframExpr
julia> string_to_wexpr("Sin[1]")
-W"Sin"(1)
diff --git a/dev/index.html b/dev/index.html
index 08dd89d..70fb018 100644
--- a/dev/index.html
+++ b/dev/index.html
@@ -13,7 +13,7 @@
3.2 Convert a string to a Very shallow wrapper around Examples Convert a Wolfram expression from a Examples Convert a Wolfram expression from a ExamplesWolframExpr.string_to_wexpr
— Methodstring_to_wexpr(wolfram)
MathLink.WExpr
.MathLink
's parsing.julia> using WolframExpr
julia> string_to_wexpr("Sin[1]")
-W"Sin"(1)
WolframExpr.wexpr_to_expr
— Methodwexpr_to_expr(wolfram)
MathLink.WExpr
to a Julia expression.julia> using MathLink, WolframExpr
+W`Sin[1]`
WolframExpr.wexpr_to_expr
— Methodwexpr_to_expr(wolfram)
MathLink.WExpr
to a Julia expression.julia> using MathLink, WolframExpr
julia> wexpr_to_expr(W`1. + 1`)
-:(1.0 + 1)
Settings
This document was generated with Documenter.jl version 0.27.25 on Monday 15 January 2024. Using Julia version 1.10.0.