summaryrefslogtreecommitdiff
path: root/src/GF/JavaScript/ParJS.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/GF/JavaScript/ParJS.y')
-rw-r--r--src/GF/JavaScript/ParJS.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GF/JavaScript/ParJS.y b/src/GF/JavaScript/ParJS.y
index 8f03fcd1c..b159d8790 100644
--- a/src/GF/JavaScript/ParJS.y
+++ b/src/GF/JavaScript/ParJS.y
@@ -122,6 +122,7 @@ Expr16 : Ident { EVar $1 }
| 'null' { ENull }
| 'this' { EThis }
| 'function' '(' ListIdent ')' '{' ListStmt '}' { EFun $3 (reverse $6) }
+ | '(' Expr ',' ListExpr ')' { eseq1_ $2 $4 }
| '(' Expr ')' { $2 }
@@ -201,5 +202,6 @@ happyError ts =
_ -> " before " ++ unwords (map prToken (take 4 ts))
myLexer = tokens
+eseq1_ x_ xs_ = ESeq (x_ : xs_)
}