summaryrefslogtreecommitdiff
path: root/src/jscomp.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-03-26 18:26:50 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-03-26 18:26:50 -0400
commit754569fc0cf4affbf1227c44059352316a61fa24 (patch)
tree07c0072a1323075a100a6b42f0101ebbaa90f3c8 /src/jscomp.sml
parentdac2c194b1416d7710081d5c57c24d52e110a224 (diff)
Chat example working nicely, but without dead channel removal
Diffstat (limited to 'src/jscomp.sml')
-rw-r--r--src/jscomp.sml9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/jscomp.sml b/src/jscomp.sml
index 36d42754..f5627e24 100644
--- a/src/jscomp.sml
+++ b/src/jscomp.sml
@@ -48,7 +48,7 @@ val funcs = [(("Basis", "alert"), "alert"),
(("Basis", "stringToInt_error"), "pi"),
(("Basis", "urlifyInt"), "ts"),
(("Basis", "urlifyFloat"), "ts"),
- (("Basis", "urlifyString"), "escape"),
+ (("Basis", "urlifyString"), "uf"),
(("Basis", "urlifyChannel"), "ts"),
(("Basis", "recv"), "rv")]
@@ -345,9 +345,10 @@ fun process file =
@ ["}"]), st)
end
- | TFfi ("Basis", "string") => ("unesc(t[i++])", st)
+ | TFfi ("Basis", "string") => ("uu(t[i++])", st)
| TFfi ("Basis", "int") => ("parseInt(t[i++])", st)
| TFfi ("Basis", "float") => ("parseFloat(t[i++])", st)
+ | TFfi ("Basis", "channel") => ("parseInt(t[i++])", st)
| TFfi ("Basis", "bool") => ("t[i++] == \"True\"", st)
@@ -806,14 +807,14 @@ fun process file =
end
| ECase (e', pes, {result, ...}) =>
- if closedUpto inner e andalso List.all (fn (_, e) => closedUpto inner e) pes then
+ (*if closedUpto inner e andalso List.all (fn (_, e) => closedUpto inner e) pes then
let
val (e', st) = quoteExp result ((ERel 0, loc), st)
in
((ELet ("js", result, e, e'), loc),
st)
end
- else
+ else*)
let
val plen = length pes