parse.h revision 1.3 1 /* $NetBSD: parse.h,v 1.3 2023/06/19 21:41:42 christos Exp $ */
2
3 /* A Bison parser, made by GNU Bison 3.8.2. */
4
5 /* Bison interface for Yacc-like parsers in C
6
7 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
8 Inc.
9
10 This program is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <https://www.gnu.org/licenses/>. */
22
23 /* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
32
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
35
36 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
37 especially those whose name start with YY_ or yy_. They are
38 private implementation details that can be changed or removed. */
39
40 #ifndef YY_YY_PARSE_H_INCLUDED
41 # define YY_YY_PARSE_H_INCLUDED
42 /* Debug traces. */
43 #ifndef YYDEBUG
44 # define YYDEBUG 0
45 #endif
46 #if YYDEBUG
47 extern int yydebug;
48 #endif
49
50 /* Token kinds. */
51 #ifndef YYTOKENTYPE
52 # define YYTOKENTYPE
53 enum yytokentype
54 {
55 YYEMPTY = -2,
56 YYEOF = 0, /* "end of file" */
57 YYerror = 256, /* error */
58 YYUNDEF = 257, /* "invalid token" */
59 ET = 258, /* ET */
60 INDEX = 259, /* INDEX */
61 PREFIX = 260, /* PREFIX */
62 EC = 261, /* EC */
63 ID = 262, /* ID */
64 END = 263, /* END */
65 STRING = 264, /* STRING */
66 NUMBER = 265 /* NUMBER */
67 };
68 typedef enum yytokentype yytoken_kind_t;
69 #endif
70 /* Token kinds. */
71 #define YYEMPTY -2
72 #define YYEOF 0
73 #define YYerror 256
74 #define YYUNDEF 257
75 #define ET 258
76 #define INDEX 259
77 #define PREFIX 260
78 #define EC 261
79 #define ID 262
80 #define END 263
81 #define STRING 264
82 #define NUMBER 265
83
84 /* Value type. */
85 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
86 union YYSTYPE
87 {
88 #line 54 "parse.y"
89
90 char *string;
91 int number;
92
93 #line 92 "parse.h"
94
95 };
96 typedef union YYSTYPE YYSTYPE;
97 # define YYSTYPE_IS_TRIVIAL 1
98 # define YYSTYPE_IS_DECLARED 1
99 #endif
100
101
102 extern YYSTYPE yylval;
103
104
105 int yyparse (void);
106
107
108 #endif /* !YY_YY_PARSE_H_INCLUDED */
109