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

Unified Diff: ppapi/generators/test_parser/enum.idl

Issue 8161006: Allow enum values in IDL files to be simple arithmetic expressions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months 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
« ppapi/generators/idl_parser.py ('K') | « ppapi/generators/test_lex.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/test_parser/enum.idl
===================================================================
--- ppapi/generators/test_parser/enum.idl (revision 104195)
+++ ppapi/generators/test_parser/enum.idl (working copy)
@@ -62,3 +62,29 @@
/* OK EnumItem(E15) */
E15 = 0x400
};
+
+/* OK Enum(Es9) */
+enum Es9 {
+ Es9_1 = 0,
noelallen1 2011/10/06 20:51:44 Should mark these as /* OK EnumItem(Es9_1) */ ...
bbudge 2011/10/07 00:04:52 Done.
+ Es9_2 = Es9_1,
+ Es9_3 = Es9_1 << Es9_2,
+ /* FAIL Unexpected symbol Es9_2 after symbol Es9_1. */
+ Es9_3a = Es9_1 Es9_2,
+ Es9_4 = Es9_1 >> Es9_2,
+ Es9_5 = Es9_1 | Es9_2,
+ Es9_6 = Es9_1 & Es9_2,
+ Es9_7 = Es9_1 ^ Es9_2,
+ Es9_8 = Es9_1 + Es9_2,
+ Es9_9 = Es9_1 - Es9_2,
+ Es9_10 = Es9_1 * Es9_2,
+ Es9_11 = Es9_1 / Es9_2,
+ Es9_12 = -Es9_1,
+ Es9_13 = ~Es9_1,
+ Es9_14 = (Es9_1),
+ /* FAIL Unexpected ,. */
+ Es9_14a = (Es9_1,
+ Es9_15 = (Es9_1 + Es9_2) << Es9_3 + 1,
+ Es9_16 = Es9_1 + -Es9_2
+};
+
+
« ppapi/generators/idl_parser.py ('K') | « ppapi/generators/test_lex.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698