[BZ #6020]
[glibc/pb-stable.git] / locale / programs / locfile-token.h
blobaba0c0ef6b37f7a3a49fb265dbd41f7034bb2f20
1 /* Copyright (C) 1996-2000,2005,2007 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 #ifndef _TOKEN_H
20 #define _TOKEN_H
22 enum token_t
24 tok_none = 0,
26 tok_eof,
27 tok_eol,
28 tok_bsymbol,
29 tok_ident,
30 tok_ellipsis2,
31 tok_ellipsis3,
32 tok_ellipsis4,
33 tok_ellipsis2_2,
34 tok_ellipsis4_2,
35 tok_semicolon,
36 tok_comma,
37 tok_open_brace,
38 tok_close_brace,
39 tok_charcode,
40 tok_ucs4,
41 tok_number,
42 tok_minus1,
43 tok_string,
44 tok_include,
46 tok_escape_char,
47 tok_comment_char,
48 tok_charmap,
49 tok_end,
50 tok_g0esc,
51 tok_g1esc,
52 tok_g2esc,
53 tok_g3esc,
54 tok_escseq,
55 tok_addset,
57 tok_charids,
59 tok_code_set_name,
60 tok_mb_cur_max,
61 tok_mb_cur_min,
62 tok_charconv,
63 tok_width,
64 tok_width_variable,
65 tok_width_default,
66 tok_repertoiremap,
68 tok_lc_ctype,
69 tok_copy,
70 /* Keep the following entries up to the next comment in this order! */
71 tok_upper,
72 tok_lower,
73 tok_alpha,
74 tok_digit,
75 tok_xdigit,
76 tok_space,
77 tok_print,
78 tok_graph,
79 tok_blank,
80 tok_cntrl,
81 tok_punct,
82 tok_alnum,
83 /* OK, shuffling allowed again. */
84 tok_outdigit,
85 tok_charclass,
86 tok_class,
87 tok_toupper,
88 tok_tolower,
89 tok_map,
90 tok_translit_start,
91 tok_translit_end,
92 tok_translit_ignore,
93 tok_default_missing,
94 tok_lc_collate,
95 tok_coll_weight_max,
96 tok_section_symbol,
97 tok_collating_element,
98 tok_collating_symbol,
99 tok_symbol_equivalence,
100 tok_script,
101 tok_order_start,
102 tok_order_end,
103 tok_from,
104 tok_forward,
105 tok_backward,
106 tok_position,
107 tok_undefined,
108 tok_ignore,
109 tok_reorder_after,
110 tok_reorder_end,
111 tok_reorder_sections_after,
112 tok_reorder_sections_end,
113 tok_define,
114 tok_undef,
115 tok_ifdef,
116 tok_ifndef,
117 tok_else,
118 tok_elifdef,
119 tok_elifndef,
120 tok_endif,
121 tok_lc_monetary,
122 tok_int_curr_symbol,
123 tok_currency_symbol,
124 tok_mon_decimal_point,
125 tok_mon_thousands_sep,
126 tok_mon_grouping,
127 tok_positive_sign,
128 tok_negative_sign,
129 tok_int_frac_digits,
130 tok_frac_digits,
131 tok_p_cs_precedes,
132 tok_p_sep_by_space,
133 tok_n_cs_precedes,
134 tok_n_sep_by_space,
135 tok_p_sign_posn,
136 tok_n_sign_posn,
137 tok_int_p_cs_precedes,
138 tok_int_p_sep_by_space,
139 tok_int_n_cs_precedes,
140 tok_int_n_sep_by_space,
141 tok_int_p_sign_posn,
142 tok_int_n_sign_posn,
143 tok_duo_int_curr_symbol,
144 tok_duo_currency_symbol,
145 tok_duo_int_frac_digits,
146 tok_duo_frac_digits,
147 tok_duo_p_cs_precedes,
148 tok_duo_p_sep_by_space,
149 tok_duo_n_cs_precedes,
150 tok_duo_n_sep_by_space,
151 tok_duo_int_p_cs_precedes,
152 tok_duo_int_p_sep_by_space,
153 tok_duo_int_n_cs_precedes,
154 tok_duo_int_n_sep_by_space,
155 tok_duo_p_sign_posn,
156 tok_duo_n_sign_posn,
157 tok_duo_int_p_sign_posn,
158 tok_duo_int_n_sign_posn,
159 tok_uno_valid_from,
160 tok_uno_valid_to,
161 tok_duo_valid_from,
162 tok_duo_valid_to,
163 tok_conversion_rate,
164 tok_lc_numeric,
165 tok_decimal_point,
166 tok_thousands_sep,
167 tok_grouping,
168 tok_lc_time,
169 tok_abday,
170 tok_day,
171 tok_abmon,
172 tok_mon,
173 tok_d_t_fmt,
174 tok_d_fmt,
175 tok_t_fmt,
176 tok_am_pm,
177 tok_t_fmt_ampm,
178 tok_era,
179 tok_era_year,
180 tok_era_d_fmt,
181 tok_era_d_t_fmt,
182 tok_era_t_fmt,
183 tok_alt_digits,
184 tok_week,
185 tok_first_weekday,
186 tok_first_workday,
187 tok_cal_direction,
188 tok_timezone,
189 tok_date_fmt,
190 tok_lc_messages,
191 tok_yesexpr,
192 tok_noexpr,
193 tok_yesstr,
194 tok_nostr,
195 tok_lc_paper,
196 tok_height,
197 tok_lc_name,
198 tok_name_fmt,
199 tok_name_gen,
200 tok_name_mr,
201 tok_name_mrs,
202 tok_name_miss,
203 tok_name_ms,
204 tok_lc_address,
205 tok_postal_fmt,
206 tok_country_name,
207 tok_country_post,
208 tok_country_ab2,
209 tok_country_ab3,
210 tok_country_num,
211 tok_country_car,
212 tok_country_isbn,
213 tok_lang_name,
214 tok_lang_ab,
215 tok_lang_term,
216 tok_lang_lib,
217 tok_lc_telephone,
218 tok_tel_int_fmt,
219 tok_tel_dom_fmt,
220 tok_int_select,
221 tok_int_prefix,
222 tok_lc_measurement,
223 tok_measurement,
224 tok_lc_identification,
225 tok_title,
226 tok_source,
227 tok_address,
228 tok_contact,
229 tok_email,
230 tok_tel,
231 tok_fax,
232 tok_language,
233 tok_territory,
234 tok_audience,
235 tok_application,
236 tok_abbreviation,
237 tok_revision,
238 tok_date,
239 tok_category,
241 tok_error
245 struct keyword_t
247 const char *name;
248 enum token_t token;
249 int symname_or_ident;
251 /* Only for locdef file. */
252 int locale;
253 enum token_t base;
254 enum token_t group;
255 enum token_t list;
259 #endif /* token.h */