From 5755930ae93b6305b40620fff0e90bc2e4c64b46 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 7 Dec 2013 14:28:19 +0000 Subject: move binding type from explicit statement into declaration. As a side effect the binding declaration changes and looses its (unused) name/identifier --- src/nsgenbind-parser.y | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/nsgenbind-parser.y') diff --git a/src/nsgenbind-parser.y b/src/nsgenbind-parser.y index 46bc4f3..b9ec23b 100644 --- a/src/nsgenbind-parser.y +++ b/src/nsgenbind-parser.y @@ -81,7 +81,6 @@ char *errtxt; %type Binding %type BindingArgs %type BindingArg -%type Type %type Private %type Internal %type Interface @@ -265,7 +264,7 @@ Binding { $$ = genbind_new_node(GENBIND_NODE_TYPE_BINDING, NULL, - genbind_new_node(GENBIND_NODE_TYPE_IDENT, $4, $2)); + genbind_new_node(GENBIND_NODE_TYPE_TYPE, $4, $2)); } ; @@ -281,8 +280,6 @@ BindingArgs BindingArg : - Type - | Private | Internal @@ -292,14 +289,6 @@ BindingArg Property ; -Type - : - TOK_TYPE TOK_IDENTIFIER ';' - { - $$ = genbind_new_node(GENBIND_NODE_TYPE_TYPE, NULL, $2); - } - ; - Private : TOK_PRIVATE TOK_STRING_LITERAL TOK_IDENTIFIER ';' -- cgit v1.2.3