usr/src/cmd/localedef/parser.y
author Garrett D'Amore <garrett@dey-sys.com>
Tue, 27 Aug 2013 18:16:23 -0700
changeset 14265 8ae0bbd9e7cc
parent 13222 02526851ba75
child 14267 863932c97ce8
permissions -rw-r--r--
2408 CJK character width handled incorrectly in terminal emulators 3019 localedef(1) manpage is pretty out of date Reviewed by: Yuri Pankov <[email protected]> Reviewed by: Lauri Tirkkonen <[email protected]> Reviewed by: Andy Stormont <[email protected]> Approved by: Gordon Ross <[email protected]>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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.
14265
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
    15
 * Copyright 2013 DEY Storage Systems, Inc.
13200
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
/*
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    19
 * POSIX localedef grammar.
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    22
#include <wchar.h>
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    23
#include <stdio.h>
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    24
#include <limits.h>
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    25
#include "localedef.h"
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
%}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    28
%union {
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    29
	int		num;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    30
	wchar_t		wc;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    31
	char		*token;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    32
	collsym_t	*collsym;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    33
	collelem_t	*collelem;
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    36
%token		T_CODE_SET
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    37
%token		T_MB_CUR_MAX
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    38
%token		T_MB_CUR_MIN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    39
%token		T_COM_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    40
%token		T_ESC_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    41
%token		T_LT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    42
%token		T_GT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    43
%token		T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    44
%token		T_SEMI
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    45
%token		T_COMMA
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    46
%token		T_ELLIPSIS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    47
%token		T_RPAREN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    48
%token		T_LPAREN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    49
%token		T_QUOTE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    50
%token		T_NULL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    51
%token		T_WS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    52
%token		T_END
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    53
%token		T_COPY
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    54
%token		T_CHARMAP
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
    55
%token		T_WIDTH
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
14265
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   222
		| T_WIDTH T_NL width_list T_END T_WIDTH T_NL
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   223
		;
13200
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   224
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   225
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   226
charmap_list	: charmap_list charmap_entry
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   227
		| charmap_entry
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
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
charmap_entry	: T_SYMBOL T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   232
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   233
			add_charmap($1, $2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   234
			scan_to_eol();
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
		| 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
   237
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   238
			add_charmap_range($1, $3, $4);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   239
			scan_to_eol();
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
		| T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   242
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   243
14265
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   244
width_list	: width_list width_entry
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   245
		| width_entry
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   246
		;
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   247
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   248
width_entry	: T_CHAR T_NUMBER T_NL
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   249
		{
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   250
			add_width($1, $2);
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   251
			scan_to_eol();
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   252
		}
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   253
		| T_SYMBOL T_NUMBER T_NL
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   254
		{
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   255
			add_charmap_undefined($1);
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   256
			scan_to_eol();
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   257
		}
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   258
		| T_CHAR T_ELLIPSIS T_CHAR T_NUMBER T_NL
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   259
		{
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   260
			add_width_range($1, $3, $4);
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   261
			scan_to_eol();
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   262
		}
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   263
		| T_SYMBOL T_ELLIPSIS T_SYMBOL T_NUMBER T_NL
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   264
		{
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   265
			add_charmap_undefined($1);
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   266
			add_charmap_undefined($3);
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   267
			scan_to_eol();
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   268
		}
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   269
		| T_CHAR T_ELLIPSIS T_SYMBOL T_NUMBER T_NL
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   270
		{
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   271
			add_width($1, $4);
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   272
			add_charmap_undefined($3);
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   273
			scan_to_eol();
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   274
		}
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   275
		| T_SYMBOL T_ELLIPSIS T_CHAR T_NUMBER T_NL
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   276
		{
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   277
			add_width($3, $4);
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   278
			add_charmap_undefined($1);
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   279
			scan_to_eol();
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   280
		}
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   281
		| T_NL
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   282
		;
8ae0bbd9e7cc 2408 CJK character width handled incorrectly in terminal emulators
Garrett D'Amore <garrett@dey-sys.com>
parents: 13222
diff changeset
   283
13200
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   284
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
   285
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   286
			dump_ctype();
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_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
   289
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   290
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   291
ctype_list	: ctype_list ctype_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   292
		| ctype_kw
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   295
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
   296
		| T_ISLOWER cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   297
		| T_ISALPHA cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   298
		| T_ISDIGIT cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   299
		| T_ISPUNCT cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   300
		| T_ISXDIGIT cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   301
		| T_ISSPACE cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   302
		| T_ISPRINT cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   303
		| T_ISGRAPH cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   304
		| T_ISBLANK cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   305
		| T_ISCNTRL cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   306
		| T_ISALNUM cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   307
		| T_ISSPECIAL cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   308
		| T_ISENGLISH cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   309
		| T_ISNUMBER cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   310
		| T_ISIDEOGRAM cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   311
		| T_ISPHONOGRAM cc_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   312
		| T_TOUPPER conv_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   313
		| T_TOLOWER conv_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   314
		;
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   317
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
   318
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   319
			add_ctype($3);
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
		| cc_list T_SEMI T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   322
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   323
			add_charmap_undefined($3);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   324
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   325
		| 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
   326
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   327
			/* 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
   328
			add_ctype_range($5);
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_CHAR
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
			add_ctype($1);
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
		| T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   335
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   336
			add_charmap_undefined($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   337
		}
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
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
   341
		| conv_pair
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
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
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
   346
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   347
			add_caseconv($2, $4);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   348
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   349
		| 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
   350
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   351
			add_charmap_undefined($2);
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
		| 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
   354
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   355
			add_charmap_undefined($2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   356
			add_charmap_undefined($4);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   357
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   358
		| 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
   359
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   360
			add_charmap_undefined($4);
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
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
   365
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   366
			dump_collate();
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
		| 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
   369
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   370
			dump_collate();
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
		| 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
   373
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   374
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   375
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   376
coll_optional	: coll_optional coll_symbols
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   377
		| coll_optional coll_elements
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   378
		| coll_symbols
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   379
		| coll_elements
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   380
		;
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   383
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
   384
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   385
			define_collsym($2);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   386
		}
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
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
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
   391
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   392
			define_collelem($2, get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   393
		}
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
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
   397
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   398
			/* 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
   399
			add_order_bit(T_FORWARD);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   400
			add_order_directive();
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
		| 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
   403
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   404
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
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
   407
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   408
			add_order_directive();
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_arg
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
			add_order_directive();
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
		;
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
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
   417
		| order_dir
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   418
		;
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
order_dir	: T_FORWARD
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
			add_order_bit(T_FORWARD);
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
		| T_BACKWARD
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
			add_order_bit(T_BACKWARD);
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
		| T_POSITION
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
			add_order_bit(T_POSITION);
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
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   433
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   434
order_list	: order_list order_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   435
		| order_item
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   438
order_item	: T_COLLSYM T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   439
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   440
			end_order_collsym($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   441
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   442
		| order_itemkw T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   443
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   444
			end_order();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   445
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   446
		| order_itemkw order_weights T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   447
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   448
			end_order();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   449
		}
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   452
order_itemkw	: T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   453
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   454
			start_order_char($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   455
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   456
		| T_ELLIPSIS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   457
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   458
			start_order_ellipsis();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   459
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   460
		| T_COLLELEM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   461
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   462
			start_order_collelem($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   463
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   464
		| T_UNDEFINED
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
			start_order_undefined();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   467
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   468
		| T_SYMBOL
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
			start_order_symbol($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   471
		}
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   474
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
   475
		| order_weights T_SEMI
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   476
		| order_weight
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   477
		;
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
order_weight	: 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_order_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_COLLSYM
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_order_collsym($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
		| T_CHAR
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
			add_order_char($1);
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
		| T_ELLIPSIS
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
			add_order_ellipsis();
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
		| T_IGNORE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   496
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   497
			add_order_ignore();
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
		| T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   500
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   501
			add_order_symbol($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   502
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   503
		| T_QUOTE order_str T_QUOTE
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
			add_order_subst();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   506
		}
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   509
order_str	: order_str order_stritem
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   510
		| order_stritem
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   513
order_stritem	: T_CHAR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   514
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   515
			add_subst_char($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   516
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   517
		| T_COLLSYM
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
			add_subst_collsym($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   520
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   521
		| T_COLLELEM
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
			add_subst_collelem($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   524
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   525
		| T_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   526
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   527
			add_subst_symbol($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   528
		}
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
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
   532
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   533
			dump_messages();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   534
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   535
		| 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
   536
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   537
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   538
messages_list	: messages_list messages_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   539
		| messages_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   540
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   541
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   542
messages_kw	: T_YESSTR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   543
		| T_NOSTR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   544
		| T_YESEXPR
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   545
		| T_NOEXPR
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   548
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
   549
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   550
			add_message(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   551
		}
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   554
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
   555
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   556
			dump_monetary();
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
		| 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
   559
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   560
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   561
monetary_list	: monetary_list monetary_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   562
		| monetary_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   563
		;
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
monetary_strkw	: T_INT_CURR_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   566
		| T_CURRENCY_SYMBOL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   567
		| T_MON_DECIMAL_POINT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   568
		| T_MON_THOUSANDS_SEP
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   569
		| T_POSITIVE_SIGN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   570
		| T_NEGATIVE_SIGN
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   573
monetary_numkw	: T_INT_FRAC_DIGITS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   574
		| T_FRAC_DIGITS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   575
		| T_P_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   576
		| T_P_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   577
		| T_N_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   578
		| T_N_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   579
		| T_P_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   580
		| T_N_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   581
		| T_INT_P_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   582
		| T_INT_N_CS_PRECEDES
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   583
		| T_INT_P_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   584
		| T_INT_N_SEP_BY_SPACE
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   585
		| T_INT_P_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   586
		| T_INT_N_SIGN_POSN
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   587
		;
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
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
   590
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   591
			add_monetary_str(get_wcs());
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
		| monetary_numkw T_NUMBER T_NL
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
			add_monetary_num($2);
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
		| 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
   598
		;
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
mon_group_list	: 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
			reset_monetary_group();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   603
			add_monetary_group($1);
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
		| 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
   606
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   607
			add_monetary_group($3);
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
		;
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   612
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
   613
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   614
			dump_numeric();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   615
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   616
		| 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
   617
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   618
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
numeric_list	: numeric_list numeric_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   621
		| numeric_item
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   622
		;
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
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   625
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
   626
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   627
			add_numeric_str(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   628
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   629
		| T_GROUPING group_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   630
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   631
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   632
numeric_strkw	: T_DECIMAL_POINT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   633
		| T_THOUSANDS_SEP
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   634
		;
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
group_list	: T_NUMBER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   638
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   639
			reset_numeric_group();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   640
			add_numeric_group($1);
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   641
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   642
		| group_list T_SEMI T_NUMBER
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   643
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   644
			add_numeric_group($3);
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
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
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
   650
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   651
			dump_time();
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
		| 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
   654
		;
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
time_kwlist	: time_kwlist time_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   657
		| time_kw
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   658
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   659
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   660
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
   661
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   662
			add_time_str(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   663
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   664
		| time_listkw time_list T_NL
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   665
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   666
			check_time_list();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   667
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   668
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   669
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   670
time_listkw	: T_ABDAY
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   671
		| T_DAY
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   672
		| T_ABMON
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   673
		| T_MON
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   674
		| T_ERA
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   675
		| T_ALT_DIGITS
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   676
		| T_AM_PM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   677
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   678
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   679
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
   680
		| T_ERA_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   681
		| T_ERA_D_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   682
		| T_D_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   683
		| T_D_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   684
		| T_T_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   685
		| T_T_FMT_AMPM
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   686
		| T_DATE_FMT
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   687
		;
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   688
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   689
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
   690
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   691
			add_time_list(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   692
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   693
		| string
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   694
		{
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   695
			reset_time_list();
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   696
			add_time_list(get_wcs());
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   697
		}
e35262a09b82 8 libc locale work needs updated license files
Garrett D'Amore <garrett@nexenta.com>
parents:
diff changeset
   698
		;