maple-割り当てた変数をsaveする
すべてのuser-assigned variablesの値をsaveする方法
parse(sprintf("save %q,\"myfile.txt\";",
anames(user)),statement);
If you've used names beginning with an underscore or containing forward slashes, try "alluser" instead of "user". See the help page ?anames.
http://www.mapleprimes.com/questions/41020-How-To-Save-All-Variables-In-The-Workspace