1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

Ecmascript Syntax Fix

* module/language/ecmascript/parse.scm: allow empty function bodies.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Noah Lavine 2011-01-11 17:29:09 -05:00 committed by Ludovic Courtès
parent d9f24bc917
commit eacbe34618

View file

@ -85,7 +85,8 @@
(SourceElements SourceElement) : (if (and (pair? $1) (eq? (car $1) 'begin))
`(begin ,@(cdr $1) ,$2)
`(begin ,$1 ,$2)))
(FunctionBody (SourceElements) : $1)
(FunctionBody (SourceElements) : $1
() : '(begin))
(Statement (Block) : $1
(VariableStatement) : $1