diff options
Diffstat (limited to 'src/bind-gram.y')
-rw-r--r-- | src/bind-gram.y | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bind-gram.y b/src/bind-gram.y index fadd3f5..5acc780 100644 --- a/src/bind-gram.y +++ b/src/bind-gram.y @@ -108,6 +108,15 @@ simple : BIND_IDENT vallist ';' $$->ident = $1; $$->v.value = NULL; } + | '!' string ';' + { + $$ = grecs_node_create(grecs_node_stmt, + &grecs_current_locus); + $$->ident = grecs_strdup("!"); + $$->v.value = grecs_malloc(sizeof($$->v.value[0])); + $$->v.value->type = GRECS_TYPE_STRING; + $$->v.value->v.string = $2; + } ; block : BIND_IDENT tag '{' stmtlist '}' ';' |