aboutsummaryrefslogtreecommitdiffstats
path: root/tool/lrama/template/bison/yacc.h
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-10-23 09:07:23 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-10-23 13:14:15 +0900
commit2d468358a516f575d013f07801079e0906c61f0c (patch)
tree609afdf2ba961d7c8079bb22ea4fe2b94500abcb /tool/lrama/template/bison/yacc.h
parentdd9b4851a335888f971f09322f25ed63c5b2f587 (diff)
downloadruby-2d468358a516f575d013f07801079e0906c61f0c.tar.gz
Lrama v0.5.7
Diffstat (limited to 'tool/lrama/template/bison/yacc.h')
-rw-r--r--tool/lrama/template/bison/yacc.h74
1 files changed, 1 insertions, 73 deletions
diff --git a/tool/lrama/template/bison/yacc.h b/tool/lrama/template/bison/yacc.h
index 932d6409db..848dbf5961 100644
--- a/tool/lrama/template/bison/yacc.h
+++ b/tool/lrama/template/bison/yacc.h
@@ -37,76 +37,4 @@
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */
-
-<%# b4_shared_declarations -%>
-<%# b4_shared_declarations -%>
- <%-# b4_cpp_guard_open([b4_spec_mapped_header_file]) -%>
- <%- if output.spec_mapped_header_file -%>
-#ifndef <%= output.b4_cpp_guard__b4_spec_mapped_header_file %>
-# define <%= output.b4_cpp_guard__b4_spec_mapped_header_file %>
- <%- end -%>
- <%-# b4_declare_yydebug & b4_YYDEBUG_define -%>
-/* Debug traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 0
-#endif
-#if YYDEBUG
-extern int yydebug;
-#endif
- <%-# b4_percent_code_get([[requires]]). %code is not supported -%>
-
- <%-# b4_token_enums_defines -%>
-/* Token kinds. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- enum yytokentype
- {
-<%= output.token_enums -%>
- };
- typedef enum yytokentype yytoken_kind_t;
-#endif
-
- <%-# b4_declare_yylstype -%>
- <%-# b4_value_type_define -%>
-/* Value type. */
-#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-union YYSTYPE
-{
-#line <%= output.grammar.union.lineno %> "<%= output.grammar_file_path %>"
-<%= output.grammar.union.braces_less_code %>
-#line [@oline@] [@ofile@]
-
-};
-typedef union YYSTYPE YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1
-# define YYSTYPE_IS_DECLARED 1
-#endif
-
- <%-# b4_location_type_define -%>
-/* Location type. */
-#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
-typedef struct YYLTYPE YYLTYPE;
-struct YYLTYPE
-{
- int first_line;
- int first_column;
- int last_line;
- int last_column;
-};
-# define YYLTYPE_IS_DECLARED 1
-# define YYLTYPE_IS_TRIVIAL 1
-#endif
-
-
-
-
- <%-# b4_declare_yyerror_and_yylex. Not supported -%>
- <%-# b4_declare_yyparse -%>
-int yyparse (<%= output.parse_param %>);
-
-
- <%-# b4_percent_code_get([[provides]]). %code is not supported -%>
- <%-# b4_cpp_guard_close([b4_spec_mapped_header_file]) -%>
- <%- if output.spec_mapped_header_file -%>
-#endif /* !<%= output.b4_cpp_guard__b4_spec_mapped_header_file %> */
- <%- end -%>
+<%= output.render_partial("bison/_yacc.h") %>