File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
**********************************************************************/
10
10
11
+ %%
12
+
11
13
// -------------------------------------------------------------------
12
14
// Options
13
15
138
140
%rule separated_list(separator, X)
139
141
: option(separated_nonempty_list(separator, X))
140
142
;
141
-
142
- %%
143
-
144
- %union{};
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ extern int yydebug;
28
28
< %- # b4_declare_yylstype -%>
29
29
< %- # b4_value_type_define -%>
30
30
/* Value type. */
31
+ < % if output .grammar .union %>
31
32
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
32
33
union YYSTYPE
33
34
{
@@ -40,6 +41,13 @@ typedef union YYSTYPE YYSTYPE;
40
41
# define YYSTYPE_IS_TRIVIAL 1
41
42
# define YYSTYPE_IS_DECLARED 1
42
43
#endif
44
+ < % else %>
45
+ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
46
+ typedef int YYSTYPE ;
47
+ # define YYSTYPE_IS_TRIVIAL 1
48
+ # define YYSTYPE_IS_DECLARED 1
49
+ #endif
50
+ < % end %>
43
51
44
52
< %- # b4_location_type_define -%>
45
53
/* Location type. */
You can’t perform that action at this time.
0 commit comments