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/JS.cf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/GF/JavaScript/JS.cf') diff --git a/src/GF/JavaScript/JS.cf b/src/GF/JavaScript/JS.cf index 58233ed74..fe31a2074 100644 --- a/src/GF/JavaScript/JS.cf +++ b/src/GF/JavaScript/JS.cf @@ -48,5 +48,8 @@ define eseq1 x xs = ESeq (x:xs); separator Expr "," ; coercions Expr 16 ; -Prop. Property ::= Ident ":" Expr ; -separator Property "," ; \ No newline at end of file +Prop. Property ::= PropertyName ":" Expr ; +separator Property "," ; + +IdentPropName. PropertyName ::= Ident ; +StringPropName. PropertyName ::= String ; -- cgit v1.2.3