KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibm > icu > text > RBBIRuleParseTable


1 /*
2  *******************************************************************************
3  * Copyright (C) 2003-2006,
4  * International Business Machines Corporation and others. All Rights Reserved.
5  *******************************************************************************
6  */

7  
8 package com.ibm.icu.text;
9  
10 /**
11  * Generated Java File. Do not edit by hand.
12  * This file contains the state table for the ICU Rule Based Break Iterator
13  * rule parser.
14  * It is generated by the Perl script "rbbicst.pl" from
15  * the rule parser state definitions file "rbbirpt.txt".
16  * @internal
17  *
18  */

19 class RBBIRuleParseTable
20 {
21      static final short doCheckVarDef = 1;
22      static final short doDotAny = 2;
23      static final short doEndAssign = 3;
24      static final short doEndOfRule = 4;
25      static final short doEndVariableName = 5;
26      static final short doExit = 6;
27      static final short doExprCatOperator = 7;
28      static final short doExprFinished = 8;
29      static final short doExprOrOperator = 9;
30      static final short doExprRParen = 10;
31      static final short doExprStart = 11;
32      static final short doLParen = 12;
33      static final short doNOP = 13;
34      static final short doOptionEnd = 14;
35      static final short doOptionStart = 15;
36      static final short doReverseDir = 16;
37      static final short doRuleChar = 17;
38      static final short doRuleError = 18;
39      static final short doRuleErrorAssignExpr = 19;
40      static final short doScanUnicodeSet = 20;
41      static final short doSlash = 21;
42      static final short doStartAssign = 22;
43      static final short doStartTagValue = 23;
44      static final short doStartVariableName = 24;
45      static final short doTagDigit = 25;
46      static final short doTagExpectedError = 26;
47      static final short doTagValue = 27;
48      static final short doUnaryOpPlus = 28;
49      static final short doUnaryOpQuestion = 29;
50      static final short doUnaryOpStar = 30;
51      static final short doVariableNameExpectedErr = 31;
52  
53      static final short kRuleSet_default = 255;
54      static final short kRuleSet_digit_char = 128;
55      static final short kRuleSet_eof = 252;
56      static final short kRuleSet_escaped = 254;
57      static final short kRuleSet_name_char = 129;
58      static final short kRuleSet_name_start_char = 130;
59      static final short kRuleSet_rule_char = 131;
60      static final short kRuleSet_white_space = 132;
61
62
63    static class RBBIRuleTableElement {
64       short fAction;
65       short fCharClass;
66       short fNextState;
67       short fPushState;
68       boolean fNextChar;
69       String JavaDoc fStateName;
70       RBBIRuleTableElement(short a, int cc, int ns, int ps, boolean nc, String JavaDoc sn) {
71       fAction = a;
72       fCharClass = (short)cc;
73       fNextState = (short)ns;
74       fPushState = (short)ps;
75       fNextChar = nc;
76       fStateName = sn;
77    }
78    }
79   
80     static RBBIRuleTableElement[] gRuleParseStateTable = {
81        new RBBIRuleTableElement(doNOP, 0, 0,0, true, null ) // 0
82
, new RBBIRuleTableElement(doExprStart, 254, 21, 8, false, "start") // 1
83
, new RBBIRuleTableElement(doNOP, 132, 1,0, true, null ) // 2
84
, new RBBIRuleTableElement(doExprStart,'$', 80, 90, false, null ) // 3
85
, new RBBIRuleTableElement(doNOP,'!', 11,0, true, null ) // 4
86
, new RBBIRuleTableElement(doNOP,';', 1,0, true, null ) // 5
87
, new RBBIRuleTableElement(doNOP, 252, 0,0, false, null ) // 6
88
, new RBBIRuleTableElement(doExprStart, 255, 21, 8, false, null ) // 7
89
, new RBBIRuleTableElement(doEndOfRule,';', 1,0, true, "break-rule-end") // 8
90
, new RBBIRuleTableElement(doNOP, 132, 8,0, true, null ) // 9
91
, new RBBIRuleTableElement(doRuleError, 255, 95,0, false, null ) // 10
92
, new RBBIRuleTableElement(doNOP,'!', 13,0, true, "rev-option") // 11
93
, new RBBIRuleTableElement(doReverseDir, 255, 20, 8, false, null ) // 12
94
, new RBBIRuleTableElement(doOptionStart, 130, 15,0, true, "option-scan1") // 13
95
, new RBBIRuleTableElement(doRuleError, 255, 95,0, false, null ) // 14
96
, new RBBIRuleTableElement(doNOP, 129, 15,0, true, "option-scan2") // 15
97
, new RBBIRuleTableElement(doOptionEnd, 255, 17,0, false, null ) // 16
98
, new RBBIRuleTableElement(doNOP,';', 1,0, true, "option-scan3") // 17
99
, new RBBIRuleTableElement(doNOP, 132, 17,0, true, null ) // 18
100
, new RBBIRuleTableElement(doRuleError, 255, 95,0, false, null ) // 19
101
, new RBBIRuleTableElement(doExprStart, 255, 21, 8, false, "reverse-rule") // 20
102
, new RBBIRuleTableElement(doRuleChar, 254, 30,0, true, "term") // 21
103
, new RBBIRuleTableElement(doNOP, 132, 21,0, true, null ) // 22
104
, new RBBIRuleTableElement(doRuleChar, 131, 30,0, true, null ) // 23
105
, new RBBIRuleTableElement(doNOP,'[', 86, 30, false, null ) // 24
106
, new RBBIRuleTableElement(doLParen,'(', 21, 30, true, null ) // 25
107
, new RBBIRuleTableElement(doNOP,'$', 80, 29, false, null ) // 26
108
, new RBBIRuleTableElement(doDotAny,'.', 30,0, true, null ) // 27
109
, new RBBIRuleTableElement(doRuleError, 255, 95,0, false, null ) // 28
110
, new RBBIRuleTableElement(doCheckVarDef, 255, 30,0, false, "term-var-ref") // 29
111
, new RBBIRuleTableElement(doNOP, 132, 30,0, true, "expr-mod") // 30
112
, new RBBIRuleTableElement(doUnaryOpStar,'*', 35,0, true, null ) // 31
113
, new RBBIRuleTableElement(doUnaryOpPlus,'+', 35,0, true, null ) // 32
114
, new RBBIRuleTableElement(doUnaryOpQuestion,'?', 35,0, true, null ) // 33
115
, new RBBIRuleTableElement(doNOP, 255, 35,0, false, null ) // 34
116
, new RBBIRuleTableElement(doExprCatOperator, 254, 21,0, false, "expr-cont") // 35
117
, new RBBIRuleTableElement(doNOP, 132, 35,0, true, null ) // 36
118
, new RBBIRuleTableElement(doExprCatOperator, 131, 21,0, false, null ) // 37
119
, new RBBIRuleTableElement(doExprCatOperator,'[', 21,0, false, null ) // 38
120
, new RBBIRuleTableElement(doExprCatOperator,'(', 21,0, false, null ) // 39
121
, new RBBIRuleTableElement(doExprCatOperator,'$', 21,0, false, null ) // 40
122
, new RBBIRuleTableElement(doExprCatOperator,'.', 21,0, false, null ) // 41
123
, new RBBIRuleTableElement(doExprCatOperator,'/', 47,0, false, null ) // 42
124
, new RBBIRuleTableElement(doExprCatOperator,'{', 59,0, true, null ) // 43
125
, new RBBIRuleTableElement(doExprOrOperator,'|', 21,0, true, null ) // 44
126
, new RBBIRuleTableElement(doExprRParen,')', 255,0, true, null ) // 45
127
, new RBBIRuleTableElement(doExprFinished, 255, 255,0, false, null ) // 46
128
, new RBBIRuleTableElement(doSlash,'/', 49,0, true, "look-ahead") // 47
129
, new RBBIRuleTableElement(doNOP, 255, 95,0, false, null ) // 48
130
, new RBBIRuleTableElement(doExprCatOperator, 254, 21,0, false, "expr-cont-no-slash") // 49
131
, new RBBIRuleTableElement(doNOP, 132, 35,0, true, null ) // 50
132
, new RBBIRuleTableElement(doExprCatOperator, 131, 21,0, false, null ) // 51
133
, new RBBIRuleTableElement(doExprCatOperator,'[', 21,0, false, null ) // 52
134
, new RBBIRuleTableElement(doExprCatOperator,'(', 21,0, false, null ) // 53
135
, new RBBIRuleTableElement(doExprCatOperator,'$', 21,0, false, null ) // 54
136
, new RBBIRuleTableElement(doExprCatOperator,'.', 21,0, false, null ) // 55
137
, new RBBIRuleTableElement(doExprOrOperator,'|', 21,0, true, null ) // 56
138
, new RBBIRuleTableElement(doExprRParen,')', 255,0, true, null ) // 57
139
, new RBBIRuleTableElement(doExprFinished, 255, 255,0, false, null ) // 58
140
, new RBBIRuleTableElement(doNOP, 132, 59,0, true, "tag-open") // 59
141
, new RBBIRuleTableElement(doStartTagValue, 128, 62,0, false, null ) // 60
142
, new RBBIRuleTableElement(doTagExpectedError, 255, 95,0, false, null ) // 61
143
, new RBBIRuleTableElement(doNOP, 132, 66,0, true, "tag-value") // 62
144
, new RBBIRuleTableElement(doNOP,'}', 66,0, false, null ) // 63
145
, new RBBIRuleTableElement(doTagDigit, 128, 62,0, true, null ) // 64
146
, new RBBIRuleTableElement(doTagExpectedError, 255, 95,0, false, null ) // 65
147
, new RBBIRuleTableElement(doNOP, 132, 66,0, true, "tag-close") // 66
148
, new RBBIRuleTableElement(doTagValue,'}', 69,0, true, null ) // 67
149
, new RBBIRuleTableElement(doTagExpectedError, 255, 95,0, false, null ) // 68
150
, new RBBIRuleTableElement(doExprCatOperator, 254, 21,0, false, "expr-cont-no-tag") // 69
151
, new RBBIRuleTableElement(doNOP, 132, 69,0, true, null ) // 70
152
, new RBBIRuleTableElement(doExprCatOperator, 131, 21,0, false, null ) // 71
153
, new RBBIRuleTableElement(doExprCatOperator,'[', 21,0, false, null ) // 72
154
, new RBBIRuleTableElement(doExprCatOperator,'(', 21,0, false, null ) // 73
155
, new RBBIRuleTableElement(doExprCatOperator,'$', 21,0, false, null ) // 74
156
, new RBBIRuleTableElement(doExprCatOperator,'.', 21,0, false, null ) // 75
157
, new RBBIRuleTableElement(doExprCatOperator,'/', 47,0, false, null ) // 76
158
, new RBBIRuleTableElement(doExprOrOperator,'|', 21,0, true, null ) // 77
159
, new RBBIRuleTableElement(doExprRParen,')', 255,0, true, null ) // 78
160
, new RBBIRuleTableElement(doExprFinished, 255, 255,0, false, null ) // 79
161
, new RBBIRuleTableElement(doStartVariableName,'$', 82,0, true, "scan-var-name") // 80
162
, new RBBIRuleTableElement(doNOP, 255, 95,0, false, null ) // 81
163
, new RBBIRuleTableElement(doNOP, 130, 84,0, true, "scan-var-start") // 82
164
, new RBBIRuleTableElement(doVariableNameExpectedErr, 255, 95,0, false, null ) // 83
165
, new RBBIRuleTableElement(doNOP, 129, 84,0, true, "scan-var-body") // 84
166
, new RBBIRuleTableElement(doEndVariableName, 255, 255,0, false, null ) // 85
167
, new RBBIRuleTableElement(doScanUnicodeSet,'[', 255,0, true, "scan-unicode-set") // 86
168
, new RBBIRuleTableElement(doScanUnicodeSet,'p', 255,0, true, null ) // 87
169
, new RBBIRuleTableElement(doScanUnicodeSet,'P', 255,0, true, null ) // 88
170
, new RBBIRuleTableElement(doNOP, 255, 95,0, false, null ) // 89
171
, new RBBIRuleTableElement(doNOP, 132, 90,0, true, "assign-or-rule") // 90
172
, new RBBIRuleTableElement(doStartAssign,'=', 21, 93, true, null ) // 91
173
, new RBBIRuleTableElement(doNOP, 255, 29, 8, false, null ) // 92
174
, new RBBIRuleTableElement(doEndAssign,';', 1,0, true, "assign-end") // 93
175
, new RBBIRuleTableElement(doRuleErrorAssignExpr, 255, 95,0, false, null ) // 94
176
, new RBBIRuleTableElement(doExit, 255, 95,0, true, "errorDeath") // 95
177
};
178 }
179
Popular Tags