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