From 8b775d2a309a72729e08a0529717852605d82fe5 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 13 Sep 2012 18:24:12 +0100 Subject: fix linking into global chain --- src/webidl-parser.y | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/webidl-parser.y') diff --git a/src/webidl-parser.y b/src/webidl-parser.y index 788aff4..c899001 100644 --- a/src/webidl-parser.y +++ b/src/webidl-parser.y @@ -124,6 +124,8 @@ webidl_error(YYLTYPE *locp, struct webidl_node **winbind_ast, const char *str) %type ImplementsStatement %type Interface %type InterfaceMembers +%type InterfaceMember + %type CallbackOrInterface %type CallbackRest %type CallbackRestOrInterface @@ -133,7 +135,7 @@ webidl_error(YYLTYPE *locp, struct webidl_node **winbind_ast, const char *str) /* default rule to add built AST to passed in one */ Input: Definitions - { *webidl_ast = webidl_node_link(*webidl_ast, $1); } + { *webidl_ast = webidl_node_link($1, *webidl_ast); } | error { @@ -243,7 +245,7 @@ InterfaceMembers: | InterfaceMembers ExtendedAttributeList InterfaceMember { - $$ = NULL; + $$ = webidl_node_link($1, $3); } ; @@ -405,6 +407,9 @@ FloatLiteral: /* [30] */ AttributeOrOperation: TOK_STRINGIFIER StringifierAttributeOrOperation + { + $$ = $2; + } | Attribute | @@ -423,6 +428,8 @@ StringifierAttributeOrOperation: /* [32] */ Attribute: Inherit ReadOnly TOK_ATTRIBUTE Type TOK_IDENTIFIER ';' + { + } ; /* [33] */ -- cgit v1.2.3