summaryrefslogtreecommitdiffabout
path: root/src/bind-gram.y
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-28 13:39:04 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-05-28 13:39:04 (GMT)
commit00466520a845c0abd58ca7e98bc8bdbbe754702a (patch) (side-by-side diff)
treec1e883f812a49f8908d38967d4d97f2a1d7cf197 /src/bind-gram.y
parenta8e67c64aa6932f11fb81d5c3dd7ae613721edb8 (diff)
downloadgrecs-00466520a845c0abd58ca7e98bc8bdbbe754702a.tar.gz
grecs-00466520a845c0abd58ca7e98bc8bdbbe754702a.tar.bz2
Bind: minor fix.
* src/bind-gram.y: Accept empty statement lists.
Diffstat (limited to 'src/bind-gram.y') (more/less context) (ignore whitespace changes)
-rw-r--r--src/bind-gram.y4
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:

Return to:

Send suggestions and report system problems to the System administrator.