diff options
| author | bringert <bringert@cs.chalmers.se> | 2006-12-21 16:48:46 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2006-12-21 16:48:46 +0000 |
| commit | a335b29c0a85ea81ee1017f18dd6f2595d2a5227 (patch) | |
| tree | e0b4d7356c3bf5cb82e9d7e11ff9e4d3e5f4e764 /src/GF/JavaScript/JS.cf | |
| parent | 51df5b8a8d562a3ac4b280b37e7ab04279e22d04 (diff) | |
Meta variables are now treated as functions with name ? in SISR, VoiceXML and JavaScript linearization. VoiceXML now returns the partial result when update() is false.
Diffstat (limited to 'src/GF/JavaScript/JS.cf')
| -rw-r--r-- | src/GF/JavaScript/JS.cf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GF/JavaScript/JS.cf b/src/GF/JavaScript/JS.cf index 1402d9511..58233ed74 100644 --- a/src/GF/JavaScript/JS.cf +++ b/src/GF/JavaScript/JS.cf @@ -15,7 +15,7 @@ SDeclOrExpr. Stmt ::= DeclOrExpr ";" ; separator Stmt "" ; Decl. DeclOrExpr ::= "var" [DeclVar]; -DExpr. DeclOrExpr ::= Expr ; +DExpr. DeclOrExpr ::= Expr1 ; DVar. DeclVar ::= Ident ; DInit. DeclVar ::= Ident "=" Expr ; @@ -39,6 +39,7 @@ ENull. Expr16 ::= "null" ; EThis. Expr16 ::= "this" ; EFun. Expr16 ::= "function" "(" [Ident] ")" "{" [Stmt] "}" ; EArray. Expr16 ::= "[" [Expr] "]" ; +EObj. Expr16 ::= "{" [Property] "}" ; eseq1. Expr16 ::= "(" Expr "," [Expr] ")"; internal ESeq. Expr16 ::= "(" [Expr] ")" ; @@ -47,3 +48,5 @@ define eseq1 x xs = ESeq (x:xs); separator Expr "," ; coercions Expr 16 ; +Prop. Property ::= Ident ":" Expr ; +separator Property "," ;
\ No newline at end of file |
