aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2010-06-04 21:53:53 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2010-06-04 21:53:53 +0200
commita356b5866bd96596e174467997ef7ae4041a98e1 (patch)
tree3c7b2191507071aea3dbbaa4dc72863260162e50
parent190a03f8b49d8d8aecc8a703f2463d6ff7caf2c0 (diff)
CodeGen.m: Add Quote function for conveniently adding double quotes
-rw-r--r--Tools/CodeGen/CodeGen.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/CodeGen/CodeGen.m b/Tools/CodeGen/CodeGen.m
index 13f8ecc..7cae5fb 100644
--- a/Tools/CodeGen/CodeGen.m
+++ b/Tools/CodeGen/CodeGen.m
@@ -124,6 +124,7 @@ GenericGridLoop::usage = "";
NameRoot::usage = "";
PartitionVarList::usage = "";
+Quote::usage = "Quote[x] returns x surrounded by quotes";
Begin["`Private`"];
@@ -1014,7 +1015,7 @@ CSE[code_] := Module[
]
];
-
+Quote[x_] := {"\"", x, "\""};
End[];