1 /* A Bison parser, made by GNU Bison 3.8.2. */
2
3 /* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
6 Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20
21 /* As a special exception, you may create a larger work that contains
22 part or all of the Bison parser skeleton and distribute that work
23 under terms of your choice, so long as that work isn't itself a
24 parser generator using the skeleton or a modified version thereof
25 as a parser skeleton. Alternatively, if you modify or redistribute
26 the parser skeleton itself, you may (at your option) remove this
27 special exception, which will cause the skeleton and the resulting
28 Bison output files to be licensed under the GNU General Public
29 License without this special exception.
30
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
33
34 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35 especially those whose name start with YY_ or po_gram__. They are
36 private implementation details that can be changed or removed. */
37
38 #ifndef YY_PO_GRAM_PO_GRAM_GEN_TAB_H_INCLUDED
39 # define YY_PO_GRAM_PO_GRAM_GEN_TAB_H_INCLUDED
40 /* Debug traces. */
41 #ifndef PO_GRAM_DEBUG
42 # if defined YYDEBUG
43 #if YYDEBUG
44 # define PO_GRAM_DEBUG 1
45 # else
46 # define PO_GRAM_DEBUG 0
47 # endif
48 # else /* ! defined YYDEBUG */
49 # define PO_GRAM_DEBUG 0
50 # endif /* ! defined YYDEBUG */
51 #endif /* ! defined PO_GRAM_DEBUG */
52 #if PO_GRAM_DEBUG
53 extern DLL_VARIABLE int po_gram_debug;
54 #endif
55
56 /* Token kinds. */
57 #ifndef PO_GRAM_TOKENTYPE
58 # define PO_GRAM_TOKENTYPE
59 enum po_gram_tokentype
60 {
61 PO_GRAM_EMPTY = -2,
62 PO_GRAM_EOF = 0, /* "end of file" */
63 PO_GRAM_error = 256, /* error */
64 PO_GRAM_UNDEF = 257, /* "invalid token" */
65 COMMENT = 258, /* COMMENT */
66 DOMAIN = 259, /* DOMAIN */
67 JUNK = 260, /* JUNK */
68 PREV_MSGCTXT = 261, /* PREV_MSGCTXT */
69 PREV_MSGID = 262, /* PREV_MSGID */
70 PREV_MSGID_PLURAL = 263, /* PREV_MSGID_PLURAL */
71 PREV_STRING = 264, /* PREV_STRING */
72 MSGCTXT = 265, /* MSGCTXT */
73 MSGID = 266, /* MSGID */
74 MSGID_PLURAL = 267, /* MSGID_PLURAL */
75 MSGSTR = 268, /* MSGSTR */
76 NAME = 269, /* NAME */
77 NUMBER = 270, /* NUMBER */
78 STRING = 271 /* STRING */
79 };
80 typedef enum po_gram_tokentype po_gram_token_kind_t;
81 #endif
82
83 /* Value type. */
84 #if ! defined PO_GRAM_STYPE && ! defined PO_GRAM_STYPE_IS_DECLARED
85 union PO_GRAM_STYPE
86 {
87 #line 103 "po-gram-gen.y"
88
89 struct { char *string; lex_pos_ty pos; bool obsolete; } string;
90 struct { string_list_ty stringlist; lex_pos_ty pos; bool obsolete; } stringlist;
91 struct { long number; lex_pos_ty pos; bool obsolete; } number;
92 struct { lex_pos_ty pos; bool obsolete; } pos;
93 struct { char *ctxt; char *id; char *id_plural; lex_pos_ty pos; bool obsolete; } prev;
94 struct { char *prev_ctxt; char *prev_id; char *prev_id_plural; char *ctxt; lex_pos_ty pos; bool obsolete; } message_intro;
95 struct { struct msgstr_def rhs; lex_pos_ty pos; bool obsolete; } rhs;
96
97 #line 98 "po-gram-gen2.h"
98
99 };
100 typedef union PO_GRAM_STYPE PO_GRAM_STYPE;
101 # define PO_GRAM_STYPE_IS_TRIVIAL 1
102 # define PO_GRAM_STYPE_IS_DECLARED 1
103 #endif
104
105
106 extern DLL_VARIABLE PO_GRAM_STYPE po_gram_lval;
107
108
109 int po_gram_parse (void);
110
111
112 #endif /* !YY_PO_GRAM_PO_GRAM_GEN_TAB_H_INCLUDED */