add function in imperative shell to save export string, and fix errors in generating export string from functional core
This commit is contained in:
@@ -525,7 +525,7 @@ struct
|
||||
val b = colToRealString b
|
||||
|
||||
val x = String.concat ["(((x + ", x, ") - halfWidth) / halfWidth)"]
|
||||
val y = String.concat ["(~(y + ", y, ") - halfHeight) / halfHeight)"]
|
||||
val y = String.concat ["((~(y + ", y, ") - halfHeight) / halfHeight)"]
|
||||
|
||||
val ex = String.concat
|
||||
[ "((((("
|
||||
@@ -570,7 +570,7 @@ struct
|
||||
val bintree = merge (qtree, squares)
|
||||
|
||||
val coords = BinTree.foldr (toExportStringFolder, bintree, [])
|
||||
val coords = String.concatWith "," coords
|
||||
val coords = String.concatWith ",\n" coords
|
||||
|
||||
val header = String.concat
|
||||
[ "structure AAA = \nstruct\n"
|
||||
@@ -582,7 +582,7 @@ struct
|
||||
, " #[\n"
|
||||
]
|
||||
|
||||
val footer = String.concat [" ]\n", " end\n", "end\n"]
|
||||
val footer = String.concat ["\n ]\n", " end\n", "end\n"]
|
||||
in
|
||||
String.concat [header, coords, footer]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user