diff options
author | Vincent Sanders <vince@kyllikki.org> | 2013-12-07 14:28:19 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-16 14:38:56 +0100 |
commit | 5755930ae93b6305b40620fff0e90bc2e4c64b46 (patch) | |
tree | bc2fefbc7c5a7fd405edb6dc24f27daaf4ec6dc4 /src/nsgenbind-parser.y | |
parent | 1e603c7225117c26e793a455a30b59d6d7551d5e (diff) | |
download | nsgenbind-5755930ae93b6305b40620fff0e90bc2e4c64b46.tar.gz nsgenbind-5755930ae93b6305b40620fff0e90bc2e4c64b46.tar.bz2 |
move binding type from explicit statement into declaration.
As a side effect the binding declaration changes and looses its (unused)
name/identifier
Diffstat (limited to 'src/nsgenbind-parser.y')
-rw-r--r-- | src/nsgenbind-parser.y | 13 |
1 files changed, 1 insertions, 12 deletions
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 <node> Binding %type <node> BindingArgs %type <node> BindingArg -%type <node> Type %type <node> Private %type <node> Internal %type <node> 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 ';' |