1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 Use of this source code is governed by a BSD-style license that can be
3 found in the LICENSE file. */
5 /* Test Enum productions
7 Run with --test to generate an AST and verify that all comments accurately
8 reflect the state of the Nodes.
11 This comment signals that a node of type <Type> is created with the
15 This comment signals that a error of <Error String> is generated. The error
16 is not assigned to a node, but are expected in order.
19 This comment signals that a property has been set on the Node such that
28 This comment signals that a tree of nodes matching the BUILD comment
29 symatics should exist. This is an exact match.
39 /* BUILD EnumItem (rice) */
41 /* BUILD EnumItem (noodles) */
43 /* BUILD EnumItem(other) */
47 /* BUILD Error(Enum missing name.) */
48 /* ERROR Enum missing name. */
62 /* BUILD EnumItem(rice) */
64 /* BUILD EnumItem(noodles) */
66 /* BUILD EnumItem(other) */
82 /* BUILD Error(Unexpected string "noodles" after string "rice".) */
83 /* ERROR Unexpected string "noodles" after string "rice". */
90 /* BUILD Error(Unexpected "," after ",".) */
91 /* ERROR Unexpected "," after ",". */
98 /* BUILD Error(Unexpected keyword "interface" after "{".) */
99 /* ERROR Unexpected keyword "interface" after "{". */
106 /* BUILD Error(Unexpected identifier "somename" after "{".) */
107 /* ERROR Unexpected identifier "somename" after "{". */
114 /* BUILD Enum(MealType3) */
116 /* BUILD EnumItem(rice) */
118 /* BUILD EnumItem(noodles) */
120 /* BUILD EnumItem(other) */