summaryrefslogtreecommitdiff
path: root/src/GF
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2007-01-07 17:18:50 +0000
committerbringert <bringert@cs.chalmers.se>2007-01-07 17:18:50 +0000
commit37760cb24c2e0c3b7e13d2c531afd8f2b9174e6d (patch)
treead6667e88fb97c4859e535c18b672f264e524df7 /src/GF
parentefb806f22608d9e82ad80e733c20449c80f4c0a6 (diff)
JavaSscript and SISR abstract syntax now uses an array for the node children, instead of cheesy argN fields.
Diffstat (limited to 'src/GF')
-rw-r--r--src/GF/Speech/SISR.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GF/Speech/SISR.hs b/src/GF/Speech/SISR.hs
index b74b44076..9e926c72f 100644
--- a/src/GF/Speech/SISR.hs
+++ b/src/GF/Speech/SISR.hs
@@ -82,7 +82,7 @@ field x y = JS.EMember x (JS.Ident y)
ass = JS.EAssign
-tree n xs = obj $ [("name", JS.EStr n)] ++ [("arg"++show i, x) | (i,x) <- zip [0..] xs]
+tree n xs = obj [("name", JS.EStr n), ("children", JS.EArray xs)]
obj ps = JS.EObj [JS.Prop (JS.Ident x) y | (x,y) <- ps]