Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: ppapi/generators/idl_parser.py

Issue 101623003: PPAPI idl parser was missing error handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PPAPI dictionary error handling support Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | ppapi/generators/test_parser/dictionary.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/idl_parser.py
diff --git a/ppapi/generators/idl_parser.py b/ppapi/generators/idl_parser.py
index 6f0ea12436697fc419e75faa3a71dfa687a3a9ac..8c8a82ff2f79f7e803c5cd90506f09b4ab2c385e 100755
--- a/ppapi/generators/idl_parser.py
+++ b/ppapi/generators/idl_parser.py
@@ -310,6 +310,14 @@ class IDLParser(IDLLexer):
"""dictionary_block : modifiers DICTIONARY SYMBOL '{' struct_list '}' ';'"""
p[0] = self.BuildNamed('Dictionary', p, 3, ListFromConcat(p[1], p[5]))
+ def p_dictionary_errorA(self, p):
+ """dictionary_block : modifiers DICTIONARY error ';'"""
+ p[0] = []
+
+ def p_dictionary_errorB(self, p):
+ """dictionary_block : modifiers DICTIONARY error '{' struct_list '}' ';'"""
+ p[0] = []
+
#
# Callback
#
« no previous file with comments | « AUTHORS ('k') | ppapi/generators/test_parser/dictionary.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698