diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-28 16:39:04 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-28 16:39:04 +0300 |
commit | 00466520a845c0abd58ca7e98bc8bdbbe754702a (patch) | |
tree | c1e883f812a49f8908d38967d4d97f2a1d7cf197 /src | |
parent | a8e67c64aa6932f11fb81d5c3dd7ae613721edb8 (diff) | |
download | grecs-00466520a845c0abd58ca7e98bc8bdbbe754702a.tar.gz grecs-00466520a845c0abd58ca7e98bc8bdbbe754702a.tar.bz2 |
Bind: minor fix.
* src/bind-gram.y: Accept empty statement lists.
Diffstat (limited to 'src')
-rw-r--r-- | src/bind-gram.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bind-gram.y b/src/bind-gram.y index 7259e5d..c751ae1 100644 --- a/src/bind-gram.y +++ b/src/bind-gram.y @@ -130,12 +130,12 @@ simple : BIND_IDENT vallist ';' } ; -block : BIND_IDENT tag '{' stmtlist '}' ';' +block : BIND_IDENT tag '{' maybe_stmtlist '}' ';' { $$ = grecs_node_create(grecs_node_block, &$1.locus); $$->ident = $1.string; $$->v.value = $2; - grecs_node_bind($$, $4.head, 1); + grecs_node_bind($$, $4, 1); } | BIND_CONTROLS '{' ctlsub '}' ';' /* Special case: |