From 314f147bff04c3b02e0f43b77e4b7a3f1fd9e433 Mon Sep 17 00:00:00 2001 From: meza Date: Tue, 29 Apr 2008 13:05:24 +0000 Subject: JS.cf : Changed the JS grammar to support strings as property names in objects. Changed pretty much all the files in the same folder as well as GFCCToJS.hs and SISR.hs to reflect the changes. --- src/GF/JavaScript/SkelJS.hs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/GF/JavaScript/SkelJS.hs') diff --git a/src/GF/JavaScript/SkelJS.hs b/src/GF/JavaScript/SkelJS.hs index fd4a88ebd..f8cd588a7 100644 --- a/src/GF/JavaScript/SkelJS.hs +++ b/src/GF/JavaScript/SkelJS.hs @@ -68,7 +68,13 @@ transExpr x = case x of transProperty :: Property -> Result transProperty x = case x of - Prop id expr -> failure x + Prop propertyname expr -> failure x + + +transPropertyName :: PropertyName -> Result +transPropertyName x = case x of + IdentPropName id -> failure x + StringPropName str -> failure x -- cgit v1.2.3