Ruby: tool/lrama/template/bison/_yacc.h Source File

Ruby 3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)

_yacc.h
1<%# b4_shared_declarations -%>
2 <%-# b4_cpp_guard_open([b4_spec_mapped_header_file]) -%>
3 <%- if output.spec_mapped_header_file -%>
4#ifndef <%= output.b4_cpp_guard__b4_spec_mapped_header_file %>
5# define <%= output.b4_cpp_guard__b4_spec_mapped_header_file %>
6 <%- end -%>
7 <%-# b4_declare_yydebug & b4_YYDEBUG_define -%>
8/* Debug traces. */
9#ifndef YYDEBUG
10# define YYDEBUG 0
11#endif
12#if YYDEBUG && !defined(yydebug)
13extern int yydebug;
14#endif
15<%= output.percent_code("requires") %>
16
17 <%-# b4_token_enums_defines -%>
18/* Token kinds. */
19#ifndef YYTOKENTYPE
20# define YYTOKENTYPE
21 enum yytokentype
22 {
23<%= output.token_enums -%>
24 };
25 typedef enum yytokentype yytoken_kind_t;
26#endif
27
28 <%-# b4_declare_yylstype -%>
29 <%-# b4_value_type_define -%>
30/* Value type. */
31#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
32union YYSTYPE
33{
34#line <%= output.grammar.union.lineno %> "<%= output.grammar_file_path %>"
35<%= output.grammar.union.braces_less_code %>
36#line [@oline@] [@ofile@]
37
38};
39typedef union YYSTYPE YYSTYPE;
40# define YYSTYPE_IS_TRIVIAL 1
41# define YYSTYPE_IS_DECLARED 1
42#endif
43
44 <%-# b4_location_type_define -%>
45/* Location type. */
46#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
47typedef struct YYLTYPE YYLTYPE;
48struct YYLTYPE
49{
50 int first_line;
51 int first_column;
52 int last_line;
53 int last_column;
54};
55# define YYLTYPE_IS_DECLARED 1
56# define YYLTYPE_IS_TRIVIAL 1
57#endif
58
59
60
61
62 <%-# b4_declare_yyerror_and_yylex. Not supported -%>
63 <%-# b4_declare_yyparse -%>
64int yyparse (<%= output.parse_param %>);
65
66
67<%= output.percent_code("provides") %>
68 <%-# b4_cpp_guard_close([b4_spec_mapped_header_file]) -%>
69 <%- if output.spec_mapped_header_file -%>
70#endif /* !<%= output.b4_cpp_guard__b4_spec_mapped_header_file %> */
71 <%- end -%>
YYLTYPE
Definition parse.h:225
YYSTYPE
Definition parse.h:192