|
Lines 1-675
Link Here
|
| 1 |
******************************************************************************* |
1 |
/*@bgen(jjtree) Generated By:JJTree: Do not edit this line. JSPEL.jj */ |
| 2 |
* Copyright (c) 2005 BEA Systems and others. |
2 |
/*@egen*//******************************************************************************* |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* Copyright (c) 2005 BEA Systems and others. |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* All rights reserved. This program and the accompanying materials |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 6 |
* http://www.eclipse.org/legal/epl-v10.html |
6 |
* which accompanies this distribution, and is available at |
| 7 |
* |
7 |
* http://www.eclipse.org/legal/epl-v10.html |
| 8 |
* Contributors: |
8 |
* |
| 9 |
* BEA Systems - initial implementation |
9 |
* Contributors: |
| 10 |
* |
10 |
* BEA Systems - initial implementation |
| 11 |
*******************************************************************************/ |
11 |
* |
| 12 |
/*@bgen(jjtree) Generated By:JJTree: Do not edit this line. JSPEL.jj */ |
12 |
*******************************************************************************/ |
| 13 |
/*@egen*//* I know that haing some of these options on one line is rude but |
13 |
/* I know that having some of these options on one line is rude but |
| 14 |
* if we don't do that the line number reported from javacc are off |
14 |
* if we don't do that the line number reported from javacc are off |
| 15 |
* which, trust me, is far more annoying. --tcarroll@bea.com |
15 |
* which, trust me, is far more annoying. --tcarroll@bea.com |
| 16 |
*/ |
16 |
*/ |
| 17 |
options { |
17 |
options { |
| 18 |
JAVA_UNICODE_ESCAPE = false; |
18 |
JAVA_UNICODE_ESCAPE = false; |
| 19 |
UNICODE_INPUT = true; |
19 |
UNICODE_INPUT = true; |
| 20 |
STATIC = false; |
20 |
STATIC = false; |
| 21 |
OPTIMIZE_TOKEN_MANAGER = true; |
21 |
OPTIMIZE_TOKEN_MANAGER = true; |
| 22 |
} |
22 |
} |
| 23 |
|
23 |
|
| 24 |
PARSER_BEGIN(JSPELParser) |
24 |
PARSER_BEGIN(JSPELParser) |
| 25 |
|
25 |
|
| 26 |
package org.eclipse.jst.jsp.core.internal.java.jspel; |
26 |
package org.eclipse.jst.jsp.core.internal.java.jspel; |
| 27 |
|
27 |
|
| 28 |
public class JSPELParser/*@bgen(jjtree)*/implements JSPELParserTreeConstants/*@egen*/ {/*@bgen(jjtree)*/ |
28 |
public class JSPELParser/*@bgen(jjtree)*/implements JSPELParserTreeConstants/*@egen*/ {/*@bgen(jjtree)*/ |
| 29 |
protected JJTJSPELParserState jjtree = new JJTJSPELParserState(); |
29 |
protected JJTJSPELParserState jjtree = new JJTJSPELParserState(); |
| 30 |
|
30 |
|
| 31 |
/*@egen*/ |
31 |
/*@egen*/ |
| 32 |
|
32 |
|
| 33 |
void jjtreeOpenNodeScope(Node n) |
33 |
void jjtreeOpenNodeScope(Node n) |
| 34 |
{ |
34 |
{ |
| 35 |
((SimpleNode)n).setFirstToken(getToken(1)); |
35 |
((SimpleNode)n).setFirstToken(getToken(1)); |
| 36 |
} |
36 |
} |
| 37 |
|
37 |
|
| 38 |
void jjtreeCloseNodeScope(Node n) |
38 |
void jjtreeCloseNodeScope(Node n) |
| 39 |
{ |
39 |
{ |
| 40 |
((SimpleNode)n).setLastToken(getToken(0)); |
40 |
((SimpleNode)n).setLastToken(getToken(0)); |
| 41 |
} |
41 |
} |
| 42 |
|
42 |
|
| 43 |
public static JSPELParser createParser(java.lang.String input) { |
43 |
public static JSPELParser createParser(java.lang.String input) { |
| 44 |
java.io.StringReader reader = new java.io.StringReader(input); |
44 |
java.io.StringReader reader = new java.io.StringReader(input); |
| 45 |
return new JSPELParser(reader); |
45 |
return new JSPELParser(reader); |
| 46 |
} |
46 |
} |
| 47 |
|
47 |
|
| 48 |
public void ReInit(java.lang.String input) { |
48 |
public void ReInit(java.lang.String input) { |
| 49 |
java.io.StringReader reader = new java.io.StringReader(input); |
49 |
java.io.StringReader reader = new java.io.StringReader(input); |
| 50 |
ReInit(reader); |
50 |
ReInit(reader); |
| 51 |
} |
51 |
} |
| 52 |
|
52 |
|
| 53 |
} |
53 |
} |
| 54 |
|
54 |
|
| 55 |
PARSER_END(JSPELParser) |
55 |
PARSER_END(JSPELParser) |
| 56 |
|
56 |
|
| 57 |
SKIP : |
57 |
SKIP : |
| 58 |
{ |
58 |
{ |
| 59 |
" " |
59 |
" " |
| 60 |
| "\t" |
60 |
| "\t" |
| 61 |
| "\n" |
61 |
| "\n" |
| 62 |
| "\r" |
62 |
| "\r" |
| 63 |
} |
63 |
} |
| 64 |
|
64 |
|
| 65 |
TOKEN : |
65 |
TOKEN : |
| 66 |
{ |
66 |
{ |
| 67 |
/* Literals */ |
67 |
/* Literals */ |
| 68 |
< INTEGER_LITERAL: ["0"-"9"] (["0"-"9"])* > |
68 |
< INTEGER_LITERAL: ["0"-"9"] (["0"-"9"])* > |
| 69 |
| |
69 |
| |
| 70 |
< FLOATING_POINT_LITERAL: |
70 |
< FLOATING_POINT_LITERAL: |
| 71 |
(["0"-"9"])+ "." (["0"-"9"])* (<EXPONENT>)? |
71 |
(["0"-"9"])+ "." (["0"-"9"])* (<EXPONENT>)? |
| 72 |
| "." (["0"-"9"])+ (<EXPONENT>)? |
72 |
| "." (["0"-"9"])+ (<EXPONENT>)? |
| 73 |
| (["0"-"9"])+ <EXPONENT> |
73 |
| (["0"-"9"])+ <EXPONENT> |
| 74 |
> |
74 |
> |
| 75 |
| |
75 |
| |
| 76 |
< #EXPONENT: ["e","E"] (["+","-"])? (["0"-"9"])+ > |
76 |
< #EXPONENT: ["e","E"] (["+","-"])? (["0"-"9"])+ > |
| 77 |
| |
77 |
| |
| 78 |
< STRING_LITERAL: |
78 |
< STRING_LITERAL: |
| 79 |
("\"" ((~["\"","\\"]) | ("\\" ( ["\\","\""] )))* "\"") | |
79 |
("\"" ((~["\"","\\"]) | ("\\" ( ["\\","\""] )))* "\"") | |
| 80 |
("\'" ((~["\'","\\"]) | ("\\" ( ["\\","\'"] )))* "\'") |
80 |
("\'" ((~["\'","\\"]) | ("\\" ( ["\\","\'"] )))* "\'") |
| 81 |
> |
81 |
> |
| 82 |
| |
82 |
| |
| 83 |
< BADLY_ESCAPED_STRING_LITERAL: |
83 |
< BADLY_ESCAPED_STRING_LITERAL: |
| 84 |
("\"" (~["\"","\\"])* ("\\" ( ~["\\","\""] ))) | |
84 |
("\"" (~["\"","\\"])* ("\\" ( ~["\\","\""] ))) | |
| 85 |
("\'" (~["\'","\\"])* ("\\" ( ~["\\","\'"] ))) |
85 |
("\'" (~["\'","\\"])* ("\\" ( ~["\\","\'"] ))) |
| 86 |
> |
86 |
> |
| 87 |
|
87 |
|
| 88 |
/* Reserved Words and Symbols */ |
88 |
/* Reserved Words and Symbols */ |
| 89 |
| < TRUE: "true" > |
89 |
| < TRUE: "true" > |
| 90 |
| < FALSE: "false" > |
90 |
| < FALSE: "false" > |
| 91 |
| < NULL: "null" > |
91 |
| < NULL: "null" > |
| 92 |
| < DOT: "." > |
92 |
| < DOT: "." > |
| 93 |
| < GT1: ">" > |
93 |
| < GT1: ">" > |
| 94 |
| < GT2: "gt" > |
94 |
| < GT2: "gt" > |
| 95 |
| < LT1: "<" > |
95 |
| < LT1: "<" > |
| 96 |
| < LT2: "lt" > |
96 |
| < LT2: "lt" > |
| 97 |
| < EQ1: "==" > |
97 |
| < EQ1: "==" > |
| 98 |
| < EQ2: "eq" > |
98 |
| < EQ2: "eq" > |
| 99 |
| < LE1: "<=" > |
99 |
| < LE1: "<=" > |
| 100 |
| < LE2: "le" > |
100 |
| < LE2: "le" > |
| 101 |
| < GE1: ">=" > |
101 |
| < GE1: ">=" > |
| 102 |
| < GE2: "ge" > |
102 |
| < GE2: "ge" > |
| 103 |
| < NEQ1: "!=" > |
103 |
| < NEQ1: "!=" > |
| 104 |
| < NEQ2: "ne" > |
104 |
| < NEQ2: "ne" > |
| 105 |
| < LPAREN: "(" > |
105 |
| < LPAREN: "(" > |
| 106 |
| < RPAREN: ")" > |
106 |
| < RPAREN: ")" > |
| 107 |
| < COMMA: "," > |
107 |
| < COMMA: "," > |
| 108 |
| < COLON: ":" > |
108 |
| < COLON: ":" > |
| 109 |
| < LBRACKET: "[" > |
109 |
| < LBRACKET: "[" > |
| 110 |
| < RBRACKET: "]" > |
110 |
| < RBRACKET: "]" > |
| 111 |
| < PLUS: "+" > |
111 |
| < PLUS: "+" > |
| 112 |
| < MINUS: "-" > |
112 |
| < MINUS: "-" > |
| 113 |
| < MULTIPLY: "*" > |
113 |
| < MULTIPLY: "*" > |
| 114 |
| < DIVIDE1: "/" > |
114 |
| < DIVIDE1: "/" > |
| 115 |
| < DIVIDE2: "div" > |
115 |
| < DIVIDE2: "div" > |
| 116 |
| < MODULUS1: "%" > |
116 |
| < MODULUS1: "%" > |
| 117 |
| < MODULUS2: "mod" > |
117 |
| < MODULUS2: "mod" > |
| 118 |
| < NOT1: "not" > |
118 |
| < NOT1: "not" > |
| 119 |
| < NOT2: "!" > |
119 |
| < NOT2: "!" > |
| 120 |
| < AND1: "and" > |
120 |
| < AND1: "and" > |
| 121 |
| < AND2: "&&" > |
121 |
| < AND2: "&&" > |
| 122 |
| < OR1: "or" > |
122 |
| < OR1: "or" > |
| 123 |
| < OR2: "||" > |
123 |
| < OR2: "||" > |
| 124 |
| < EMPTY: "empty" > |
124 |
| < EMPTY: "empty" > |
| 125 |
| < COND: "?" > |
125 |
| < COND: "?" > |
| 126 |
|
126 |
|
| 127 |
/* Identifiers */ |
127 |
/* Identifiers */ |
| 128 |
|
128 |
|
| 129 |
| < IDENTIFIER: (<LETTER>|<IMPL_OBJ_START>) (<LETTER>|<DIGIT>)* > |
129 |
| < IDENTIFIER: (<LETTER>|<IMPL_OBJ_START>) (<LETTER>|<DIGIT>)* > |
| 130 |
| < #IMPL_OBJ_START: "#" > |
130 |
| < #IMPL_OBJ_START: "#" > |
| 131 |
| |
131 |
| |
| 132 |
< #LETTER: |
132 |
< #LETTER: |
| 133 |
[ |
133 |
[ |
| 134 |
"$", |
134 |
"$", |
| 135 |
"A"-"Z", |
135 |
"A"-"Z", |
| 136 |
"_", |
136 |
"_", |
| 137 |
"a"-"z", |
137 |
"a"-"z", |
| 138 |
"\u00c0"-"\u00d6", |
138 |
"\u00c0"-"\u00d6", |
| 139 |
"\u00d8"-"\u00f6", |
139 |
"\u00d8"-"\u00f6", |
| 140 |
"\u00f8"-"\u00ff", |
140 |
"\u00f8"-"\u00ff", |
| 141 |
"\u0100"-"\u1fff", |
141 |
"\u0100"-"\u1fff", |
| 142 |
"\u3040"-"\u318f", |
142 |
"\u3040"-"\u318f", |
| 143 |
"\u3300"-"\u337f", |
143 |
"\u3300"-"\u337f", |
| 144 |
"\u3400"-"\u3d2d", |
144 |
"\u3400"-"\u3d2d", |
| 145 |
"\u4e00"-"\u9fff", |
145 |
"\u4e00"-"\u9fff", |
| 146 |
"\uf900"-"\ufaff" |
146 |
"\uf900"-"\ufaff" |
| 147 |
] |
147 |
] |
| 148 |
> |
148 |
> |
| 149 |
| |
149 |
| |
| 150 |
< #DIGIT: |
150 |
< #DIGIT: |
| 151 |
[ |
151 |
[ |
| 152 |
"0"-"9", |
152 |
"0"-"9", |
| 153 |
"\u0660"-"\u0669", |
153 |
"\u0660"-"\u0669", |
| 154 |
"\u06f0"-"\u06f9", |
154 |
"\u06f0"-"\u06f9", |
| 155 |
"\u0966"-"\u096f", |
155 |
"\u0966"-"\u096f", |
| 156 |
"\u09e6"-"\u09ef", |
156 |
"\u09e6"-"\u09ef", |
| 157 |
"\u0a66"-"\u0a6f", |
157 |
"\u0a66"-"\u0a6f", |
| 158 |
"\u0ae6"-"\u0aef", |
158 |
"\u0ae6"-"\u0aef", |
| 159 |
"\u0b66"-"\u0b6f", |
159 |
"\u0b66"-"\u0b6f", |
| 160 |
"\u0be7"-"\u0bef", |
160 |
"\u0be7"-"\u0bef", |
| 161 |
"\u0c66"-"\u0c6f", |
161 |
"\u0c66"-"\u0c6f", |
| 162 |
"\u0ce6"-"\u0cef", |
162 |
"\u0ce6"-"\u0cef", |
| 163 |
"\u0d66"-"\u0d6f", |
163 |
"\u0d66"-"\u0d6f", |
| 164 |
"\u0e50"-"\u0e59", |
164 |
"\u0e50"-"\u0e59", |
| 165 |
"\u0ed0"-"\u0ed9", |
165 |
"\u0ed0"-"\u0ed9", |
| 166 |
"\u1040"-"\u1049" |
166 |
"\u1040"-"\u1049" |
| 167 |
] |
167 |
] |
| 168 |
> |
168 |
> |
| 169 |
} |
169 |
} |
| 170 |
|
170 |
|
| 171 |
ASTExpression Expression() : {/*@bgen(jjtree) Expression */ |
171 |
ASTExpression Expression() : {/*@bgen(jjtree) Expression */ |
| 172 |
ASTExpression jjtn000 = new ASTExpression(JJTEXPRESSION); |
172 |
ASTExpression jjtn000 = new ASTExpression(JJTEXPRESSION); |
| 173 |
boolean jjtc000 = true; |
173 |
boolean jjtc000 = true; |
| 174 |
jjtree.openNodeScope(jjtn000); |
174 |
jjtree.openNodeScope(jjtn000); |
| 175 |
jjtreeOpenNodeScope(jjtn000); |
175 |
jjtreeOpenNodeScope(jjtn000); |
| 176 |
/*@egen*/} |
176 |
/*@egen*/} |
| 177 |
{/*@bgen(jjtree) Expression */ |
177 |
{/*@bgen(jjtree) Expression */ |
| 178 |
try { |
178 |
try { |
| 179 |
/*@egen*/ |
179 |
/*@egen*/ |
| 180 |
(LOOKAHEAD("?") ChoiceExpression() | OrExpression())/*@bgen(jjtree)*/ |
180 |
(LOOKAHEAD(OrExpression() <COND>) ChoiceExpression() | OrExpression())/*@bgen(jjtree)*/ |
| 181 |
{ |
181 |
{ |
| 182 |
jjtree.closeNodeScope(jjtn000, true); |
182 |
jjtree.closeNodeScope(jjtn000, true); |
| 183 |
jjtc000 = false; |
183 |
jjtc000 = false; |
| 184 |
jjtreeCloseNodeScope(jjtn000); |
184 |
jjtreeCloseNodeScope(jjtn000); |
| 185 |
} |
185 |
} |
| 186 |
/*@egen*/ { return jjtn000; }/*@bgen(jjtree)*/ |
186 |
/*@egen*/ { return jjtn000; }/*@bgen(jjtree)*/ |
| 187 |
} catch (Throwable jjte000) { |
187 |
} catch (Throwable jjte000) { |
| 188 |
if (jjtc000) { |
188 |
if (jjtc000) { |
| 189 |
jjtree.clearNodeScope(jjtn000); |
189 |
jjtree.clearNodeScope(jjtn000); |
| 190 |
jjtc000 = false; |
190 |
jjtc000 = false; |
| 191 |
} else { |
191 |
} else { |
| 192 |
jjtree.popNode(); |
192 |
jjtree.popNode(); |
| 193 |
} |
193 |
} |
| 194 |
if (jjte000 instanceof RuntimeException) { |
194 |
if (jjte000 instanceof RuntimeException) { |
| 195 |
throw (RuntimeException)jjte000; |
195 |
throw (RuntimeException)jjte000; |
| 196 |
} |
196 |
} |
| 197 |
if (jjte000 instanceof ParseException) { |
197 |
if (jjte000 instanceof ParseException) { |
| 198 |
throw (ParseException)jjte000; |
198 |
throw (ParseException)jjte000; |
| 199 |
} |
199 |
} |
| 200 |
throw (Error)jjte000; |
200 |
throw (Error)jjte000; |
| 201 |
} finally { |
201 |
} finally { |
| 202 |
if (jjtc000) { |
202 |
if (jjtc000) { |
| 203 |
jjtree.closeNodeScope(jjtn000, true); |
203 |
jjtree.closeNodeScope(jjtn000, true); |
| 204 |
jjtreeCloseNodeScope(jjtn000); |
204 |
jjtreeCloseNodeScope(jjtn000); |
| 205 |
} |
205 |
} |
| 206 |
} |
206 |
} |
| 207 |
/*@egen*/ |
207 |
/*@egen*/ |
| 208 |
} |
208 |
} |
| 209 |
|
209 |
|
| 210 |
void OrExpression() : |
210 |
void OrExpression() : |
| 211 |
{/*@bgen(jjtree) #OrExpression(> 1) */ |
211 |
{/*@bgen(jjtree) #OrExpression(> 1) */ |
| 212 |
ASTOrExpression jjtn000 = new ASTOrExpression(JJTOREXPRESSION); |
212 |
ASTOrExpression jjtn000 = new ASTOrExpression(JJTOREXPRESSION); |
| 213 |
boolean jjtc000 = true; |
213 |
boolean jjtc000 = true; |
| 214 |
jjtree.openNodeScope(jjtn000); |
214 |
jjtree.openNodeScope(jjtn000); |
| 215 |
jjtreeOpenNodeScope(jjtn000); |
215 |
jjtreeOpenNodeScope(jjtn000); |
| 216 |
/*@egen*/ |
216 |
/*@egen*/ |
| 217 |
Token t; |
217 |
Token t; |
| 218 |
} |
218 |
} |
| 219 |
{/*@bgen(jjtree) #OrExpression(> 1) */ |
219 |
{/*@bgen(jjtree) #OrExpression(> 1) */ |
| 220 |
try { |
220 |
try { |
| 221 |
/*@egen*/ |
221 |
/*@egen*/ |
| 222 |
AndExpression() ((t = <OR1> | t = <OR2>) { jjtn000.addOperatorToken(t); } |
222 |
AndExpression() ((t = <OR1> | t = <OR2>) { jjtn000.addOperatorToken(t); } |
| 223 |
AndExpression())*/*@bgen(jjtree)*/ |
223 |
AndExpression())*/*@bgen(jjtree)*/ |
| 224 |
} catch (Throwable jjte000) { |
224 |
} catch (Throwable jjte000) { |
| 225 |
if (jjtc000) { |
225 |
if (jjtc000) { |
| 226 |
jjtree.clearNodeScope(jjtn000); |
226 |
jjtree.clearNodeScope(jjtn000); |
| 227 |
jjtc000 = false; |
227 |
jjtc000 = false; |
| 228 |
} else { |
228 |
} else { |
| 229 |
jjtree.popNode(); |
229 |
jjtree.popNode(); |
| 230 |
} |
230 |
} |
| 231 |
if (jjte000 instanceof RuntimeException) { |
231 |
if (jjte000 instanceof RuntimeException) { |
| 232 |
throw (RuntimeException)jjte000; |
232 |
throw (RuntimeException)jjte000; |
| 233 |
} |
233 |
} |
| 234 |
if (jjte000 instanceof ParseException) { |
234 |
if (jjte000 instanceof ParseException) { |
| 235 |
throw (ParseException)jjte000; |
235 |
throw (ParseException)jjte000; |
| 236 |
} |
236 |
} |
| 237 |
throw (Error)jjte000; |
237 |
throw (Error)jjte000; |
| 238 |
} finally { |
238 |
} finally { |
| 239 |
if (jjtc000) { |
239 |
if (jjtc000) { |
| 240 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
240 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
| 241 |
jjtreeCloseNodeScope(jjtn000); |
241 |
jjtreeCloseNodeScope(jjtn000); |
| 242 |
} |
242 |
} |
| 243 |
} |
243 |
} |
| 244 |
/*@egen*/ |
244 |
/*@egen*/ |
| 245 |
} |
245 |
} |
| 246 |
|
246 |
|
| 247 |
void AndExpression() : |
247 |
void AndExpression() : |
| 248 |
{/*@bgen(jjtree) #AndExpression(> 1) */ |
248 |
{/*@bgen(jjtree) #AndExpression(> 1) */ |
| 249 |
ASTAndExpression jjtn000 = new ASTAndExpression(JJTANDEXPRESSION); |
249 |
ASTAndExpression jjtn000 = new ASTAndExpression(JJTANDEXPRESSION); |
| 250 |
boolean jjtc000 = true; |
250 |
boolean jjtc000 = true; |
| 251 |
jjtree.openNodeScope(jjtn000); |
251 |
jjtree.openNodeScope(jjtn000); |
| 252 |
jjtreeOpenNodeScope(jjtn000); |
252 |
jjtreeOpenNodeScope(jjtn000); |
| 253 |
/*@egen*/ |
253 |
/*@egen*/ |
| 254 |
Token t; |
254 |
Token t; |
| 255 |
} |
255 |
} |
| 256 |
{/*@bgen(jjtree) #AndExpression(> 1) */ |
256 |
{/*@bgen(jjtree) #AndExpression(> 1) */ |
| 257 |
try { |
257 |
try { |
| 258 |
/*@egen*/ |
258 |
/*@egen*/ |
| 259 |
EqualityExpression() ((t = <AND1> | t = <AND2>) { jjtn000.addOperatorToken(t); } |
259 |
EqualityExpression() ((t = <AND1> | t = <AND2>) { jjtn000.addOperatorToken(t); } |
| 260 |
EqualityExpression())*/*@bgen(jjtree)*/ |
260 |
EqualityExpression())*/*@bgen(jjtree)*/ |
| 261 |
} catch (Throwable jjte000) { |
261 |
} catch (Throwable jjte000) { |
| 262 |
if (jjtc000) { |
262 |
if (jjtc000) { |
| 263 |
jjtree.clearNodeScope(jjtn000); |
263 |
jjtree.clearNodeScope(jjtn000); |
| 264 |
jjtc000 = false; |
264 |
jjtc000 = false; |
| 265 |
} else { |
265 |
} else { |
| 266 |
jjtree.popNode(); |
266 |
jjtree.popNode(); |
| 267 |
} |
267 |
} |
| 268 |
if (jjte000 instanceof RuntimeException) { |
268 |
if (jjte000 instanceof RuntimeException) { |
| 269 |
throw (RuntimeException)jjte000; |
269 |
throw (RuntimeException)jjte000; |
| 270 |
} |
270 |
} |
| 271 |
if (jjte000 instanceof ParseException) { |
271 |
if (jjte000 instanceof ParseException) { |
| 272 |
throw (ParseException)jjte000; |
272 |
throw (ParseException)jjte000; |
| 273 |
} |
273 |
} |
| 274 |
throw (Error)jjte000; |
274 |
throw (Error)jjte000; |
| 275 |
} finally { |
275 |
} finally { |
| 276 |
if (jjtc000) { |
276 |
if (jjtc000) { |
| 277 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
277 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
| 278 |
jjtreeCloseNodeScope(jjtn000); |
278 |
jjtreeCloseNodeScope(jjtn000); |
| 279 |
} |
279 |
} |
| 280 |
} |
280 |
} |
| 281 |
/*@egen*/ |
281 |
/*@egen*/ |
| 282 |
} |
282 |
} |
| 283 |
|
283 |
|
| 284 |
void EqualityExpression() : |
284 |
void EqualityExpression() : |
| 285 |
{/*@bgen(jjtree) #EqualityExpression(> 1) */ |
285 |
{/*@bgen(jjtree) #EqualityExpression(> 1) */ |
| 286 |
ASTEqualityExpression jjtn000 = new ASTEqualityExpression(JJTEQUALITYEXPRESSION); |
286 |
ASTEqualityExpression jjtn000 = new ASTEqualityExpression(JJTEQUALITYEXPRESSION); |
| 287 |
boolean jjtc000 = true; |
287 |
boolean jjtc000 = true; |
| 288 |
jjtree.openNodeScope(jjtn000); |
288 |
jjtree.openNodeScope(jjtn000); |
| 289 |
jjtreeOpenNodeScope(jjtn000); |
289 |
jjtreeOpenNodeScope(jjtn000); |
| 290 |
/*@egen*/ |
290 |
/*@egen*/ |
| 291 |
Token t; |
291 |
Token t; |
| 292 |
} |
292 |
} |
| 293 |
{/*@bgen(jjtree) #EqualityExpression(> 1) */ |
293 |
{/*@bgen(jjtree) #EqualityExpression(> 1) */ |
| 294 |
try { |
294 |
try { |
| 295 |
/*@egen*/ |
295 |
/*@egen*/ |
| 296 |
RelationalExpression() |
296 |
RelationalExpression() |
| 297 |
((t = <EQ1> | t = <EQ2> | t = <NEQ1> | t = <NEQ2>) { jjtn000.addOperatorToken(t); } |
297 |
((t = <EQ1> | t = <EQ2> | t = <NEQ1> | t = <NEQ2>) { jjtn000.addOperatorToken(t); } |
| 298 |
RelationalExpression())*/*@bgen(jjtree)*/ |
298 |
RelationalExpression())*/*@bgen(jjtree)*/ |
| 299 |
} catch (Throwable jjte000) { |
299 |
} catch (Throwable jjte000) { |
| 300 |
if (jjtc000) { |
300 |
if (jjtc000) { |
| 301 |
jjtree.clearNodeScope(jjtn000); |
301 |
jjtree.clearNodeScope(jjtn000); |
| 302 |
jjtc000 = false; |
302 |
jjtc000 = false; |
| 303 |
} else { |
303 |
} else { |
| 304 |
jjtree.popNode(); |
304 |
jjtree.popNode(); |
| 305 |
} |
305 |
} |
| 306 |
if (jjte000 instanceof RuntimeException) { |
306 |
if (jjte000 instanceof RuntimeException) { |
| 307 |
throw (RuntimeException)jjte000; |
307 |
throw (RuntimeException)jjte000; |
| 308 |
} |
308 |
} |
| 309 |
if (jjte000 instanceof ParseException) { |
309 |
if (jjte000 instanceof ParseException) { |
| 310 |
throw (ParseException)jjte000; |
310 |
throw (ParseException)jjte000; |
| 311 |
} |
311 |
} |
| 312 |
throw (Error)jjte000; |
312 |
throw (Error)jjte000; |
| 313 |
} finally { |
313 |
} finally { |
| 314 |
if (jjtc000) { |
314 |
if (jjtc000) { |
| 315 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
315 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
| 316 |
jjtreeCloseNodeScope(jjtn000); |
316 |
jjtreeCloseNodeScope(jjtn000); |
| 317 |
} |
317 |
} |
| 318 |
} |
318 |
} |
| 319 |
/*@egen*/ |
319 |
/*@egen*/ |
| 320 |
} |
320 |
} |
| 321 |
|
321 |
|
| 322 |
void RelationalExpression() : |
322 |
void RelationalExpression() : |
| 323 |
{/*@bgen(jjtree) #RelationalExpression(> 1) */ |
323 |
{/*@bgen(jjtree) #RelationalExpression(> 1) */ |
| 324 |
ASTRelationalExpression jjtn000 = new ASTRelationalExpression(JJTRELATIONALEXPRESSION); |
324 |
ASTRelationalExpression jjtn000 = new ASTRelationalExpression(JJTRELATIONALEXPRESSION); |
| 325 |
boolean jjtc000 = true; |
325 |
boolean jjtc000 = true; |
| 326 |
jjtree.openNodeScope(jjtn000); |
326 |
jjtree.openNodeScope(jjtn000); |
| 327 |
jjtreeOpenNodeScope(jjtn000); |
327 |
jjtreeOpenNodeScope(jjtn000); |
| 328 |
/*@egen*/ |
328 |
/*@egen*/ |
| 329 |
Token t; |
329 |
Token t; |
| 330 |
} |
330 |
} |
| 331 |
{/*@bgen(jjtree) #RelationalExpression(> 1) */ |
331 |
{/*@bgen(jjtree) #RelationalExpression(> 1) */ |
| 332 |
try { |
332 |
try { |
| 333 |
/*@egen*/ |
333 |
/*@egen*/ |
| 334 |
AddExpression() |
334 |
AddExpression() |
| 335 |
( |
335 |
( |
| 336 |
(t = <LT1> | t = <LT2> | t = <GT1> | t = <GT2> | t = <GE1> | t = <GE2> | t = <LE1> | t = <LE2>) { jjtn000.addOperatorToken(t); } |
336 |
(t = <LT1> | t = <LT2> | t = <GT1> | t = <GT2> | t = <GE1> | t = <GE2> | t = <LE1> | t = <LE2>) { jjtn000.addOperatorToken(t); } |
| 337 |
AddExpression() |
337 |
AddExpression() |
| 338 |
)*/*@bgen(jjtree)*/ |
338 |
)*/*@bgen(jjtree)*/ |
| 339 |
} catch (Throwable jjte000) { |
339 |
} catch (Throwable jjte000) { |
| 340 |
if (jjtc000) { |
340 |
if (jjtc000) { |
| 341 |
jjtree.clearNodeScope(jjtn000); |
341 |
jjtree.clearNodeScope(jjtn000); |
| 342 |
jjtc000 = false; |
342 |
jjtc000 = false; |
| 343 |
} else { |
343 |
} else { |
| 344 |
jjtree.popNode(); |
344 |
jjtree.popNode(); |
| 345 |
} |
345 |
} |
| 346 |
if (jjte000 instanceof RuntimeException) { |
346 |
if (jjte000 instanceof RuntimeException) { |
| 347 |
throw (RuntimeException)jjte000; |
347 |
throw (RuntimeException)jjte000; |
| 348 |
} |
348 |
} |
| 349 |
if (jjte000 instanceof ParseException) { |
349 |
if (jjte000 instanceof ParseException) { |
| 350 |
throw (ParseException)jjte000; |
350 |
throw (ParseException)jjte000; |
| 351 |
} |
351 |
} |
| 352 |
throw (Error)jjte000; |
352 |
throw (Error)jjte000; |
| 353 |
} finally { |
353 |
} finally { |
| 354 |
if (jjtc000) { |
354 |
if (jjtc000) { |
| 355 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
355 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
| 356 |
jjtreeCloseNodeScope(jjtn000); |
356 |
jjtreeCloseNodeScope(jjtn000); |
| 357 |
} |
357 |
} |
| 358 |
} |
358 |
} |
| 359 |
/*@egen*/ |
359 |
/*@egen*/ |
| 360 |
} |
360 |
} |
| 361 |
|
361 |
|
| 362 |
void AddExpression() : |
362 |
void AddExpression() : |
| 363 |
{/*@bgen(jjtree) #AddExpression(> 1) */ |
363 |
{/*@bgen(jjtree) #AddExpression(> 1) */ |
| 364 |
ASTAddExpression jjtn000 = new ASTAddExpression(JJTADDEXPRESSION); |
364 |
ASTAddExpression jjtn000 = new ASTAddExpression(JJTADDEXPRESSION); |
| 365 |
boolean jjtc000 = true; |
365 |
boolean jjtc000 = true; |
| 366 |
jjtree.openNodeScope(jjtn000); |
366 |
jjtree.openNodeScope(jjtn000); |
| 367 |
jjtreeOpenNodeScope(jjtn000); |
367 |
jjtreeOpenNodeScope(jjtn000); |
| 368 |
/*@egen*/ |
368 |
/*@egen*/ |
| 369 |
Token t; |
369 |
Token t; |
| 370 |
} |
370 |
} |
| 371 |
{/*@bgen(jjtree) #AddExpression(> 1) */ |
371 |
{/*@bgen(jjtree) #AddExpression(> 1) */ |
| 372 |
try { |
372 |
try { |
| 373 |
/*@egen*/ |
373 |
/*@egen*/ |
| 374 |
MultiplyExpression() ((t = <PLUS> | t = <MINUS>) { jjtn000.addOperatorToken(t); } |
374 |
MultiplyExpression() ((t = <PLUS> | t = <MINUS>) { jjtn000.addOperatorToken(t); } |
| 375 |
MultiplyExpression())*/*@bgen(jjtree)*/ |
375 |
MultiplyExpression())*/*@bgen(jjtree)*/ |
| 376 |
} catch (Throwable jjte000) { |
376 |
} catch (Throwable jjte000) { |
| 377 |
if (jjtc000) { |
377 |
if (jjtc000) { |
| 378 |
jjtree.clearNodeScope(jjtn000); |
378 |
jjtree.clearNodeScope(jjtn000); |
| 379 |
jjtc000 = false; |
379 |
jjtc000 = false; |
| 380 |
} else { |
380 |
} else { |
| 381 |
jjtree.popNode(); |
381 |
jjtree.popNode(); |
| 382 |
} |
382 |
} |
| 383 |
if (jjte000 instanceof RuntimeException) { |
383 |
if (jjte000 instanceof RuntimeException) { |
| 384 |
throw (RuntimeException)jjte000; |
384 |
throw (RuntimeException)jjte000; |
| 385 |
} |
385 |
} |
| 386 |
if (jjte000 instanceof ParseException) { |
386 |
if (jjte000 instanceof ParseException) { |
| 387 |
throw (ParseException)jjte000; |
387 |
throw (ParseException)jjte000; |
| 388 |
} |
388 |
} |
| 389 |
throw (Error)jjte000; |
389 |
throw (Error)jjte000; |
| 390 |
} finally { |
390 |
} finally { |
| 391 |
if (jjtc000) { |
391 |
if (jjtc000) { |
| 392 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
392 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
| 393 |
jjtreeCloseNodeScope(jjtn000); |
393 |
jjtreeCloseNodeScope(jjtn000); |
| 394 |
} |
394 |
} |
| 395 |
} |
395 |
} |
| 396 |
/*@egen*/ |
396 |
/*@egen*/ |
| 397 |
} |
397 |
} |
| 398 |
|
398 |
|
| 399 |
void MultiplyExpression() : |
399 |
void MultiplyExpression() : |
| 400 |
{/*@bgen(jjtree) #MultiplyExpression(> 1) */ |
400 |
{/*@bgen(jjtree) #MultiplyExpression(> 1) */ |
| 401 |
ASTMultiplyExpression jjtn000 = new ASTMultiplyExpression(JJTMULTIPLYEXPRESSION); |
401 |
ASTMultiplyExpression jjtn000 = new ASTMultiplyExpression(JJTMULTIPLYEXPRESSION); |
| 402 |
boolean jjtc000 = true; |
402 |
boolean jjtc000 = true; |
| 403 |
jjtree.openNodeScope(jjtn000); |
403 |
jjtree.openNodeScope(jjtn000); |
| 404 |
jjtreeOpenNodeScope(jjtn000); |
404 |
jjtreeOpenNodeScope(jjtn000); |
| 405 |
/*@egen*/ |
405 |
/*@egen*/ |
| 406 |
Token t; |
406 |
Token t; |
| 407 |
} |
407 |
} |
| 408 |
{/*@bgen(jjtree) #MultiplyExpression(> 1) */ |
408 |
{/*@bgen(jjtree) #MultiplyExpression(> 1) */ |
| 409 |
try { |
409 |
try { |
| 410 |
/*@egen*/ |
410 |
/*@egen*/ |
| 411 |
UnaryExpression() ( |
411 |
UnaryExpression() ( |
| 412 |
( t = <MULTIPLY> | t = <DIVIDE1> | t = <DIVIDE2> | t = <MODULUS1> | t = <MODULUS2>) { jjtn000.addOperatorToken(t); } |
412 |
( t = <MULTIPLY> | t = <DIVIDE1> | t = <DIVIDE2> | t = <MODULUS1> | t = <MODULUS2>) { jjtn000.addOperatorToken(t); } |
| 413 |
UnaryExpression() |
413 |
UnaryExpression() |
| 414 |
)*/*@bgen(jjtree)*/ |
414 |
)*/*@bgen(jjtree)*/ |
| 415 |
} catch (Throwable jjte000) { |
415 |
} catch (Throwable jjte000) { |
| 416 |
if (jjtc000) { |
416 |
if (jjtc000) { |
| 417 |
jjtree.clearNodeScope(jjtn000); |
417 |
jjtree.clearNodeScope(jjtn000); |
| 418 |
jjtc000 = false; |
418 |
jjtc000 = false; |
| 419 |
} else { |
419 |
} else { |
| 420 |
jjtree.popNode(); |
420 |
jjtree.popNode(); |
| 421 |
} |
421 |
} |
| 422 |
if (jjte000 instanceof RuntimeException) { |
422 |
if (jjte000 instanceof RuntimeException) { |
| 423 |
throw (RuntimeException)jjte000; |
423 |
throw (RuntimeException)jjte000; |
| 424 |
} |
424 |
} |
| 425 |
if (jjte000 instanceof ParseException) { |
425 |
if (jjte000 instanceof ParseException) { |
| 426 |
throw (ParseException)jjte000; |
426 |
throw (ParseException)jjte000; |
| 427 |
} |
427 |
} |
| 428 |
throw (Error)jjte000; |
428 |
throw (Error)jjte000; |
| 429 |
} finally { |
429 |
} finally { |
| 430 |
if (jjtc000) { |
430 |
if (jjtc000) { |
| 431 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
431 |
jjtree.closeNodeScope(jjtn000, jjtree.nodeArity() > 1); |
| 432 |
jjtreeCloseNodeScope(jjtn000); |
432 |
jjtreeCloseNodeScope(jjtn000); |
| 433 |
} |
433 |
} |
| 434 |
} |
434 |
} |
| 435 |
/*@egen*/ |
435 |
/*@egen*/ |
| 436 |
} |
436 |
} |
| 437 |
|
437 |
|
| 438 |
void ChoiceExpression() : {/*@bgen(jjtree) ChoiceExpression */ |
438 |
void ChoiceExpression() : {/*@bgen(jjtree) ChoiceExpression */ |
| 439 |
ASTChoiceExpression jjtn000 = new ASTChoiceExpression(JJTCHOICEEXPRESSION); |
439 |
ASTChoiceExpression jjtn000 = new ASTChoiceExpression(JJTCHOICEEXPRESSION); |
| 440 |
boolean jjtc000 = true; |
440 |
boolean jjtc000 = true; |
| 441 |
jjtree.openNodeScope(jjtn000); |
441 |
jjtree.openNodeScope(jjtn000); |
| 442 |
jjtreeOpenNodeScope(jjtn000); |
442 |
jjtreeOpenNodeScope(jjtn000); |
| 443 |
/*@egen*/} |
443 |
/*@egen*/} |
| 444 |
{/*@bgen(jjtree) ChoiceExpression */ |
444 |
{/*@bgen(jjtree) ChoiceExpression */ |
| 445 |
try { |
445 |
try { |
| 446 |
/*@egen*/ |
446 |
/*@egen*/ |
| 447 |
OrExpression() <COND> OrExpression() <COLON> OrExpression()/*@bgen(jjtree)*/ |
447 |
OrExpression() <COND> Expression() <COLON> Expression()/*@bgen(jjtree)*/ |
| 448 |
} catch (Throwable jjte000) { |
448 |
} catch (Throwable jjte000) { |
| 449 |
if (jjtc000) { |
449 |
if (jjtc000) { |
| 450 |
jjtree.clearNodeScope(jjtn000); |
450 |
jjtree.clearNodeScope(jjtn000); |
| 451 |
jjtc000 = false; |
451 |
jjtc000 = false; |
| 452 |
} else { |
452 |
} else { |
| 453 |
jjtree.popNode(); |
453 |
jjtree.popNode(); |
| 454 |
} |
454 |
} |
| 455 |
if (jjte000 instanceof RuntimeException) { |
455 |
if (jjte000 instanceof RuntimeException) { |
| 456 |
throw (RuntimeException)jjte000; |
456 |
throw (RuntimeException)jjte000; |
| 457 |
} |
457 |
} |
| 458 |
if (jjte000 instanceof ParseException) { |
458 |
if (jjte000 instanceof ParseException) { |
| 459 |
throw (ParseException)jjte000; |
459 |
throw (ParseException)jjte000; |
| 460 |
} |
460 |
} |
| 461 |
throw (Error)jjte000; |
461 |
throw (Error)jjte000; |
| 462 |
} finally { |
462 |
} finally { |
| 463 |
if (jjtc000) { |
463 |
if (jjtc000) { |
| 464 |
jjtree.closeNodeScope(jjtn000, true); |
464 |
jjtree.closeNodeScope(jjtn000, true); |
| 465 |
jjtreeCloseNodeScope(jjtn000); |
465 |
jjtreeCloseNodeScope(jjtn000); |
| 466 |
} |
466 |
} |
| 467 |
} |
467 |
} |
| 468 |
/*@egen*/ |
468 |
/*@egen*/ |
| 469 |
} |
469 |
} |
| 470 |
|
470 |
|
| 471 |
void UnaryExpression() : {/*@bgen(jjtree) UnaryExpression */ |
471 |
void UnaryExpression() : {/*@bgen(jjtree) UnaryExpression */ |
| 472 |
ASTUnaryExpression jjtn000 = new ASTUnaryExpression(JJTUNARYEXPRESSION); |
472 |
ASTUnaryExpression jjtn000 = new ASTUnaryExpression(JJTUNARYEXPRESSION); |
| 473 |
boolean jjtc000 = true; |
473 |
boolean jjtc000 = true; |
| 474 |
jjtree.openNodeScope(jjtn000); |
474 |
jjtree.openNodeScope(jjtn000); |
| 475 |
jjtreeOpenNodeScope(jjtn000); |
475 |
jjtreeOpenNodeScope(jjtn000); |
| 476 |
/*@egen*/} |
476 |
/*@egen*/} |
| 477 |
{/*@bgen(jjtree) UnaryExpression */ |
477 |
{/*@bgen(jjtree) UnaryExpression */ |
| 478 |
try { |
478 |
try { |
| 479 |
/*@egen*/ |
479 |
/*@egen*/ |
| 480 |
((<NOT1> | <NOT2> | <MINUS> | <EMPTY>) UnaryExpression()) |
480 |
((<NOT1> | <NOT2> | <MINUS> | <EMPTY>) UnaryExpression()) |
| 481 |
| Value()/*@bgen(jjtree)*/ |
481 |
| Value()/*@bgen(jjtree)*/ |
| 482 |
} catch (Throwable jjte000) { |
482 |
} catch (Throwable jjte000) { |
| 483 |
if (jjtc000) { |
483 |
if (jjtc000) { |
| 484 |
jjtree.clearNodeScope(jjtn000); |
484 |
jjtree.clearNodeScope(jjtn000); |
| 485 |
jjtc000 = false; |
485 |
jjtc000 = false; |
| 486 |
} else { |
486 |
} else { |
| 487 |
jjtree.popNode(); |
487 |
jjtree.popNode(); |
| 488 |
} |
488 |
} |
| 489 |
if (jjte000 instanceof RuntimeException) { |
489 |
if (jjte000 instanceof RuntimeException) { |
| 490 |
throw (RuntimeException)jjte000; |
490 |
throw (RuntimeException)jjte000; |
| 491 |
} |
491 |
} |
| 492 |
if (jjte000 instanceof ParseException) { |
492 |
if (jjte000 instanceof ParseException) { |
| 493 |
throw (ParseException)jjte000; |
493 |
throw (ParseException)jjte000; |
| 494 |
} |
494 |
} |
| 495 |
throw (Error)jjte000; |
495 |
throw (Error)jjte000; |
| 496 |
} finally { |
496 |
} finally { |
| 497 |
if (jjtc000) { |
497 |
if (jjtc000) { |
| 498 |
jjtree.closeNodeScope(jjtn000, true); |
498 |
jjtree.closeNodeScope(jjtn000, true); |
| 499 |
jjtreeCloseNodeScope(jjtn000); |
499 |
jjtreeCloseNodeScope(jjtn000); |
| 500 |
} |
500 |
} |
| 501 |
} |
501 |
} |
| 502 |
/*@egen*/ |
502 |
/*@egen*/ |
| 503 |
|
503 |
|
| 504 |
} |
504 |
} |
| 505 |
|
505 |
|
| 506 |
void Value() : {/*@bgen(jjtree) Value */ |
506 |
void Value() : {/*@bgen(jjtree) Value */ |
| 507 |
ASTValue jjtn000 = new ASTValue(JJTVALUE); |
507 |
ASTValue jjtn000 = new ASTValue(JJTVALUE); |
| 508 |
boolean jjtc000 = true; |
508 |
boolean jjtc000 = true; |
| 509 |
jjtree.openNodeScope(jjtn000); |
509 |
jjtree.openNodeScope(jjtn000); |
| 510 |
jjtreeOpenNodeScope(jjtn000); |
510 |
jjtreeOpenNodeScope(jjtn000); |
| 511 |
/*@egen*/} |
511 |
/*@egen*/} |
| 512 |
{/*@bgen(jjtree) Value */ |
512 |
{/*@bgen(jjtree) Value */ |
| 513 |
try { |
513 |
try { |
| 514 |
/*@egen*/ |
514 |
/*@egen*/ |
| 515 |
ValuePrefix() (ValueSuffix())*/*@bgen(jjtree)*/ |
515 |
ValuePrefix() (ValueSuffix())*/*@bgen(jjtree)*/ |
| 516 |
} catch (Throwable jjte000) { |
516 |
} catch (Throwable jjte000) { |
| 517 |
if (jjtc000) { |
517 |
if (jjtc000) { |
| 518 |
jjtree.clearNodeScope(jjtn000); |
518 |
jjtree.clearNodeScope(jjtn000); |
| 519 |
jjtc000 = false; |
519 |
jjtc000 = false; |
| 520 |
} else { |
520 |
} else { |
| 521 |
jjtree.popNode(); |
521 |
jjtree.popNode(); |
| 522 |
} |
522 |
} |
| 523 |
if (jjte000 instanceof RuntimeException) { |
523 |
if (jjte000 instanceof RuntimeException) { |
| 524 |
throw (RuntimeException)jjte000; |
524 |
throw (RuntimeException)jjte000; |
| 525 |
} |
525 |
} |
| 526 |
if (jjte000 instanceof ParseException) { |
526 |
if (jjte000 instanceof ParseException) { |
| 527 |
throw (ParseException)jjte000; |
527 |
throw (ParseException)jjte000; |
| 528 |
} |
528 |
} |
| 529 |
throw (Error)jjte000; |
529 |
throw (Error)jjte000; |
| 530 |
} finally { |
530 |
} finally { |
| 531 |
if (jjtc000) { |
531 |
if (jjtc000) { |
| 532 |
jjtree.closeNodeScope(jjtn000, true); |
532 |
jjtree.closeNodeScope(jjtn000, true); |
| 533 |
jjtreeCloseNodeScope(jjtn000); |
533 |
jjtreeCloseNodeScope(jjtn000); |
| 534 |
} |
534 |
} |
| 535 |
} |
535 |
} |
| 536 |
/*@egen*/ |
536 |
/*@egen*/ |
| 537 |
} |
537 |
} |
| 538 |
|
538 |
|
| 539 |
void ValuePrefix() : {/*@bgen(jjtree) ValuePrefix */ |
539 |
void ValuePrefix() : {/*@bgen(jjtree) ValuePrefix */ |
| 540 |
ASTValuePrefix jjtn000 = new ASTValuePrefix(JJTVALUEPREFIX); |
540 |
ASTValuePrefix jjtn000 = new ASTValuePrefix(JJTVALUEPREFIX); |
| 541 |
boolean jjtc000 = true; |
541 |
boolean jjtc000 = true; |
| 542 |
jjtree.openNodeScope(jjtn000); |
542 |
jjtree.openNodeScope(jjtn000); |
| 543 |
jjtreeOpenNodeScope(jjtn000); |
543 |
jjtreeOpenNodeScope(jjtn000); |
| 544 |
/*@egen*/} |
544 |
/*@egen*/} |
| 545 |
{/*@bgen(jjtree) ValuePrefix */ |
545 |
{/*@bgen(jjtree) ValuePrefix */ |
| 546 |
try { |
546 |
try { |
| 547 |
/*@egen*/ |
547 |
/*@egen*/ |
| 548 |
Literal() | (<LPAREN> Expression() <RPAREN>) | LOOKAHEAD(3) FunctionInvocation() | <IDENTIFIER>/*@bgen(jjtree)*/ |
548 |
Literal() | (<LPAREN> Expression() <RPAREN>) |
| 549 |
} catch (Throwable jjte000) { |
549 |
| LOOKAHEAD(<IDENTIFIER> (<LPAREN> | <COLON> <IDENTIFIER> <LPAREN>)) FunctionInvocation() | <IDENTIFIER>/*@bgen(jjtree)*/ |
| 550 |
if (jjtc000) { |
550 |
} catch (Throwable jjte000) { |
| 551 |
jjtree.clearNodeScope(jjtn000); |
551 |
if (jjtc000) { |
| 552 |
jjtc000 = false; |
552 |
jjtree.clearNodeScope(jjtn000); |
| 553 |
} else { |
553 |
jjtc000 = false; |
| 554 |
jjtree.popNode(); |
554 |
} else { |
| 555 |
} |
555 |
jjtree.popNode(); |
| 556 |
if (jjte000 instanceof RuntimeException) { |
556 |
} |
| 557 |
throw (RuntimeException)jjte000; |
557 |
if (jjte000 instanceof RuntimeException) { |
| 558 |
} |
558 |
throw (RuntimeException)jjte000; |
| 559 |
if (jjte000 instanceof ParseException) { |
559 |
} |
| 560 |
throw (ParseException)jjte000; |
560 |
if (jjte000 instanceof ParseException) { |
| 561 |
} |
561 |
throw (ParseException)jjte000; |
| 562 |
throw (Error)jjte000; |
562 |
} |
| 563 |
} finally { |
563 |
throw (Error)jjte000; |
| 564 |
if (jjtc000) { |
564 |
} finally { |
| 565 |
jjtree.closeNodeScope(jjtn000, true); |
565 |
if (jjtc000) { |
| 566 |
jjtreeCloseNodeScope(jjtn000); |
566 |
jjtree.closeNodeScope(jjtn000, true); |
| 567 |
} |
567 |
jjtreeCloseNodeScope(jjtn000); |
| 568 |
} |
568 |
} |
| 569 |
/*@egen*/ |
569 |
} |
| 570 |
} |
570 |
/*@egen*/ |
| 571 |
|
571 |
} |
| 572 |
void ValueSuffix() : |
572 |
|
| 573 |
{/*@bgen(jjtree) ValueSuffix */ |
573 |
void ValueSuffix() : |
| 574 |
ASTValueSuffix jjtn000 = new ASTValueSuffix(JJTVALUESUFFIX); |
574 |
{/*@bgen(jjtree) ValueSuffix */ |
| 575 |
boolean jjtc000 = true; |
575 |
ASTValueSuffix jjtn000 = new ASTValueSuffix(JJTVALUESUFFIX); |
| 576 |
jjtree.openNodeScope(jjtn000); |
576 |
boolean jjtc000 = true; |
| 577 |
jjtreeOpenNodeScope(jjtn000); |
577 |
jjtree.openNodeScope(jjtn000); |
| 578 |
/*@egen*/ |
578 |
jjtreeOpenNodeScope(jjtn000); |
| 579 |
Token t = null; |
579 |
/*@egen*/ |
| 580 |
} |
580 |
Token t = null; |
| 581 |
{/*@bgen(jjtree) ValueSuffix */ |
581 |
} |
| 582 |
try { |
582 |
{/*@bgen(jjtree) ValueSuffix */ |
| 583 |
/*@egen*/ |
583 |
try { |
| 584 |
(<DOT> (t = <IDENTIFIER>)?)/*@bgen(jjtree)*/ |
584 |
/*@egen*/ |
| 585 |
{ |
585 |
(<DOT> (t = <IDENTIFIER>)?)/*@bgen(jjtree)*/ |
| 586 |
jjtree.closeNodeScope(jjtn000, true); |
586 |
{ |
| 587 |
jjtc000 = false; |
587 |
jjtree.closeNodeScope(jjtn000, true); |
| 588 |
jjtreeCloseNodeScope(jjtn000); |
588 |
jjtc000 = false; |
| 589 |
} |
589 |
jjtreeCloseNodeScope(jjtn000); |
| 590 |
/*@egen*/ { jjtn000.setPropertyNameToken(t); } |
590 |
} |
| 591 |
| (<LBRACKET> Expression() <RBRACKET>)/*@bgen(jjtree)*/ |
591 |
/*@egen*/ { jjtn000.setPropertyNameToken(t); } |
| 592 |
} catch (Throwable jjte000) { |
592 |
| (<LBRACKET> Expression() <RBRACKET>)/*@bgen(jjtree)*/ |
| 593 |
if (jjtc000) { |
593 |
} catch (Throwable jjte000) { |
| 594 |
jjtree.clearNodeScope(jjtn000); |
594 |
if (jjtc000) { |
| 595 |
jjtc000 = false; |
595 |
jjtree.clearNodeScope(jjtn000); |
| 596 |
} else { |
596 |
jjtc000 = false; |
| 597 |
jjtree.popNode(); |
597 |
} else { |
| 598 |
} |
598 |
jjtree.popNode(); |
| 599 |
if (jjte000 instanceof RuntimeException) { |
599 |
} |
| 600 |
throw (RuntimeException)jjte000; |
600 |
if (jjte000 instanceof RuntimeException) { |
| 601 |
} |
601 |
throw (RuntimeException)jjte000; |
| 602 |
if (jjte000 instanceof ParseException) { |
602 |
} |
| 603 |
throw (ParseException)jjte000; |
603 |
if (jjte000 instanceof ParseException) { |
| 604 |
} |
604 |
throw (ParseException)jjte000; |
| 605 |
throw (Error)jjte000; |
605 |
} |
| 606 |
} finally { |
606 |
throw (Error)jjte000; |
| 607 |
if (jjtc000) { |
607 |
} finally { |
| 608 |
jjtree.closeNodeScope(jjtn000, true); |
608 |
if (jjtc000) { |
| 609 |
jjtreeCloseNodeScope(jjtn000); |
609 |
jjtree.closeNodeScope(jjtn000, true); |
| 610 |
} |
610 |
jjtreeCloseNodeScope(jjtn000); |
| 611 |
} |
611 |
} |
| 612 |
/*@egen*/ |
612 |
} |
| 613 |
} |
613 |
/*@egen*/ |
| 614 |
|
614 |
} |
| 615 |
void FunctionInvocation() : |
615 |
|
| 616 |
{/*@bgen(jjtree) FunctionInvocation */ |
616 |
void FunctionInvocation() : |
| 617 |
ASTFunctionInvocation jjtn000 = new ASTFunctionInvocation(JJTFUNCTIONINVOCATION); |
617 |
{/*@bgen(jjtree) FunctionInvocation */ |
| 618 |
boolean jjtc000 = true; |
618 |
ASTFunctionInvocation jjtn000 = new ASTFunctionInvocation(JJTFUNCTIONINVOCATION); |
| 619 |
jjtree.openNodeScope(jjtn000); |
619 |
boolean jjtc000 = true; |
| 620 |
jjtreeOpenNodeScope(jjtn000); |
620 |
jjtree.openNodeScope(jjtn000); |
| 621 |
/*@egen*/ |
621 |
jjtreeOpenNodeScope(jjtn000); |
| 622 |
Token prefix = null, name = null; |
622 |
/*@egen*/ |
| 623 |
} |
623 |
Token prefix = null, name = null; |
| 624 |
{/*@bgen(jjtree) FunctionInvocation */ |
624 |
} |
| 625 |
try { |
625 |
{/*@bgen(jjtree) FunctionInvocation */ |
| 626 |
/*@egen*/ |
626 |
try { |
| 627 |
(prefix = <IDENTIFIER> <COLON>) { jjtn000.setFullFunctionName(prefix.image + ":"); } |
627 |
/*@egen*/ |
| 628 |
(name = <IDENTIFIER>)? { |
628 |
(LOOKAHEAD(2) prefix = <IDENTIFIER> <COLON>)? |
| 629 |
if(null != prefix && null != name) |
629 |
(name = <IDENTIFIER>) { |
| 630 |
jjtn000.setFullFunctionName(prefix.image + ":" + (null == name ? "" : name.image)); |
630 |
if(null != prefix && null != name) |
| 631 |
else if(null != name) |
631 |
jjtn000.setFullFunctionName(prefix.image + ":" + (null == name ? "" : name.image)); |
| 632 |
jjtn000.setFullFunctionName(name.image); |
632 |
else if(null != name) |
| 633 |
} |
633 |
jjtn000.setFullFunctionName(name.image); |
| 634 |
(<LPAREN> Expression() (<COMMA> Expression())* try { (<RPAREN>) } catch (Exception e) {} )?/*@bgen(jjtree)*/ |
634 |
} |
| 635 |
} catch (Throwable jjte000) { |
635 |
(<LPAREN> Expression() (<COMMA> Expression())* try { (<RPAREN>) } catch (Exception e) {} )/*@bgen(jjtree)*/ |
| 636 |
if (jjtc000) { |
636 |
} catch (Throwable jjte000) { |
| 637 |
jjtree.clearNodeScope(jjtn000); |
637 |
if (jjtc000) { |
| 638 |
jjtc000 = false; |
638 |
jjtree.clearNodeScope(jjtn000); |
| 639 |
} else { |
639 |
jjtc000 = false; |
| 640 |
jjtree.popNode(); |
640 |
} else { |
| 641 |
} |
641 |
jjtree.popNode(); |
| 642 |
if (jjte000 instanceof RuntimeException) { |
642 |
} |
| 643 |
throw (RuntimeException)jjte000; |
643 |
if (jjte000 instanceof RuntimeException) { |
| 644 |
} |
644 |
throw (RuntimeException)jjte000; |
| 645 |
if (jjte000 instanceof ParseException) { |
645 |
} |
| 646 |
throw (ParseException)jjte000; |
646 |
if (jjte000 instanceof ParseException) { |
| 647 |
} |
647 |
throw (ParseException)jjte000; |
| 648 |
throw (Error)jjte000; |
648 |
} |
| 649 |
} finally { |
649 |
throw (Error)jjte000; |
| 650 |
if (jjtc000) { |
650 |
} finally { |
| 651 |
jjtree.closeNodeScope(jjtn000, true); |
651 |
if (jjtc000) { |
| 652 |
jjtreeCloseNodeScope(jjtn000); |
652 |
jjtree.closeNodeScope(jjtn000, true); |
| 653 |
} |
653 |
jjtreeCloseNodeScope(jjtn000); |
| 654 |
} |
654 |
} |
| 655 |
/*@egen*/ |
655 |
} |
| 656 |
} |
656 |
/*@egen*/ |
| 657 |
|
657 |
} |
| 658 |
void Literal() : {/*@bgen(jjtree) Literal */ |
658 |
|
| 659 |
ASTLiteral jjtn000 = new ASTLiteral(JJTLITERAL); |
659 |
void Literal() : {/*@bgen(jjtree) Literal */ |
| 660 |
boolean jjtc000 = true; |
660 |
ASTLiteral jjtn000 = new ASTLiteral(JJTLITERAL); |
| 661 |
jjtree.openNodeScope(jjtn000); |
661 |
boolean jjtc000 = true; |
| 662 |
jjtreeOpenNodeScope(jjtn000); |
662 |
jjtree.openNodeScope(jjtn000); |
| 663 |
/*@egen*/} |
663 |
jjtreeOpenNodeScope(jjtn000); |
| 664 |
{/*@bgen(jjtree) Literal */ |
664 |
/*@egen*/} |
| 665 |
try { |
665 |
{/*@bgen(jjtree) Literal */ |
| 666 |
/*@egen*/ |
666 |
try { |
| 667 |
<TRUE> | <FALSE> | <INTEGER_LITERAL> | <FLOATING_POINT_LITERAL> | <STRING_LITERAL> | <NULL>/*@bgen(jjtree)*/ |
667 |
/*@egen*/ |
| 668 |
} finally { |
668 |
<TRUE> | <FALSE> | <INTEGER_LITERAL> | <FLOATING_POINT_LITERAL> | <STRING_LITERAL> | <NULL>/*@bgen(jjtree)*/ |
| 669 |
if (jjtc000) { |
669 |
} finally { |
| 670 |
jjtree.closeNodeScope(jjtn000, true); |
670 |
if (jjtc000) { |
| 671 |
jjtreeCloseNodeScope(jjtn000); |
671 |
jjtree.closeNodeScope(jjtn000, true); |
| 672 |
} |
672 |
jjtreeCloseNodeScope(jjtn000); |
| 673 |
} |
673 |
} |
| 674 |
/*@egen*/ |
674 |
} |
| 675 |
} |
675 |
/*@egen*/ |
|
|
676 |
} |