Back to index

glibc  2.9
locfile-token.h
Go to the documentation of this file.
00001 /* Copyright (C) 1996-2000,2005,2007 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003    Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
00004 
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published
00007    by the Free Software Foundation; version 2 of the License, or
00008    (at your option) any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software Foundation,
00017    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00018 
00019 #ifndef _TOKEN_H
00020 #define _TOKEN_H
00021 
00022 enum token_t
00023 {
00024   tok_none = 0,
00025 
00026   tok_eof,
00027   tok_eol,
00028   tok_bsymbol,
00029   tok_ident,
00030   tok_ellipsis2,
00031   tok_ellipsis3,
00032   tok_ellipsis4,
00033   tok_ellipsis2_2,
00034   tok_ellipsis4_2,
00035   tok_semicolon,
00036   tok_comma,
00037   tok_open_brace,
00038   tok_close_brace,
00039   tok_charcode,
00040   tok_ucs4,
00041   tok_number,
00042   tok_minus1,
00043   tok_string,
00044   tok_include,
00045 
00046   tok_escape_char,
00047   tok_comment_char,
00048   tok_charmap,
00049   tok_end,
00050   tok_g0esc,
00051   tok_g1esc,
00052   tok_g2esc,
00053   tok_g3esc,
00054   tok_escseq,
00055   tok_addset,
00056 
00057   tok_charids,
00058 
00059   tok_code_set_name,
00060   tok_mb_cur_max,
00061   tok_mb_cur_min,
00062   tok_charconv,
00063   tok_width,
00064   tok_width_variable,
00065   tok_width_default,
00066   tok_repertoiremap,
00067 
00068   tok_lc_ctype,
00069   tok_copy,
00070   /* Keep the following entries up to the next comment in this order!  */
00071   tok_upper,
00072   tok_lower,
00073   tok_alpha,
00074   tok_digit,
00075   tok_xdigit,
00076   tok_space,
00077   tok_print,
00078   tok_graph,
00079   tok_blank,
00080   tok_cntrl,
00081   tok_punct,
00082   tok_alnum,
00083   /* OK, shuffling allowed again.  */
00084   tok_outdigit,
00085   tok_charclass,
00086   tok_class,
00087   tok_toupper,
00088   tok_tolower,
00089   tok_map,
00090   tok_translit_start,
00091   tok_translit_end,
00092   tok_translit_ignore,
00093   tok_default_missing,
00094   tok_lc_collate,
00095   tok_coll_weight_max,
00096   tok_section_symbol,
00097   tok_collating_element,
00098   tok_collating_symbol,
00099   tok_symbol_equivalence,
00100   tok_script,
00101   tok_order_start,
00102   tok_order_end,
00103   tok_from,
00104   tok_forward,
00105   tok_backward,
00106   tok_position,
00107   tok_undefined,
00108   tok_ignore,
00109   tok_reorder_after,
00110   tok_reorder_end,
00111   tok_reorder_sections_after,
00112   tok_reorder_sections_end,
00113   tok_define,
00114   tok_undef,
00115   tok_ifdef,
00116   tok_ifndef,
00117   tok_else,
00118   tok_elifdef,
00119   tok_elifndef,
00120   tok_endif,
00121   tok_lc_monetary,
00122   tok_int_curr_symbol,
00123   tok_currency_symbol,
00124   tok_mon_decimal_point,
00125   tok_mon_thousands_sep,
00126   tok_mon_grouping,
00127   tok_positive_sign,
00128   tok_negative_sign,
00129   tok_int_frac_digits,
00130   tok_frac_digits,
00131   tok_p_cs_precedes,
00132   tok_p_sep_by_space,
00133   tok_n_cs_precedes,
00134   tok_n_sep_by_space,
00135   tok_p_sign_posn,
00136   tok_n_sign_posn,
00137   tok_int_p_cs_precedes,
00138   tok_int_p_sep_by_space,
00139   tok_int_n_cs_precedes,
00140   tok_int_n_sep_by_space,
00141   tok_int_p_sign_posn,
00142   tok_int_n_sign_posn,
00143   tok_duo_int_curr_symbol,
00144   tok_duo_currency_symbol,
00145   tok_duo_int_frac_digits,
00146   tok_duo_frac_digits,
00147   tok_duo_p_cs_precedes,
00148   tok_duo_p_sep_by_space,
00149   tok_duo_n_cs_precedes,
00150   tok_duo_n_sep_by_space,
00151   tok_duo_int_p_cs_precedes,
00152   tok_duo_int_p_sep_by_space,
00153   tok_duo_int_n_cs_precedes,
00154   tok_duo_int_n_sep_by_space,
00155   tok_duo_p_sign_posn,
00156   tok_duo_n_sign_posn,
00157   tok_duo_int_p_sign_posn,
00158   tok_duo_int_n_sign_posn,
00159   tok_uno_valid_from,
00160   tok_uno_valid_to,
00161   tok_duo_valid_from,
00162   tok_duo_valid_to,
00163   tok_conversion_rate,
00164   tok_lc_numeric,
00165   tok_decimal_point,
00166   tok_thousands_sep,
00167   tok_grouping,
00168   tok_lc_time,
00169   tok_abday,
00170   tok_day,
00171   tok_abmon,
00172   tok_mon,
00173   tok_d_t_fmt,
00174   tok_d_fmt,
00175   tok_t_fmt,
00176   tok_am_pm,
00177   tok_t_fmt_ampm,
00178   tok_era,
00179   tok_era_year,
00180   tok_era_d_fmt,
00181   tok_era_d_t_fmt,
00182   tok_era_t_fmt,
00183   tok_alt_digits,
00184   tok_week,
00185   tok_first_weekday,
00186   tok_first_workday,
00187   tok_cal_direction,
00188   tok_timezone,
00189   tok_date_fmt,
00190   tok_lc_messages,
00191   tok_yesexpr,
00192   tok_noexpr,
00193   tok_yesstr,
00194   tok_nostr,
00195   tok_lc_paper,
00196   tok_height,
00197   tok_lc_name,
00198   tok_name_fmt,
00199   tok_name_gen,
00200   tok_name_mr,
00201   tok_name_mrs,
00202   tok_name_miss,
00203   tok_name_ms,
00204   tok_lc_address,
00205   tok_postal_fmt,
00206   tok_country_name,
00207   tok_country_post,
00208   tok_country_ab2,
00209   tok_country_ab3,
00210   tok_country_num,
00211   tok_country_car,
00212   tok_country_isbn,
00213   tok_lang_name,
00214   tok_lang_ab,
00215   tok_lang_term,
00216   tok_lang_lib,
00217   tok_lc_telephone,
00218   tok_tel_int_fmt,
00219   tok_tel_dom_fmt,
00220   tok_int_select,
00221   tok_int_prefix,
00222   tok_lc_measurement,
00223   tok_measurement,
00224   tok_lc_identification,
00225   tok_title,
00226   tok_source,
00227   tok_address,
00228   tok_contact,
00229   tok_email,
00230   tok_tel,
00231   tok_fax,
00232   tok_language,
00233   tok_territory,
00234   tok_audience,
00235   tok_application,
00236   tok_abbreviation,
00237   tok_revision,
00238   tok_date,
00239   tok_category,
00240 
00241   tok_error
00242 };
00243 
00244 
00245 struct keyword_t
00246 {
00247   const char *name;
00248   enum token_t token;
00249   int symname_or_ident;
00250 
00251   /* Only for locdef file.  */
00252   int locale;
00253   enum token_t base;
00254   enum token_t group;
00255   enum token_t list;
00256 };
00257 
00258 
00259 #endif /* token.h */