annotate usr/src/cmd/localedef/parser.y @ 14050:0c8d9998d589

3747 txg commit callbacks don't work Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Approved by: Christopher Siden <christopher.siden@delphix.com>
author Will Andrews <willa@spectralogic.com>
date Tue, 11 Jun 2013 09:13:51 -0800
parents 02526851ba75
children 8ae0bbd9e7cc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13200
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
1 %{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
2 /*
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
3 * This file and its contents are supplied under the terms of the
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
4 * Common Development and Distribution License ("CDDL"), version 1.0.
13222
02526851ba75 357 fix license on strptime.c
Garrett D'Amore <garrett@nexenta.com>
parents: 13200
diff changeset
5 * You may only use this file in accordance with the terms of version
02526851ba75 357 fix license on strptime.c
Garrett D'Amore <garrett@nexenta.com>
parents: 13200
diff changeset
6 * 1.0 of the CDDL.
13200
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
7 *
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
8 * A full copy of the text of the CDDL should have accompanied this
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
9 * source. A copy of the CDDL is also available via the Internet at
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
10 * http://www.illumos.org/license/CDDL.
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
11 */
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
12
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
13 /*
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
14 * Copyright 2010 Nexenta Systems, Inc. All rights reserved.
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
15 */
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
16
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
17 /*
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
18 * POSIX localedef grammar.
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
19 */
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
20
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
21 #include <wchar.h>
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
22 #include <stdio.h>
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
23 #include <limits.h>
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
24 #include "localedef.h"
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
25
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
26 %}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
27 %union {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
28 int num;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
29 wchar_t wc;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
30 char *token;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
31 collsym_t *collsym;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
32 collelem_t *collelem;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
33 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
34
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
35 %token T_CODE_SET
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
36 %token T_MB_CUR_MAX
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
37 %token T_MB_CUR_MIN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
38 %token T_COM_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
39 %token T_ESC_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
40 %token T_LT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
41 %token T_GT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
42 %token T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
43 %token T_SEMI
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
44 %token T_COMMA
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
45 %token T_ELLIPSIS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
46 %token T_RPAREN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
47 %token T_LPAREN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
48 %token T_QUOTE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
49 %token T_NULL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
50 %token T_WS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
51 %token T_END
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
52 %token T_COPY
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
53 %token T_CHARMAP
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
54 %token T_WIDTH
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
55 %token T_WIDTH_DEFAULT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
56 %token T_CTYPE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
57 %token T_ISUPPER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
58 %token T_ISLOWER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
59 %token T_ISALPHA
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
60 %token T_ISDIGIT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
61 %token T_ISPUNCT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
62 %token T_ISXDIGIT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
63 %token T_ISSPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
64 %token T_ISPRINT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
65 %token T_ISGRAPH
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
66 %token T_ISBLANK
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
67 %token T_ISCNTRL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
68 %token T_ISALNUM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
69 %token T_ISSPECIAL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
70 %token T_ISPHONOGRAM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
71 %token T_ISIDEOGRAM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
72 %token T_ISENGLISH
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
73 %token T_ISNUMBER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
74 %token T_TOUPPER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
75 %token T_TOLOWER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
76 %token T_COLLATE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
77 %token T_COLLATING_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
78 %token T_COLLATING_ELEMENT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
79 %token T_ORDER_START
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
80 %token T_ORDER_END
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
81 %token T_FORWARD
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
82 %token T_BACKWARD
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
83 %token T_POSITION
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
84 %token T_FROM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
85 %token T_UNDEFINED
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
86 %token T_IGNORE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
87 %token T_MESSAGES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
88 %token T_YESSTR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
89 %token T_NOSTR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
90 %token T_YESEXPR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
91 %token T_NOEXPR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
92 %token T_MONETARY
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
93 %token T_INT_CURR_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
94 %token T_CURRENCY_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
95 %token T_MON_DECIMAL_POINT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
96 %token T_MON_THOUSANDS_SEP
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
97 %token T_POSITIVE_SIGN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
98 %token T_NEGATIVE_SIGN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
99 %token T_MON_GROUPING
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
100 %token T_INT_FRAC_DIGITS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
101 %token T_FRAC_DIGITS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
102 %token T_P_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
103 %token T_P_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
104 %token T_N_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
105 %token T_N_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
106 %token T_P_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
107 %token T_N_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
108 %token T_INT_P_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
109 %token T_INT_N_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
110 %token T_INT_P_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
111 %token T_INT_N_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
112 %token T_INT_P_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
113 %token T_INT_N_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
114 %token T_NUMERIC
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
115 %token T_DECIMAL_POINT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
116 %token T_THOUSANDS_SEP
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
117 %token T_GROUPING
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
118 %token T_TIME
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
119 %token T_ABDAY
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
120 %token T_DAY
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
121 %token T_ABMON
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
122 %token T_MON
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
123 %token T_ERA
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
124 %token T_ERA_D_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
125 %token T_ERA_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
126 %token T_ERA_D_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
127 %token T_ALT_DIGITS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
128 %token T_D_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
129 %token T_D_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
130 %token T_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
131 %token T_AM_PM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
132 %token T_T_FMT_AMPM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
133 %token T_DATE_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
134 %token <wc> T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
135 %token <token> T_NAME
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
136 %token <num> T_NUMBER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
137 %token <token> T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
138 %token <collsym> T_COLLSYM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
139 %token <collelem> T_COLLELEM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
140
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
141 %%
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
142
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
143 localedef : setting_list categories
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
144 | categories
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
145 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
146
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
147 string : T_QUOTE charlist T_QUOTE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
148 | T_QUOTE T_QUOTE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
149 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
150
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
151 charlist : charlist T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
152 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
153 add_wcs($2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
154 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
155 | T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
156 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
157 add_wcs($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
158 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
159 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
160
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
161 setting_list : setting_list setting
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
162 | setting
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
163 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
164
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
165
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
166 setting : T_COM_CHAR T_CHAR T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
167 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
168 com_char = $2;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
169 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
170 | T_ESC_CHAR T_CHAR T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
171 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
172 esc_char = $2;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
173 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
174 | T_MB_CUR_MAX T_NUMBER T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
175 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
176 mb_cur_max = $2;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
177 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
178 | T_MB_CUR_MIN T_NUMBER T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
179 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
180 mb_cur_min = $2;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
181 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
182 | T_CODE_SET string T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
183 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
184 wchar_t *w = get_wcs();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
185 set_wide_encoding(to_mb_string(w));
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
186 free(w);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
187 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
188 | T_CODE_SET T_NAME T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
189 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
190 set_wide_encoding($2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
191 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
192 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
193
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
194 copycat : T_COPY T_NAME T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
195 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
196 copy_category($2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
197 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
198 | T_COPY string T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
199 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
200 wchar_t *w = get_wcs();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
201 copy_category(to_mb_string(w));
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
202 free(w);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
203 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
204 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
205
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
206 categories : categories category
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
207 | category
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
208 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
209
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
210
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
211 category : charmap
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
212 | messages
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
213 | monetary
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
214 | ctype
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
215 | collate
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
216 | numeric
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
217 | time
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
218 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
219
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
220
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
221 charmap : T_CHARMAP T_NL charmap_list T_END T_CHARMAP T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
222
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
223
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
224 charmap_list : charmap_list charmap_entry
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
225 | charmap_entry
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
226 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
227
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
228
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
229 charmap_entry : T_SYMBOL T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
230 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
231 add_charmap($1, $2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
232 scan_to_eol();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
233 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
234 | T_SYMBOL T_ELLIPSIS T_SYMBOL T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
235 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
236 add_charmap_range($1, $3, $4);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
237 scan_to_eol();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
238 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
239 | T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
240 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
241
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
242 ctype : T_CTYPE T_NL ctype_list T_END T_CTYPE T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
243 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
244 dump_ctype();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
245 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
246 | T_CTYPE T_NL copycat T_END T_CTYPE T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
247 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
248
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
249 ctype_list : ctype_list ctype_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
250 | ctype_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
251 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
252
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
253 ctype_kw : T_ISUPPER cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
254 | T_ISLOWER cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
255 | T_ISALPHA cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
256 | T_ISDIGIT cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
257 | T_ISPUNCT cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
258 | T_ISXDIGIT cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
259 | T_ISSPACE cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
260 | T_ISPRINT cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
261 | T_ISGRAPH cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
262 | T_ISBLANK cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
263 | T_ISCNTRL cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
264 | T_ISALNUM cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
265 | T_ISSPECIAL cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
266 | T_ISENGLISH cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
267 | T_ISNUMBER cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
268 | T_ISIDEOGRAM cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
269 | T_ISPHONOGRAM cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
270 | T_TOUPPER conv_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
271 | T_TOLOWER conv_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
272 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
273
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
274
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
275 cc_list : cc_list T_SEMI T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
276 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
277 add_ctype($3);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
278 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
279 | cc_list T_SEMI T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
280 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
281 add_charmap_undefined($3);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
282 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
283 | cc_list T_SEMI T_ELLIPSIS T_SEMI T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
284 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
285 /* note that the endpoints *must* be characters */
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
286 add_ctype_range($5);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
287 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
288 | T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
289 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
290 add_ctype($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
291 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
292 | T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
293 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
294 add_charmap_undefined($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
295 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
296 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
297
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
298 conv_list : conv_list T_SEMI conv_pair
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
299 | conv_pair
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
300 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
301
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
302
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
303 conv_pair : T_LPAREN T_CHAR T_COMMA T_CHAR T_RPAREN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
304 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
305 add_caseconv($2, $4);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
306 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
307 | T_LPAREN T_SYMBOL T_COMMA T_CHAR T_RPAREN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
308 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
309 add_charmap_undefined($2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
310 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
311 | T_LPAREN T_SYMBOL T_COMMA T_SYMBOL T_RPAREN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
312 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
313 add_charmap_undefined($2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
314 add_charmap_undefined($4);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
315 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
316 | T_LPAREN T_CHAR T_COMMA T_SYMBOL T_RPAREN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
317 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
318 add_charmap_undefined($4);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
319 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
320 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
321
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
322 collate : T_COLLATE T_NL coll_order T_END T_COLLATE T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
323 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
324 dump_collate();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
325 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
326 | T_COLLATE T_NL coll_optional coll_order T_END T_COLLATE T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
327 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
328 dump_collate();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
329 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
330 | T_COLLATE T_NL copycat T_END T_COLLATE T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
331 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
332
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
333
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
334 coll_optional : coll_optional coll_symbols
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
335 | coll_optional coll_elements
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
336 | coll_symbols
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
337 | coll_elements
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
338 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
339
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
340
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
341 coll_symbols : T_COLLATING_SYMBOL T_SYMBOL T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
342 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
343 define_collsym($2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
344 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
345 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
346
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
347
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
348 coll_elements : T_COLLATING_ELEMENT T_SYMBOL T_FROM string T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
349 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
350 define_collelem($2, get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
351 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
352 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
353
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
354 coll_order : T_ORDER_START T_NL order_list T_ORDER_END T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
355 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
356 /* If no order list supplied default to one forward */
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
357 add_order_bit(T_FORWARD);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
358 add_order_directive();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
359 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
360 | T_ORDER_START order_args T_NL order_list T_ORDER_END T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
361 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
362
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
363
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
364 order_args : order_args T_SEMI order_arg
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
365 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
366 add_order_directive();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
367 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
368 | order_arg
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
369 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
370 add_order_directive();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
371 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
372 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
373
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
374 order_arg : order_arg T_COMMA order_dir
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
375 | order_dir
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
376 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
377
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
378 order_dir : T_FORWARD
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
379 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
380 add_order_bit(T_FORWARD);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
381 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
382 | T_BACKWARD
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
383 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
384 add_order_bit(T_BACKWARD);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
385 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
386 | T_POSITION
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
387 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
388 add_order_bit(T_POSITION);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
389 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
390 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
391
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
392 order_list : order_list order_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
393 | order_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
394 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
395
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
396 order_item : T_COLLSYM T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
397 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
398 end_order_collsym($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
399 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
400 | order_itemkw T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
401 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
402 end_order();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
403 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
404 | order_itemkw order_weights T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
405 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
406 end_order();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
407 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
408 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
409
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
410 order_itemkw : T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
411 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
412 start_order_char($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
413 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
414 | T_ELLIPSIS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
415 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
416 start_order_ellipsis();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
417 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
418 | T_COLLELEM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
419 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
420 start_order_collelem($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
421 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
422 | T_UNDEFINED
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
423 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
424 start_order_undefined();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
425 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
426 | T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
427 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
428 start_order_symbol($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
429 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
430 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
431
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
432 order_weights : order_weights T_SEMI order_weight
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
433 | order_weights T_SEMI
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
434 | order_weight
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
435 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
436
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
437 order_weight : T_COLLELEM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
438 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
439 add_order_collelem($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
440 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
441 | T_COLLSYM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
442 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
443 add_order_collsym($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
444 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
445 | T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
446 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
447 add_order_char($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
448 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
449 | T_ELLIPSIS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
450 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
451 add_order_ellipsis();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
452 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
453 | T_IGNORE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
454 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
455 add_order_ignore();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
456 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
457 | T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
458 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
459 add_order_symbol($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
460 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
461 | T_QUOTE order_str T_QUOTE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
462 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
463 add_order_subst();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
464 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
465 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
466
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
467 order_str : order_str order_stritem
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
468 | order_stritem
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
469 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
470
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
471 order_stritem : T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
472 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
473 add_subst_char($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
474 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
475 | T_COLLSYM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
476 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
477 add_subst_collsym($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
478 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
479 | T_COLLELEM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
480 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
481 add_subst_collelem($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
482 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
483 | T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
484 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
485 add_subst_symbol($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
486 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
487 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
488
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
489 messages : T_MESSAGES T_NL messages_list T_END T_MESSAGES T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
490 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
491 dump_messages();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
492 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
493 | T_MESSAGES T_NL copycat T_END T_MESSAGES T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
494 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
495
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
496 messages_list : messages_list messages_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
497 | messages_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
498 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
499
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
500 messages_kw : T_YESSTR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
501 | T_NOSTR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
502 | T_YESEXPR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
503 | T_NOEXPR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
504 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
505
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
506 messages_item : messages_kw string T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
507 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
508 add_message(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
509 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
510 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
511
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
512 monetary : T_MONETARY T_NL monetary_list T_END T_MONETARY T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
513 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
514 dump_monetary();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
515 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
516 | T_MONETARY T_NL copycat T_END T_MONETARY T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
517 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
518
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
519 monetary_list : monetary_list monetary_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
520 | monetary_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
521 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
522
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
523 monetary_strkw : T_INT_CURR_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
524 | T_CURRENCY_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
525 | T_MON_DECIMAL_POINT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
526 | T_MON_THOUSANDS_SEP
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
527 | T_POSITIVE_SIGN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
528 | T_NEGATIVE_SIGN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
529 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
530
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
531 monetary_numkw : T_INT_FRAC_DIGITS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
532 | T_FRAC_DIGITS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
533 | T_P_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
534 | T_P_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
535 | T_N_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
536 | T_N_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
537 | T_P_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
538 | T_N_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
539 | T_INT_P_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
540 | T_INT_N_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
541 | T_INT_P_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
542 | T_INT_N_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
543 | T_INT_P_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
544 | T_INT_N_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
545 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
546
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
547 monetary_kw : monetary_strkw string T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
548 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
549 add_monetary_str(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
550 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
551 | monetary_numkw T_NUMBER T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
552 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
553 add_monetary_num($2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
554 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
555 | T_MON_GROUPING mon_group_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
556 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
557
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
558 mon_group_list : T_NUMBER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
559 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
560 reset_monetary_group();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
561 add_monetary_group($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
562 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
563 | mon_group_list T_SEMI T_NUMBER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
564 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
565 add_monetary_group($3);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
566 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
567 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
568
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
569
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
570 numeric : T_NUMERIC T_NL numeric_list T_END T_NUMERIC T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
571 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
572 dump_numeric();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
573 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
574 | T_NUMERIC T_NL copycat T_END T_NUMERIC T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
575 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
576
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
577
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
578 numeric_list : numeric_list numeric_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
579 | numeric_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
580 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
581
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
582
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
583 numeric_item : numeric_strkw string T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
584 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
585 add_numeric_str(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
586 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
587 | T_GROUPING group_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
588 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
589
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
590 numeric_strkw : T_DECIMAL_POINT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
591 | T_THOUSANDS_SEP
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
592 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
593
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
594
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
595 group_list : T_NUMBER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
596 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
597 reset_numeric_group();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
598 add_numeric_group($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
599 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
600 | group_list T_SEMI T_NUMBER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
601 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
602 add_numeric_group($3);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
603 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
604 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
605
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
606
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
607 time : T_TIME T_NL time_kwlist T_END T_TIME T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
608 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
609 dump_time();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
610 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
611 | T_TIME T_NL copycat T_END T_NUMERIC T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
612 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
613
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
614 time_kwlist : time_kwlist time_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
615 | time_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
616 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
617
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
618 time_kw : time_strkw string T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
619 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
620 add_time_str(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
621 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
622 | time_listkw time_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
623 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
624 check_time_list();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
625 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
626 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
627
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
628 time_listkw : T_ABDAY
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
629 | T_DAY
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
630 | T_ABMON
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
631 | T_MON
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
632 | T_ERA
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
633 | T_ALT_DIGITS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
634 | T_AM_PM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
635 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
636
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
637 time_strkw : T_ERA_D_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
638 | T_ERA_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
639 | T_ERA_D_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
640 | T_D_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
641 | T_D_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
642 | T_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
643 | T_T_FMT_AMPM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
644 | T_DATE_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
645 ;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
646
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
647 time_list : time_list T_SEMI string
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
648 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
649 add_time_list(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
650 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
651 | string
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
652 {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
653 reset_time_list();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
654 add_time_list(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
655 }
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
656 ;