diff options
author | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-09-13 17:33:21 +0100 |
---|---|---|
committer | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-09-13 17:33:21 +0100 |
commit | deadfe6cfb87ee537ed38e0ce87601f492078aab (patch) | |
tree | 9a3178955ae42f3ee7d7223fbb71d505b16fa6f7 /src/webidl-parser.y | |
parent | eeaa03bf10aa41656b798ef8df7f42140c66e766 (diff) | |
download | nsgenbind-deadfe6cfb87ee537ed38e0ce87601f492078aab.tar.gz nsgenbind-deadfe6cfb87ee537ed38e0ce87601f492078aab.tar.bz2 |
add debug dump to webidl
Diffstat (limited to 'src/webidl-parser.y')
-rw-r--r-- | src/webidl-parser.y | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/webidl-parser.y b/src/webidl-parser.y index 2fd907f..788aff4 100644 --- a/src/webidl-parser.y +++ b/src/webidl-parser.y @@ -110,8 +110,14 @@ webidl_error(YYLTYPE *locp, struct webidl_node **winbind_ast, const char *str) %type <node> Definitions %type <node> Definition + %type <node> Partial +%type <node> PartialDefinition +%type <node> PartialInterface + %type <node> Dictionary +%type <node> PartialDictionary + %type <node> Exception %type <node> Enum %type <node> Typedef @@ -208,6 +214,9 @@ Interface: /* [6] */ Partial: TOK_PARTIAL PartialDefinition + { + $$ = $2; + } ; /* [7] */ @@ -220,6 +229,9 @@ PartialDefinition: /* [8] */ PartialInterface: TOK_INTERFACE TOK_IDENTIFIER '{' InterfaceMembers '}' ';' + { + $$=NULL; + } ; /* [9] slightly altered from original grammar to be left recursive */ @@ -245,6 +257,9 @@ InterfaceMember: /* [11] */ Dictionary: TOK_DICTIONARY TOK_IDENTIFIER Inheritance '{' DictionaryMembers '}' ';' + { + $$ = NULL; + } ; /* [12] */ @@ -262,6 +277,9 @@ DictionaryMember: /* [14] */ PartialDictionary: TOK_DICTIONARY TOK_IDENTIFIER '{' DictionaryMembers '}' ';' + { + $$=NULL; + } /* [15] */ Default: @@ -281,6 +299,9 @@ DefaultValue: /* [17] */ Exception: TOK_EXCEPTION TOK_IDENTIFIER Inheritance '{' ExceptionMembers '}' ';' + { + $$ = NULL; + } ; /* [18] */ @@ -306,6 +327,9 @@ Inheritance: /* [20] */ Enum: TOK_ENUM TOK_IDENTIFIER '{' EnumValueList '}' ';' + { + $$ = NULL; + } ; /* [21] */ @@ -331,11 +355,17 @@ CallbackRest: /* [24] */ Typedef: TOK_TYPEDEF ExtendedAttributeList Type TOK_IDENTIFIER ';' + { + $$ = NULL; + } ; /* [25] */ ImplementsStatement: TOK_IDENTIFIER TOK_IMPLEMENTS TOK_IDENTIFIER ';' + { + $$ = NULL; + } ; /* [26] */ |