From b19fd9d8772824d12d33a3236710a9b6e96bda76 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 10 Sep 2012 15:35:49 +0100 Subject: clean up parser warnings --- src/webidl-parser.y | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'src/webidl-parser.y') diff --git a/src/webidl-parser.y b/src/webidl-parser.y index b45a8bd..c6d981f 100644 --- a/src/webidl-parser.y +++ b/src/webidl-parser.y @@ -107,10 +107,20 @@ webidl_error(YYLTYPE *locp, struct webidl_node **winbind_ast, const char *str) %token TOK_JAVADOC %type Inheritance -%type InterfaceMembers %type Definitions %type Definition +%type Partial +%type Dictionary +%type Exception +%type Enum +%type Typedef +%type ImplementsStatement +%type Interface +%type InterfaceMembers +%type CallbackOrInterface +%type CallbackRest +%type CallbackRestOrInterface %% @@ -158,8 +168,12 @@ Definition: ; /* [3] */ -CallbackOrInterface: +CallbackOrInterface + : TOK_CALLBACK CallbackRestOrInterface + { + $$ = $2; + } | Interface ; @@ -175,6 +189,7 @@ CallbackRestOrInterface: Interface: TOK_INTERFACE TOK_IDENTIFIER Inheritance '{' InterfaceMembers '}' ';' { + $$ = NULL; } ; @@ -296,6 +311,10 @@ EnumValues: /* [23] - bug in w3c grammar? it doesnt list the equals as a terminal */ CallbackRest: TOK_IDENTIFIER '=' ReturnType '(' ArgumentList ')' ';' + { + $$ = NULL; + } + ; /* [24] */ Typedef: -- cgit v1.2.3