diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components')
37 files changed, 3430 insertions, 4509 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin index b39c9074..6eb4d2c2 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/CftLanguage.xtextbin | |||
Binary files differ | |||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/AndGate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/AndGate.java deleted file mode 100644 index 6d197233..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/AndGate.java +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>And Gate</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getAndGate() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface AndGate extends GateDefinition | ||
18 | { | ||
19 | } // AndGate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/BasicEventDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/BasicEventDefinition.java deleted file mode 100644 index 9a564a57..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/BasicEventDefinition.java +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Basic Event Definition</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate <em>Rate</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getBasicEventDefinition() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface BasicEventDefinition extends EventDefinition | ||
24 | { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Rate</b></em>' attribute. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Rate</em>' attribute isn't clear, | ||
30 | * there really should be more of a description here... | ||
31 | * </p> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @return the value of the '<em>Rate</em>' attribute. | ||
34 | * @see #setRate(double) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getBasicEventDefinition_Rate() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | double getRate(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate <em>Rate</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Rate</em>' attribute. | ||
46 | * @see #getRate() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setRate(double value); | ||
50 | |||
51 | } // BasicEventDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java index 07c5786f..3420d578 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguageFactory.java | |||
@@ -42,78 +42,6 @@ public interface CftLanguageFactory extends EFactory | |||
42 | ImportDeclaration createImportDeclaration(); | 42 | ImportDeclaration createImportDeclaration(); |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * Returns a new object of class '<em>Component Definition</em>'. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return a new object of class '<em>Component Definition</em>'. | ||
49 | * @generated | ||
50 | */ | ||
51 | ComponentDefinition createComponentDefinition(); | ||
52 | |||
53 | /** | ||
54 | * Returns a new object of class '<em>Event Declaration</em>'. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @return a new object of class '<em>Event Declaration</em>'. | ||
58 | * @generated | ||
59 | */ | ||
60 | EventDeclaration createEventDeclaration(); | ||
61 | |||
62 | /** | ||
63 | * Returns a new object of class '<em>Input Event</em>'. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return a new object of class '<em>Input Event</em>'. | ||
67 | * @generated | ||
68 | */ | ||
69 | InputEvent createInputEvent(); | ||
70 | |||
71 | /** | ||
72 | * Returns a new object of class '<em>Event Definition</em>'. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @return a new object of class '<em>Event Definition</em>'. | ||
76 | * @generated | ||
77 | */ | ||
78 | EventDefinition createEventDefinition(); | ||
79 | |||
80 | /** | ||
81 | * Returns a new object of class '<em>Basic Event Definition</em>'. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @return a new object of class '<em>Basic Event Definition</em>'. | ||
85 | * @generated | ||
86 | */ | ||
87 | BasicEventDefinition createBasicEventDefinition(); | ||
88 | |||
89 | /** | ||
90 | * Returns a new object of class '<em>Gate Definition</em>'. | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @return a new object of class '<em>Gate Definition</em>'. | ||
94 | * @generated | ||
95 | */ | ||
96 | GateDefinition createGateDefinition(); | ||
97 | |||
98 | /** | ||
99 | * Returns a new object of class '<em>And Gate</em>'. | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @return a new object of class '<em>And Gate</em>'. | ||
103 | * @generated | ||
104 | */ | ||
105 | AndGate createAndGate(); | ||
106 | |||
107 | /** | ||
108 | * Returns a new object of class '<em>Or Gate</em>'. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @return a new object of class '<em>Or Gate</em>'. | ||
112 | * @generated | ||
113 | */ | ||
114 | OrGate createOrGate(); | ||
115 | |||
116 | /** | ||
117 | * Returns a new object of class '<em>Transformation Definition</em>'. | 45 | * Returns a new object of class '<em>Transformation Definition</em>'. |
118 | * <!-- begin-user-doc --> | 46 | * <!-- begin-user-doc --> |
119 | * <!-- end-user-doc --> | 47 | * <!-- end-user-doc --> |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java index 405a8691..7aab46c2 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftLanguagePackage.java | |||
@@ -141,302 +141,6 @@ public interface CftLanguagePackage extends EPackage | |||
141 | int IMPORT_DECLARATION_FEATURE_COUNT = 1; | 141 | int IMPORT_DECLARATION_FEATURE_COUNT = 1; |
142 | 142 | ||
143 | /** | 143 | /** |
144 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl | ||
148 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentDefinition() | ||
149 | * @generated | ||
150 | */ | ||
151 | int COMPONENT_DEFINITION = 2; | ||
152 | |||
153 | /** | ||
154 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
155 | * <!-- begin-user-doc --> | ||
156 | * <!-- end-user-doc --> | ||
157 | * @generated | ||
158 | * @ordered | ||
159 | */ | ||
160 | int COMPONENT_DEFINITION__NAME = 0; | ||
161 | |||
162 | /** | ||
163 | * The feature id for the '<em><b>Input Events</b></em>' containment reference list. | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | * @ordered | ||
168 | */ | ||
169 | int COMPONENT_DEFINITION__INPUT_EVENTS = 1; | ||
170 | |||
171 | /** | ||
172 | * The feature id for the '<em><b>Output Events</b></em>' reference list. | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | * @ordered | ||
177 | */ | ||
178 | int COMPONENT_DEFINITION__OUTPUT_EVENTS = 2; | ||
179 | |||
180 | /** | ||
181 | * The feature id for the '<em><b>Event Definitions</b></em>' containment reference list. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | * @ordered | ||
186 | */ | ||
187 | int COMPONENT_DEFINITION__EVENT_DEFINITIONS = 3; | ||
188 | |||
189 | /** | ||
190 | * The number of structural features of the '<em>Component Definition</em>' class. | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | * @ordered | ||
195 | */ | ||
196 | int COMPONENT_DEFINITION_FEATURE_COUNT = 4; | ||
197 | |||
198 | /** | ||
199 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl | ||
203 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDeclaration() | ||
204 | * @generated | ||
205 | */ | ||
206 | int EVENT_DECLARATION = 3; | ||
207 | |||
208 | /** | ||
209 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
210 | * <!-- begin-user-doc --> | ||
211 | * <!-- end-user-doc --> | ||
212 | * @generated | ||
213 | * @ordered | ||
214 | */ | ||
215 | int EVENT_DECLARATION__NAME = 0; | ||
216 | |||
217 | /** | ||
218 | * The number of structural features of the '<em>Event Declaration</em>' class. | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | * @ordered | ||
223 | */ | ||
224 | int EVENT_DECLARATION_FEATURE_COUNT = 1; | ||
225 | |||
226 | /** | ||
227 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl <em>Input Event</em>}' class. | ||
228 | * <!-- begin-user-doc --> | ||
229 | * <!-- end-user-doc --> | ||
230 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl | ||
231 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getInputEvent() | ||
232 | * @generated | ||
233 | */ | ||
234 | int INPUT_EVENT = 4; | ||
235 | |||
236 | /** | ||
237 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
238 | * <!-- begin-user-doc --> | ||
239 | * <!-- end-user-doc --> | ||
240 | * @generated | ||
241 | * @ordered | ||
242 | */ | ||
243 | int INPUT_EVENT__NAME = EVENT_DECLARATION__NAME; | ||
244 | |||
245 | /** | ||
246 | * The feature id for the '<em><b>Multiple</b></em>' attribute. | ||
247 | * <!-- begin-user-doc --> | ||
248 | * <!-- end-user-doc --> | ||
249 | * @generated | ||
250 | * @ordered | ||
251 | */ | ||
252 | int INPUT_EVENT__MULTIPLE = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
253 | |||
254 | /** | ||
255 | * The number of structural features of the '<em>Input Event</em>' class. | ||
256 | * <!-- begin-user-doc --> | ||
257 | * <!-- end-user-doc --> | ||
258 | * @generated | ||
259 | * @ordered | ||
260 | */ | ||
261 | int INPUT_EVENT_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 1; | ||
262 | |||
263 | /** | ||
264 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
265 | * <!-- begin-user-doc --> | ||
266 | * <!-- end-user-doc --> | ||
267 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl | ||
268 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDefinition() | ||
269 | * @generated | ||
270 | */ | ||
271 | int EVENT_DEFINITION = 5; | ||
272 | |||
273 | /** | ||
274 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
275 | * <!-- begin-user-doc --> | ||
276 | * <!-- end-user-doc --> | ||
277 | * @generated | ||
278 | * @ordered | ||
279 | */ | ||
280 | int EVENT_DEFINITION__NAME = EVENT_DECLARATION__NAME; | ||
281 | |||
282 | /** | ||
283 | * The number of structural features of the '<em>Event Definition</em>' class. | ||
284 | * <!-- begin-user-doc --> | ||
285 | * <!-- end-user-doc --> | ||
286 | * @generated | ||
287 | * @ordered | ||
288 | */ | ||
289 | int EVENT_DEFINITION_FEATURE_COUNT = EVENT_DECLARATION_FEATURE_COUNT + 0; | ||
290 | |||
291 | /** | ||
292 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
293 | * <!-- begin-user-doc --> | ||
294 | * <!-- end-user-doc --> | ||
295 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl | ||
296 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getBasicEventDefinition() | ||
297 | * @generated | ||
298 | */ | ||
299 | int BASIC_EVENT_DEFINITION = 6; | ||
300 | |||
301 | /** | ||
302 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
303 | * <!-- begin-user-doc --> | ||
304 | * <!-- end-user-doc --> | ||
305 | * @generated | ||
306 | * @ordered | ||
307 | */ | ||
308 | int BASIC_EVENT_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
309 | |||
310 | /** | ||
311 | * The feature id for the '<em><b>Rate</b></em>' attribute. | ||
312 | * <!-- begin-user-doc --> | ||
313 | * <!-- end-user-doc --> | ||
314 | * @generated | ||
315 | * @ordered | ||
316 | */ | ||
317 | int BASIC_EVENT_DEFINITION__RATE = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
318 | |||
319 | /** | ||
320 | * The number of structural features of the '<em>Basic Event Definition</em>' class. | ||
321 | * <!-- begin-user-doc --> | ||
322 | * <!-- end-user-doc --> | ||
323 | * @generated | ||
324 | * @ordered | ||
325 | */ | ||
326 | int BASIC_EVENT_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
327 | |||
328 | /** | ||
329 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
330 | * <!-- begin-user-doc --> | ||
331 | * <!-- end-user-doc --> | ||
332 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl | ||
333 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getGateDefinition() | ||
334 | * @generated | ||
335 | */ | ||
336 | int GATE_DEFINITION = 7; | ||
337 | |||
338 | /** | ||
339 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
340 | * <!-- begin-user-doc --> | ||
341 | * <!-- end-user-doc --> | ||
342 | * @generated | ||
343 | * @ordered | ||
344 | */ | ||
345 | int GATE_DEFINITION__NAME = EVENT_DEFINITION__NAME; | ||
346 | |||
347 | /** | ||
348 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
349 | * <!-- begin-user-doc --> | ||
350 | * <!-- end-user-doc --> | ||
351 | * @generated | ||
352 | * @ordered | ||
353 | */ | ||
354 | int GATE_DEFINITION__INPUT_EVENTS = EVENT_DEFINITION_FEATURE_COUNT + 0; | ||
355 | |||
356 | /** | ||
357 | * The number of structural features of the '<em>Gate Definition</em>' class. | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | * @ordered | ||
362 | */ | ||
363 | int GATE_DEFINITION_FEATURE_COUNT = EVENT_DEFINITION_FEATURE_COUNT + 1; | ||
364 | |||
365 | /** | ||
366 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl <em>And Gate</em>}' class. | ||
367 | * <!-- begin-user-doc --> | ||
368 | * <!-- end-user-doc --> | ||
369 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl | ||
370 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAndGate() | ||
371 | * @generated | ||
372 | */ | ||
373 | int AND_GATE = 8; | ||
374 | |||
375 | /** | ||
376 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
377 | * <!-- begin-user-doc --> | ||
378 | * <!-- end-user-doc --> | ||
379 | * @generated | ||
380 | * @ordered | ||
381 | */ | ||
382 | int AND_GATE__NAME = GATE_DEFINITION__NAME; | ||
383 | |||
384 | /** | ||
385 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
386 | * <!-- begin-user-doc --> | ||
387 | * <!-- end-user-doc --> | ||
388 | * @generated | ||
389 | * @ordered | ||
390 | */ | ||
391 | int AND_GATE__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
392 | |||
393 | /** | ||
394 | * The number of structural features of the '<em>And Gate</em>' class. | ||
395 | * <!-- begin-user-doc --> | ||
396 | * <!-- end-user-doc --> | ||
397 | * @generated | ||
398 | * @ordered | ||
399 | */ | ||
400 | int AND_GATE_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
401 | |||
402 | /** | ||
403 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl <em>Or Gate</em>}' class. | ||
404 | * <!-- begin-user-doc --> | ||
405 | * <!-- end-user-doc --> | ||
406 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl | ||
407 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getOrGate() | ||
408 | * @generated | ||
409 | */ | ||
410 | int OR_GATE = 9; | ||
411 | |||
412 | /** | ||
413 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
414 | * <!-- begin-user-doc --> | ||
415 | * <!-- end-user-doc --> | ||
416 | * @generated | ||
417 | * @ordered | ||
418 | */ | ||
419 | int OR_GATE__NAME = GATE_DEFINITION__NAME; | ||
420 | |||
421 | /** | ||
422 | * The feature id for the '<em><b>Input Events</b></em>' reference list. | ||
423 | * <!-- begin-user-doc --> | ||
424 | * <!-- end-user-doc --> | ||
425 | * @generated | ||
426 | * @ordered | ||
427 | */ | ||
428 | int OR_GATE__INPUT_EVENTS = GATE_DEFINITION__INPUT_EVENTS; | ||
429 | |||
430 | /** | ||
431 | * The number of structural features of the '<em>Or Gate</em>' class. | ||
432 | * <!-- begin-user-doc --> | ||
433 | * <!-- end-user-doc --> | ||
434 | * @generated | ||
435 | * @ordered | ||
436 | */ | ||
437 | int OR_GATE_FEATURE_COUNT = GATE_DEFINITION_FEATURE_COUNT + 0; | ||
438 | |||
439 | /** | ||
440 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. | 144 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. |
441 | * <!-- begin-user-doc --> | 145 | * <!-- begin-user-doc --> |
442 | * <!-- end-user-doc --> | 146 | * <!-- end-user-doc --> |
@@ -444,7 +148,7 @@ public interface CftLanguagePackage extends EPackage | |||
444 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getTransformationDefinition() | 148 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getTransformationDefinition() |
445 | * @generated | 149 | * @generated |
446 | */ | 150 | */ |
447 | int TRANSFORMATION_DEFINITION = 10; | 151 | int TRANSFORMATION_DEFINITION = 2; |
448 | 152 | ||
449 | /** | 153 | /** |
450 | * The feature id for the '<em><b>Name</b></em>' attribute. | 154 | * The feature id for the '<em><b>Name</b></em>' attribute. |
@@ -481,7 +185,7 @@ public interface CftLanguagePackage extends EPackage | |||
481 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingDefinition() | 185 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingDefinition() |
482 | * @generated | 186 | * @generated |
483 | */ | 187 | */ |
484 | int MAPPING_DEFINITION = 11; | 188 | int MAPPING_DEFINITION = 3; |
485 | 189 | ||
486 | /** | 190 | /** |
487 | * The feature id for the '<em><b>Top Level</b></em>' attribute. | 191 | * The feature id for the '<em><b>Top Level</b></em>' attribute. |
@@ -554,7 +258,7 @@ public interface CftLanguagePackage extends EPackage | |||
554 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingParameter() | 258 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getMappingParameter() |
555 | * @generated | 259 | * @generated |
556 | */ | 260 | */ |
557 | int MAPPING_PARAMETER = 12; | 261 | int MAPPING_PARAMETER = 4; |
558 | 262 | ||
559 | /** | 263 | /** |
560 | * The feature id for the '<em><b>Name</b></em>' attribute. | 264 | * The feature id for the '<em><b>Name</b></em>' attribute. |
@@ -582,7 +286,7 @@ public interface CftLanguagePackage extends EPackage | |||
582 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getVariable() | 286 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getVariable() |
583 | * @generated | 287 | * @generated |
584 | */ | 288 | */ |
585 | int VARIABLE = 14; | 289 | int VARIABLE = 6; |
586 | 290 | ||
587 | /** | 291 | /** |
588 | * The feature id for the '<em><b>Name</b></em>' attribute. | 292 | * The feature id for the '<em><b>Name</b></em>' attribute. |
@@ -610,7 +314,7 @@ public interface CftLanguagePackage extends EPackage | |||
610 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getLookupDefinition() | 314 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getLookupDefinition() |
611 | * @generated | 315 | * @generated |
612 | */ | 316 | */ |
613 | int LOOKUP_DEFINITION = 13; | 317 | int LOOKUP_DEFINITION = 5; |
614 | 318 | ||
615 | /** | 319 | /** |
616 | * The feature id for the '<em><b>Name</b></em>' attribute. | 320 | * The feature id for the '<em><b>Name</b></em>' attribute. |
@@ -656,7 +360,7 @@ public interface CftLanguagePackage extends EPackage | |||
656 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAssignment() | 360 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAssignment() |
657 | * @generated | 361 | * @generated |
658 | */ | 362 | */ |
659 | int ASSIGNMENT = 15; | 363 | int ASSIGNMENT = 7; |
660 | 364 | ||
661 | /** | 365 | /** |
662 | * The feature id for the '<em><b>Input</b></em>' containment reference. | 366 | * The feature id for the '<em><b>Input</b></em>' containment reference. |
@@ -702,7 +406,7 @@ public interface CftLanguagePackage extends EPackage | |||
702 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventReference() | 406 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventReference() |
703 | * @generated | 407 | * @generated |
704 | */ | 408 | */ |
705 | int EVENT_REFERENCE = 16; | 409 | int EVENT_REFERENCE = 8; |
706 | 410 | ||
707 | /** | 411 | /** |
708 | * The feature id for the '<em><b>Component</b></em>' reference. | 412 | * The feature id for the '<em><b>Component</b></em>' reference. |
@@ -739,7 +443,7 @@ public interface CftLanguagePackage extends EPackage | |||
739 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentInstance() | 443 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentInstance() |
740 | * @generated | 444 | * @generated |
741 | */ | 445 | */ |
742 | int COMPONENT_INSTANCE = 17; | 446 | int COMPONENT_INSTANCE = 9; |
743 | 447 | ||
744 | /** | 448 | /** |
745 | * The feature id for the '<em><b>Name</b></em>' attribute. | 449 | * The feature id for the '<em><b>Name</b></em>' attribute. |
@@ -845,174 +549,6 @@ public interface CftLanguagePackage extends EPackage | |||
845 | EAttribute getImportDeclaration_ImportedNamespace(); | 549 | EAttribute getImportDeclaration_ImportedNamespace(); |
846 | 550 | ||
847 | /** | 551 | /** |
848 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition <em>Component Definition</em>}'. | ||
849 | * <!-- begin-user-doc --> | ||
850 | * <!-- end-user-doc --> | ||
851 | * @return the meta object for class '<em>Component Definition</em>'. | ||
852 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition | ||
853 | * @generated | ||
854 | */ | ||
855 | EClass getComponentDefinition(); | ||
856 | |||
857 | /** | ||
858 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName <em>Name</em>}'. | ||
859 | * <!-- begin-user-doc --> | ||
860 | * <!-- end-user-doc --> | ||
861 | * @return the meta object for the attribute '<em>Name</em>'. | ||
862 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName() | ||
863 | * @see #getComponentDefinition() | ||
864 | * @generated | ||
865 | */ | ||
866 | EAttribute getComponentDefinition_Name(); | ||
867 | |||
868 | /** | ||
869 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getInputEvents <em>Input Events</em>}'. | ||
870 | * <!-- begin-user-doc --> | ||
871 | * <!-- end-user-doc --> | ||
872 | * @return the meta object for the containment reference list '<em>Input Events</em>'. | ||
873 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getInputEvents() | ||
874 | * @see #getComponentDefinition() | ||
875 | * @generated | ||
876 | */ | ||
877 | EReference getComponentDefinition_InputEvents(); | ||
878 | |||
879 | /** | ||
880 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getOutputEvents <em>Output Events</em>}'. | ||
881 | * <!-- begin-user-doc --> | ||
882 | * <!-- end-user-doc --> | ||
883 | * @return the meta object for the reference list '<em>Output Events</em>'. | ||
884 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getOutputEvents() | ||
885 | * @see #getComponentDefinition() | ||
886 | * @generated | ||
887 | */ | ||
888 | EReference getComponentDefinition_OutputEvents(); | ||
889 | |||
890 | /** | ||
891 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getEventDefinitions <em>Event Definitions</em>}'. | ||
892 | * <!-- begin-user-doc --> | ||
893 | * <!-- end-user-doc --> | ||
894 | * @return the meta object for the containment reference list '<em>Event Definitions</em>'. | ||
895 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getEventDefinitions() | ||
896 | * @see #getComponentDefinition() | ||
897 | * @generated | ||
898 | */ | ||
899 | EReference getComponentDefinition_EventDefinitions(); | ||
900 | |||
901 | /** | ||
902 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration <em>Event Declaration</em>}'. | ||
903 | * <!-- begin-user-doc --> | ||
904 | * <!-- end-user-doc --> | ||
905 | * @return the meta object for class '<em>Event Declaration</em>'. | ||
906 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration | ||
907 | * @generated | ||
908 | */ | ||
909 | EClass getEventDeclaration(); | ||
910 | |||
911 | /** | ||
912 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName <em>Name</em>}'. | ||
913 | * <!-- begin-user-doc --> | ||
914 | * <!-- end-user-doc --> | ||
915 | * @return the meta object for the attribute '<em>Name</em>'. | ||
916 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName() | ||
917 | * @see #getEventDeclaration() | ||
918 | * @generated | ||
919 | */ | ||
920 | EAttribute getEventDeclaration_Name(); | ||
921 | |||
922 | /** | ||
923 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent <em>Input Event</em>}'. | ||
924 | * <!-- begin-user-doc --> | ||
925 | * <!-- end-user-doc --> | ||
926 | * @return the meta object for class '<em>Input Event</em>'. | ||
927 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent | ||
928 | * @generated | ||
929 | */ | ||
930 | EClass getInputEvent(); | ||
931 | |||
932 | /** | ||
933 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple <em>Multiple</em>}'. | ||
934 | * <!-- begin-user-doc --> | ||
935 | * <!-- end-user-doc --> | ||
936 | * @return the meta object for the attribute '<em>Multiple</em>'. | ||
937 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple() | ||
938 | * @see #getInputEvent() | ||
939 | * @generated | ||
940 | */ | ||
941 | EAttribute getInputEvent_Multiple(); | ||
942 | |||
943 | /** | ||
944 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition <em>Event Definition</em>}'. | ||
945 | * <!-- begin-user-doc --> | ||
946 | * <!-- end-user-doc --> | ||
947 | * @return the meta object for class '<em>Event Definition</em>'. | ||
948 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition | ||
949 | * @generated | ||
950 | */ | ||
951 | EClass getEventDefinition(); | ||
952 | |||
953 | /** | ||
954 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
955 | * <!-- begin-user-doc --> | ||
956 | * <!-- end-user-doc --> | ||
957 | * @return the meta object for class '<em>Basic Event Definition</em>'. | ||
958 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition | ||
959 | * @generated | ||
960 | */ | ||
961 | EClass getBasicEventDefinition(); | ||
962 | |||
963 | /** | ||
964 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate <em>Rate</em>}'. | ||
965 | * <!-- begin-user-doc --> | ||
966 | * <!-- end-user-doc --> | ||
967 | * @return the meta object for the attribute '<em>Rate</em>'. | ||
968 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition#getRate() | ||
969 | * @see #getBasicEventDefinition() | ||
970 | * @generated | ||
971 | */ | ||
972 | EAttribute getBasicEventDefinition_Rate(); | ||
973 | |||
974 | /** | ||
975 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition <em>Gate Definition</em>}'. | ||
976 | * <!-- begin-user-doc --> | ||
977 | * <!-- end-user-doc --> | ||
978 | * @return the meta object for class '<em>Gate Definition</em>'. | ||
979 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition | ||
980 | * @generated | ||
981 | */ | ||
982 | EClass getGateDefinition(); | ||
983 | |||
984 | /** | ||
985 | * Returns the meta object for the reference list '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition#getInputEvents <em>Input Events</em>}'. | ||
986 | * <!-- begin-user-doc --> | ||
987 | * <!-- end-user-doc --> | ||
988 | * @return the meta object for the reference list '<em>Input Events</em>'. | ||
989 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition#getInputEvents() | ||
990 | * @see #getGateDefinition() | ||
991 | * @generated | ||
992 | */ | ||
993 | EReference getGateDefinition_InputEvents(); | ||
994 | |||
995 | /** | ||
996 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate <em>And Gate</em>}'. | ||
997 | * <!-- begin-user-doc --> | ||
998 | * <!-- end-user-doc --> | ||
999 | * @return the meta object for class '<em>And Gate</em>'. | ||
1000 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate | ||
1001 | * @generated | ||
1002 | */ | ||
1003 | EClass getAndGate(); | ||
1004 | |||
1005 | /** | ||
1006 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate <em>Or Gate</em>}'. | ||
1007 | * <!-- begin-user-doc --> | ||
1008 | * <!-- end-user-doc --> | ||
1009 | * @return the meta object for class '<em>Or Gate</em>'. | ||
1010 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate | ||
1011 | * @generated | ||
1012 | */ | ||
1013 | EClass getOrGate(); | ||
1014 | |||
1015 | /** | ||
1016 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. | 552 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. |
1017 | * <!-- begin-user-doc --> | 553 | * <!-- begin-user-doc --> |
1018 | * <!-- end-user-doc --> | 554 | * <!-- end-user-doc --> |
@@ -1374,150 +910,6 @@ public interface CftLanguagePackage extends EPackage | |||
1374 | EAttribute IMPORT_DECLARATION__IMPORTED_NAMESPACE = eINSTANCE.getImportDeclaration_ImportedNamespace(); | 910 | EAttribute IMPORT_DECLARATION__IMPORTED_NAMESPACE = eINSTANCE.getImportDeclaration_ImportedNamespace(); |
1375 | 911 | ||
1376 | /** | 912 | /** |
1377 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl <em>Component Definition</em>}' class. | ||
1378 | * <!-- begin-user-doc --> | ||
1379 | * <!-- end-user-doc --> | ||
1380 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl | ||
1381 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getComponentDefinition() | ||
1382 | * @generated | ||
1383 | */ | ||
1384 | EClass COMPONENT_DEFINITION = eINSTANCE.getComponentDefinition(); | ||
1385 | |||
1386 | /** | ||
1387 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1388 | * <!-- begin-user-doc --> | ||
1389 | * <!-- end-user-doc --> | ||
1390 | * @generated | ||
1391 | */ | ||
1392 | EAttribute COMPONENT_DEFINITION__NAME = eINSTANCE.getComponentDefinition_Name(); | ||
1393 | |||
1394 | /** | ||
1395 | * The meta object literal for the '<em><b>Input Events</b></em>' containment reference list feature. | ||
1396 | * <!-- begin-user-doc --> | ||
1397 | * <!-- end-user-doc --> | ||
1398 | * @generated | ||
1399 | */ | ||
1400 | EReference COMPONENT_DEFINITION__INPUT_EVENTS = eINSTANCE.getComponentDefinition_InputEvents(); | ||
1401 | |||
1402 | /** | ||
1403 | * The meta object literal for the '<em><b>Output Events</b></em>' reference list feature. | ||
1404 | * <!-- begin-user-doc --> | ||
1405 | * <!-- end-user-doc --> | ||
1406 | * @generated | ||
1407 | */ | ||
1408 | EReference COMPONENT_DEFINITION__OUTPUT_EVENTS = eINSTANCE.getComponentDefinition_OutputEvents(); | ||
1409 | |||
1410 | /** | ||
1411 | * The meta object literal for the '<em><b>Event Definitions</b></em>' containment reference list feature. | ||
1412 | * <!-- begin-user-doc --> | ||
1413 | * <!-- end-user-doc --> | ||
1414 | * @generated | ||
1415 | */ | ||
1416 | EReference COMPONENT_DEFINITION__EVENT_DEFINITIONS = eINSTANCE.getComponentDefinition_EventDefinitions(); | ||
1417 | |||
1418 | /** | ||
1419 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl <em>Event Declaration</em>}' class. | ||
1420 | * <!-- begin-user-doc --> | ||
1421 | * <!-- end-user-doc --> | ||
1422 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl | ||
1423 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDeclaration() | ||
1424 | * @generated | ||
1425 | */ | ||
1426 | EClass EVENT_DECLARATION = eINSTANCE.getEventDeclaration(); | ||
1427 | |||
1428 | /** | ||
1429 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
1430 | * <!-- begin-user-doc --> | ||
1431 | * <!-- end-user-doc --> | ||
1432 | * @generated | ||
1433 | */ | ||
1434 | EAttribute EVENT_DECLARATION__NAME = eINSTANCE.getEventDeclaration_Name(); | ||
1435 | |||
1436 | /** | ||
1437 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl <em>Input Event</em>}' class. | ||
1438 | * <!-- begin-user-doc --> | ||
1439 | * <!-- end-user-doc --> | ||
1440 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl | ||
1441 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getInputEvent() | ||
1442 | * @generated | ||
1443 | */ | ||
1444 | EClass INPUT_EVENT = eINSTANCE.getInputEvent(); | ||
1445 | |||
1446 | /** | ||
1447 | * The meta object literal for the '<em><b>Multiple</b></em>' attribute feature. | ||
1448 | * <!-- begin-user-doc --> | ||
1449 | * <!-- end-user-doc --> | ||
1450 | * @generated | ||
1451 | */ | ||
1452 | EAttribute INPUT_EVENT__MULTIPLE = eINSTANCE.getInputEvent_Multiple(); | ||
1453 | |||
1454 | /** | ||
1455 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl <em>Event Definition</em>}' class. | ||
1456 | * <!-- begin-user-doc --> | ||
1457 | * <!-- end-user-doc --> | ||
1458 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDefinitionImpl | ||
1459 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getEventDefinition() | ||
1460 | * @generated | ||
1461 | */ | ||
1462 | EClass EVENT_DEFINITION = eINSTANCE.getEventDefinition(); | ||
1463 | |||
1464 | /** | ||
1465 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl <em>Basic Event Definition</em>}' class. | ||
1466 | * <!-- begin-user-doc --> | ||
1467 | * <!-- end-user-doc --> | ||
1468 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl | ||
1469 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getBasicEventDefinition() | ||
1470 | * @generated | ||
1471 | */ | ||
1472 | EClass BASIC_EVENT_DEFINITION = eINSTANCE.getBasicEventDefinition(); | ||
1473 | |||
1474 | /** | ||
1475 | * The meta object literal for the '<em><b>Rate</b></em>' attribute feature. | ||
1476 | * <!-- begin-user-doc --> | ||
1477 | * <!-- end-user-doc --> | ||
1478 | * @generated | ||
1479 | */ | ||
1480 | EAttribute BASIC_EVENT_DEFINITION__RATE = eINSTANCE.getBasicEventDefinition_Rate(); | ||
1481 | |||
1482 | /** | ||
1483 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl <em>Gate Definition</em>}' class. | ||
1484 | * <!-- begin-user-doc --> | ||
1485 | * <!-- end-user-doc --> | ||
1486 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl | ||
1487 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getGateDefinition() | ||
1488 | * @generated | ||
1489 | */ | ||
1490 | EClass GATE_DEFINITION = eINSTANCE.getGateDefinition(); | ||
1491 | |||
1492 | /** | ||
1493 | * The meta object literal for the '<em><b>Input Events</b></em>' reference list feature. | ||
1494 | * <!-- begin-user-doc --> | ||
1495 | * <!-- end-user-doc --> | ||
1496 | * @generated | ||
1497 | */ | ||
1498 | EReference GATE_DEFINITION__INPUT_EVENTS = eINSTANCE.getGateDefinition_InputEvents(); | ||
1499 | |||
1500 | /** | ||
1501 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl <em>And Gate</em>}' class. | ||
1502 | * <!-- begin-user-doc --> | ||
1503 | * <!-- end-user-doc --> | ||
1504 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.AndGateImpl | ||
1505 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getAndGate() | ||
1506 | * @generated | ||
1507 | */ | ||
1508 | EClass AND_GATE = eINSTANCE.getAndGate(); | ||
1509 | |||
1510 | /** | ||
1511 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl <em>Or Gate</em>}' class. | ||
1512 | * <!-- begin-user-doc --> | ||
1513 | * <!-- end-user-doc --> | ||
1514 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.OrGateImpl | ||
1515 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.CftLanguagePackageImpl#getOrGate() | ||
1516 | * @generated | ||
1517 | */ | ||
1518 | EClass OR_GATE = eINSTANCE.getOrGate(); | ||
1519 | |||
1520 | /** | ||
1521 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. | 913 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.TransformationDefinitionImpl <em>Transformation Definition</em>}' class. |
1522 | * <!-- begin-user-doc --> | 914 | * <!-- begin-user-doc --> |
1523 | * <!-- end-user-doc --> | 915 | * <!-- end-user-doc --> |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java index 5291e747..0b384084 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/CftModel.java | |||
@@ -3,6 +3,8 @@ | |||
3 | */ | 3 | */ |
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | 4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; |
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
7 | |||
6 | import org.eclipse.emf.common.util.EList; | 8 | import org.eclipse.emf.common.util.EList; |
7 | 9 | ||
8 | import org.eclipse.emf.ecore.EObject; | 10 | import org.eclipse.emf.ecore.EObject; |
@@ -72,7 +74,7 @@ public interface CftModel extends EObject | |||
72 | 74 | ||
73 | /** | 75 | /** |
74 | * Returns the value of the '<em><b>Component Definitions</b></em>' containment reference list. | 76 | * Returns the value of the '<em><b>Component Definitions</b></em>' containment reference list. |
75 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition}. | 77 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition}. |
76 | * <!-- begin-user-doc --> | 78 | * <!-- begin-user-doc --> |
77 | * <p> | 79 | * <p> |
78 | * If the meaning of the '<em>Component Definitions</em>' containment reference list isn't clear, | 80 | * If the meaning of the '<em>Component Definitions</em>' containment reference list isn't clear, |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentDefinition.java deleted file mode 100644 index dae78e7e..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentDefinition.java +++ /dev/null | |||
@@ -1,105 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * A representation of the model object '<em><b>Component Definition</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * <p> | ||
16 | * The following features are supported: | ||
17 | * </p> | ||
18 | * <ul> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName <em>Name</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getInputEvents <em>Input Events</em>}</li> | ||
21 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getOutputEvents <em>Output Events</em>}</li> | ||
22 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getEventDefinitions <em>Event Definitions</em>}</li> | ||
23 | * </ul> | ||
24 | * | ||
25 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition() | ||
26 | * @model | ||
27 | * @generated | ||
28 | */ | ||
29 | public interface ComponentDefinition extends EObject | ||
30 | { | ||
31 | /** | ||
32 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <p> | ||
35 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
36 | * there really should be more of a description here... | ||
37 | * </p> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @return the value of the '<em>Name</em>' attribute. | ||
40 | * @see #setName(String) | ||
41 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_Name() | ||
42 | * @model | ||
43 | * @generated | ||
44 | */ | ||
45 | String getName(); | ||
46 | |||
47 | /** | ||
48 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition#getName <em>Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @param value the new value of the '<em>Name</em>' attribute. | ||
52 | * @see #getName() | ||
53 | * @generated | ||
54 | */ | ||
55 | void setName(String value); | ||
56 | |||
57 | /** | ||
58 | * Returns the value of the '<em><b>Input Events</b></em>' containment reference list. | ||
59 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent}. | ||
60 | * <!-- begin-user-doc --> | ||
61 | * <p> | ||
62 | * If the meaning of the '<em>Input Events</em>' containment reference list isn't clear, | ||
63 | * there really should be more of a description here... | ||
64 | * </p> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return the value of the '<em>Input Events</em>' containment reference list. | ||
67 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_InputEvents() | ||
68 | * @model containment="true" | ||
69 | * @generated | ||
70 | */ | ||
71 | EList<InputEvent> getInputEvents(); | ||
72 | |||
73 | /** | ||
74 | * Returns the value of the '<em><b>Output Events</b></em>' reference list. | ||
75 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration}. | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <p> | ||
78 | * If the meaning of the '<em>Output Events</em>' reference list isn't clear, | ||
79 | * there really should be more of a description here... | ||
80 | * </p> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @return the value of the '<em>Output Events</em>' reference list. | ||
83 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_OutputEvents() | ||
84 | * @model | ||
85 | * @generated | ||
86 | */ | ||
87 | EList<EventDeclaration> getOutputEvents(); | ||
88 | |||
89 | /** | ||
90 | * Returns the value of the '<em><b>Event Definitions</b></em>' containment reference list. | ||
91 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition}. | ||
92 | * <!-- begin-user-doc --> | ||
93 | * <p> | ||
94 | * If the meaning of the '<em>Event Definitions</em>' containment reference list isn't clear, | ||
95 | * there really should be more of a description here... | ||
96 | * </p> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @return the value of the '<em>Event Definitions</em>' containment reference list. | ||
99 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getComponentDefinition_EventDefinitions() | ||
100 | * @model containment="true" | ||
101 | * @generated | ||
102 | */ | ||
103 | EList<EventDefinition> getEventDefinitions(); | ||
104 | |||
105 | } // ComponentDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java index f9f0f57b..0c80849d 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/ComponentInstance.java | |||
@@ -3,6 +3,7 @@ | |||
3 | */ | 3 | */ |
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | 4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; |
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
6 | 7 | ||
7 | /** | 8 | /** |
8 | * <!-- begin-user-doc --> | 9 | * <!-- begin-user-doc --> |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDeclaration.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDeclaration.java deleted file mode 100644 index c03c117e..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDeclaration.java +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Event Declaration</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName <em>Name</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventDeclaration() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface EventDeclaration extends EObject | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Name</em>' attribute. | ||
35 | * @see #setName(String) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventDeclaration_Name() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getName(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration#getName <em>Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Name</em>' attribute. | ||
47 | * @see #getName() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setName(String value); | ||
51 | |||
52 | } // EventDeclaration | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDefinition.java deleted file mode 100644 index 0d4f7f95..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventDefinition.java +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Event Definition</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getEventDefinition() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface EventDefinition extends EventDeclaration | ||
18 | { | ||
19 | } // EventDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java index b351b185..bf7b7263 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/EventReference.java | |||
@@ -3,6 +3,8 @@ | |||
3 | */ | 3 | */ |
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | 4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; |
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
7 | |||
6 | import org.eclipse.emf.ecore.EObject; | 8 | import org.eclipse.emf.ecore.EObject; |
7 | 9 | ||
8 | /** | 10 | /** |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/GateDefinition.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/GateDefinition.java deleted file mode 100644 index 3020f2ca..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/GateDefinition.java +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Gate Definition</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition#getInputEvents <em>Input Events</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getGateDefinition() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface GateDefinition extends EventDefinition | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Input Events</b></em>' reference list. | ||
28 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration}. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Input Events</em>' reference list isn't clear, | ||
32 | * there really should be more of a description here... | ||
33 | * </p> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @return the value of the '<em>Input Events</em>' reference list. | ||
36 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getGateDefinition_InputEvents() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | EList<EventDeclaration> getInputEvents(); | ||
41 | |||
42 | } // GateDefinition | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/InputEvent.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/InputEvent.java deleted file mode 100644 index 4269fa10..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/InputEvent.java +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Input Event</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple <em>Multiple</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getInputEvent() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface InputEvent extends EventDeclaration | ||
24 | { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Multiple</b></em>' attribute. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Multiple</em>' attribute isn't clear, | ||
30 | * there really should be more of a description here... | ||
31 | * </p> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @return the value of the '<em>Multiple</em>' attribute. | ||
34 | * @see #setMultiple(boolean) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getInputEvent_Multiple() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | boolean isMultiple(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent#isMultiple <em>Multiple</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Multiple</em>' attribute. | ||
46 | * @see #isMultiple() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setMultiple(boolean value); | ||
50 | |||
51 | } // InputEvent | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/OrGate.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/OrGate.java deleted file mode 100644 index 44a2bc07..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/OrGate.java +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Or Gate</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage#getOrGate() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface OrGate extends GateDefinition | ||
18 | { | ||
19 | } // OrGate | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AndGateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AndGateImpl.java deleted file mode 100644 index d38a9fcd..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/AndGateImpl.java +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>And Gate</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class AndGateImpl extends GateDefinitionImpl implements AndGate | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected AndGateImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return CftLanguagePackage.Literals.AND_GATE; | ||
39 | } | ||
40 | |||
41 | } //AndGateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/BasicEventDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/BasicEventDefinitionImpl.java deleted file mode 100644 index 34c865c3..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/BasicEventDefinitionImpl.java +++ /dev/null | |||
@@ -1,179 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Basic Event Definition</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.BasicEventDefinitionImpl#getRate <em>Rate</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class BasicEventDefinitionImpl extends EventDefinitionImpl implements BasicEventDefinition | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #getRate() <em>Rate</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #getRate() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final double RATE_EDEFAULT = 0.0; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #getRate() <em>Rate</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #getRate() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected double rate = RATE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected BasicEventDefinitionImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public double getRate() | ||
78 | { | ||
79 | return rate; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setRate(double newRate) | ||
89 | { | ||
90 | double oldRate = rate; | ||
91 | rate = newRate; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE, oldRate, rate)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
107 | return getRate(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
123 | setRate((Double)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
140 | setRate(RATE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case CftLanguagePackage.BASIC_EVENT_DEFINITION__RATE: | ||
157 | return rate != RATE_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (rate: "); | ||
174 | result.append(rate); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //BasicEventDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java index 04b066b2..db604384 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguageFactoryImpl.java | |||
@@ -67,14 +67,6 @@ public class CftLanguageFactoryImpl extends EFactoryImpl implements CftLanguageF | |||
67 | { | 67 | { |
68 | case CftLanguagePackage.CFT_MODEL: return createCftModel(); | 68 | case CftLanguagePackage.CFT_MODEL: return createCftModel(); |
69 | case CftLanguagePackage.IMPORT_DECLARATION: return createImportDeclaration(); | 69 | case CftLanguagePackage.IMPORT_DECLARATION: return createImportDeclaration(); |
70 | case CftLanguagePackage.COMPONENT_DEFINITION: return createComponentDefinition(); | ||
71 | case CftLanguagePackage.EVENT_DECLARATION: return createEventDeclaration(); | ||
72 | case CftLanguagePackage.INPUT_EVENT: return createInputEvent(); | ||
73 | case CftLanguagePackage.EVENT_DEFINITION: return createEventDefinition(); | ||
74 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: return createBasicEventDefinition(); | ||
75 | case CftLanguagePackage.GATE_DEFINITION: return createGateDefinition(); | ||
76 | case CftLanguagePackage.AND_GATE: return createAndGate(); | ||
77 | case CftLanguagePackage.OR_GATE: return createOrGate(); | ||
78 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: return createTransformationDefinition(); | 70 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: return createTransformationDefinition(); |
79 | case CftLanguagePackage.MAPPING_DEFINITION: return createMappingDefinition(); | 71 | case CftLanguagePackage.MAPPING_DEFINITION: return createMappingDefinition(); |
80 | case CftLanguagePackage.MAPPING_PARAMETER: return createMappingParameter(); | 72 | case CftLanguagePackage.MAPPING_PARAMETER: return createMappingParameter(); |
@@ -118,102 +110,6 @@ public class CftLanguageFactoryImpl extends EFactoryImpl implements CftLanguageF | |||
118 | * @generated | 110 | * @generated |
119 | */ | 111 | */ |
120 | @Override | 112 | @Override |
121 | public ComponentDefinition createComponentDefinition() | ||
122 | { | ||
123 | ComponentDefinitionImpl componentDefinition = new ComponentDefinitionImpl(); | ||
124 | return componentDefinition; | ||
125 | } | ||
126 | |||
127 | /** | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | */ | ||
132 | @Override | ||
133 | public EventDeclaration createEventDeclaration() | ||
134 | { | ||
135 | EventDeclarationImpl eventDeclaration = new EventDeclarationImpl(); | ||
136 | return eventDeclaration; | ||
137 | } | ||
138 | |||
139 | /** | ||
140 | * <!-- begin-user-doc --> | ||
141 | * <!-- end-user-doc --> | ||
142 | * @generated | ||
143 | */ | ||
144 | @Override | ||
145 | public InputEvent createInputEvent() | ||
146 | { | ||
147 | InputEventImpl inputEvent = new InputEventImpl(); | ||
148 | return inputEvent; | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | @Override | ||
157 | public EventDefinition createEventDefinition() | ||
158 | { | ||
159 | EventDefinitionImpl eventDefinition = new EventDefinitionImpl(); | ||
160 | return eventDefinition; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public BasicEventDefinition createBasicEventDefinition() | ||
170 | { | ||
171 | BasicEventDefinitionImpl basicEventDefinition = new BasicEventDefinitionImpl(); | ||
172 | return basicEventDefinition; | ||
173 | } | ||
174 | |||
175 | /** | ||
176 | * <!-- begin-user-doc --> | ||
177 | * <!-- end-user-doc --> | ||
178 | * @generated | ||
179 | */ | ||
180 | @Override | ||
181 | public GateDefinition createGateDefinition() | ||
182 | { | ||
183 | GateDefinitionImpl gateDefinition = new GateDefinitionImpl(); | ||
184 | return gateDefinition; | ||
185 | } | ||
186 | |||
187 | /** | ||
188 | * <!-- begin-user-doc --> | ||
189 | * <!-- end-user-doc --> | ||
190 | * @generated | ||
191 | */ | ||
192 | @Override | ||
193 | public AndGate createAndGate() | ||
194 | { | ||
195 | AndGateImpl andGate = new AndGateImpl(); | ||
196 | return andGate; | ||
197 | } | ||
198 | |||
199 | /** | ||
200 | * <!-- begin-user-doc --> | ||
201 | * <!-- end-user-doc --> | ||
202 | * @generated | ||
203 | */ | ||
204 | @Override | ||
205 | public OrGate createOrGate() | ||
206 | { | ||
207 | OrGateImpl orGate = new OrGateImpl(); | ||
208 | return orGate; | ||
209 | } | ||
210 | |||
211 | /** | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @generated | ||
215 | */ | ||
216 | @Override | ||
217 | public TransformationDefinition createTransformationDefinition() | 113 | public TransformationDefinition createTransformationDefinition() |
218 | { | 114 | { |
219 | TransformationDefinitionImpl transformationDefinition = new TransformationDefinitionImpl(); | 115 | TransformationDefinitionImpl transformationDefinition = new TransformationDefinitionImpl(); |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java index 95520ab8..d4e06dde 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftLanguagePackageImpl.java | |||
@@ -3,27 +3,23 @@ | |||
3 | */ | 3 | */ |
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | 4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; |
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | 6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; |
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguageFactory; | 7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguageFactory; |
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | 8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; |
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | 9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; |
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | 10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; |
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | 11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; |
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition; | ||
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | 12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; |
19 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | 13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; |
21 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | 14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; |
22 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | 15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; |
23 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
24 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | 16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; |
25 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | 17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; |
26 | 18 | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
20 | |||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
22 | |||
27 | import org.eclipse.emf.ecore.EAttribute; | 23 | import org.eclipse.emf.ecore.EAttribute; |
28 | import org.eclipse.emf.ecore.EClass; | 24 | import org.eclipse.emf.ecore.EClass; |
29 | import org.eclipse.emf.ecore.EPackage; | 25 | import org.eclipse.emf.ecore.EPackage; |
@@ -67,62 +63,6 @@ public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguageP | |||
67 | * <!-- end-user-doc --> | 63 | * <!-- end-user-doc --> |
68 | * @generated | 64 | * @generated |
69 | */ | 65 | */ |
70 | private EClass componentDefinitionEClass = null; | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | private EClass eventDeclarationEClass = null; | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | private EClass inputEventEClass = null; | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | private EClass eventDefinitionEClass = null; | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | private EClass basicEventDefinitionEClass = null; | ||
99 | |||
100 | /** | ||
101 | * <!-- begin-user-doc --> | ||
102 | * <!-- end-user-doc --> | ||
103 | * @generated | ||
104 | */ | ||
105 | private EClass gateDefinitionEClass = null; | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | private EClass andGateEClass = null; | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | private EClass orGateEClass = null; | ||
120 | |||
121 | /** | ||
122 | * <!-- begin-user-doc --> | ||
123 | * <!-- end-user-doc --> | ||
124 | * @generated | ||
125 | */ | ||
126 | private EClass transformationDefinitionEClass = null; | 66 | private EClass transformationDefinitionEClass = null; |
127 | 67 | ||
128 | /** | 68 | /** |
@@ -224,8 +164,10 @@ public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguageP | |||
224 | isInited = true; | 164 | isInited = true; |
225 | 165 | ||
226 | // Initialize simple dependencies | 166 | // Initialize simple dependencies |
167 | CftPackage.eINSTANCE.eClass(); | ||
227 | EcorePackage.eINSTANCE.eClass(); | 168 | EcorePackage.eINSTANCE.eClass(); |
228 | PatternLanguagePackage.eINSTANCE.eClass(); | 169 | PatternLanguagePackage.eINSTANCE.eClass(); |
170 | FtPackage.eINSTANCE.eClass(); | ||
229 | XtypePackage.eINSTANCE.eClass(); | 171 | XtypePackage.eINSTANCE.eClass(); |
230 | TypesPackage.eINSTANCE.eClass(); | 172 | TypesPackage.eINSTANCE.eClass(); |
231 | XbasePackage.eINSTANCE.eClass(); | 173 | XbasePackage.eINSTANCE.eClass(); |
@@ -327,182 +269,6 @@ public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguageP | |||
327 | * @generated | 269 | * @generated |
328 | */ | 270 | */ |
329 | @Override | 271 | @Override |
330 | public EClass getComponentDefinition() | ||
331 | { | ||
332 | return componentDefinitionEClass; | ||
333 | } | ||
334 | |||
335 | /** | ||
336 | * <!-- begin-user-doc --> | ||
337 | * <!-- end-user-doc --> | ||
338 | * @generated | ||
339 | */ | ||
340 | @Override | ||
341 | public EAttribute getComponentDefinition_Name() | ||
342 | { | ||
343 | return (EAttribute)componentDefinitionEClass.getEStructuralFeatures().get(0); | ||
344 | } | ||
345 | |||
346 | /** | ||
347 | * <!-- begin-user-doc --> | ||
348 | * <!-- end-user-doc --> | ||
349 | * @generated | ||
350 | */ | ||
351 | @Override | ||
352 | public EReference getComponentDefinition_InputEvents() | ||
353 | { | ||
354 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(1); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * <!-- begin-user-doc --> | ||
359 | * <!-- end-user-doc --> | ||
360 | * @generated | ||
361 | */ | ||
362 | @Override | ||
363 | public EReference getComponentDefinition_OutputEvents() | ||
364 | { | ||
365 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(2); | ||
366 | } | ||
367 | |||
368 | /** | ||
369 | * <!-- begin-user-doc --> | ||
370 | * <!-- end-user-doc --> | ||
371 | * @generated | ||
372 | */ | ||
373 | @Override | ||
374 | public EReference getComponentDefinition_EventDefinitions() | ||
375 | { | ||
376 | return (EReference)componentDefinitionEClass.getEStructuralFeatures().get(3); | ||
377 | } | ||
378 | |||
379 | /** | ||
380 | * <!-- begin-user-doc --> | ||
381 | * <!-- end-user-doc --> | ||
382 | * @generated | ||
383 | */ | ||
384 | @Override | ||
385 | public EClass getEventDeclaration() | ||
386 | { | ||
387 | return eventDeclarationEClass; | ||
388 | } | ||
389 | |||
390 | /** | ||
391 | * <!-- begin-user-doc --> | ||
392 | * <!-- end-user-doc --> | ||
393 | * @generated | ||
394 | */ | ||
395 | @Override | ||
396 | public EAttribute getEventDeclaration_Name() | ||
397 | { | ||
398 | return (EAttribute)eventDeclarationEClass.getEStructuralFeatures().get(0); | ||
399 | } | ||
400 | |||
401 | /** | ||
402 | * <!-- begin-user-doc --> | ||
403 | * <!-- end-user-doc --> | ||
404 | * @generated | ||
405 | */ | ||
406 | @Override | ||
407 | public EClass getInputEvent() | ||
408 | { | ||
409 | return inputEventEClass; | ||
410 | } | ||
411 | |||
412 | /** | ||
413 | * <!-- begin-user-doc --> | ||
414 | * <!-- end-user-doc --> | ||
415 | * @generated | ||
416 | */ | ||
417 | @Override | ||
418 | public EAttribute getInputEvent_Multiple() | ||
419 | { | ||
420 | return (EAttribute)inputEventEClass.getEStructuralFeatures().get(0); | ||
421 | } | ||
422 | |||
423 | /** | ||
424 | * <!-- begin-user-doc --> | ||
425 | * <!-- end-user-doc --> | ||
426 | * @generated | ||
427 | */ | ||
428 | @Override | ||
429 | public EClass getEventDefinition() | ||
430 | { | ||
431 | return eventDefinitionEClass; | ||
432 | } | ||
433 | |||
434 | /** | ||
435 | * <!-- begin-user-doc --> | ||
436 | * <!-- end-user-doc --> | ||
437 | * @generated | ||
438 | */ | ||
439 | @Override | ||
440 | public EClass getBasicEventDefinition() | ||
441 | { | ||
442 | return basicEventDefinitionEClass; | ||
443 | } | ||
444 | |||
445 | /** | ||
446 | * <!-- begin-user-doc --> | ||
447 | * <!-- end-user-doc --> | ||
448 | * @generated | ||
449 | */ | ||
450 | @Override | ||
451 | public EAttribute getBasicEventDefinition_Rate() | ||
452 | { | ||
453 | return (EAttribute)basicEventDefinitionEClass.getEStructuralFeatures().get(0); | ||
454 | } | ||
455 | |||
456 | /** | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @generated | ||
460 | */ | ||
461 | @Override | ||
462 | public EClass getGateDefinition() | ||
463 | { | ||
464 | return gateDefinitionEClass; | ||
465 | } | ||
466 | |||
467 | /** | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @generated | ||
471 | */ | ||
472 | @Override | ||
473 | public EReference getGateDefinition_InputEvents() | ||
474 | { | ||
475 | return (EReference)gateDefinitionEClass.getEStructuralFeatures().get(0); | ||
476 | } | ||
477 | |||
478 | /** | ||
479 | * <!-- begin-user-doc --> | ||
480 | * <!-- end-user-doc --> | ||
481 | * @generated | ||
482 | */ | ||
483 | @Override | ||
484 | public EClass getAndGate() | ||
485 | { | ||
486 | return andGateEClass; | ||
487 | } | ||
488 | |||
489 | /** | ||
490 | * <!-- begin-user-doc --> | ||
491 | * <!-- end-user-doc --> | ||
492 | * @generated | ||
493 | */ | ||
494 | @Override | ||
495 | public EClass getOrGate() | ||
496 | { | ||
497 | return orGateEClass; | ||
498 | } | ||
499 | |||
500 | /** | ||
501 | * <!-- begin-user-doc --> | ||
502 | * <!-- end-user-doc --> | ||
503 | * @generated | ||
504 | */ | ||
505 | @Override | ||
506 | public EClass getTransformationDefinition() | 272 | public EClass getTransformationDefinition() |
507 | { | 273 | { |
508 | return transformationDefinitionEClass; | 274 | return transformationDefinitionEClass; |
@@ -823,30 +589,6 @@ public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguageP | |||
823 | importDeclarationEClass = createEClass(IMPORT_DECLARATION); | 589 | importDeclarationEClass = createEClass(IMPORT_DECLARATION); |
824 | createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORTED_NAMESPACE); | 590 | createEAttribute(importDeclarationEClass, IMPORT_DECLARATION__IMPORTED_NAMESPACE); |
825 | 591 | ||
826 | componentDefinitionEClass = createEClass(COMPONENT_DEFINITION); | ||
827 | createEAttribute(componentDefinitionEClass, COMPONENT_DEFINITION__NAME); | ||
828 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__INPUT_EVENTS); | ||
829 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
830 | createEReference(componentDefinitionEClass, COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
831 | |||
832 | eventDeclarationEClass = createEClass(EVENT_DECLARATION); | ||
833 | createEAttribute(eventDeclarationEClass, EVENT_DECLARATION__NAME); | ||
834 | |||
835 | inputEventEClass = createEClass(INPUT_EVENT); | ||
836 | createEAttribute(inputEventEClass, INPUT_EVENT__MULTIPLE); | ||
837 | |||
838 | eventDefinitionEClass = createEClass(EVENT_DEFINITION); | ||
839 | |||
840 | basicEventDefinitionEClass = createEClass(BASIC_EVENT_DEFINITION); | ||
841 | createEAttribute(basicEventDefinitionEClass, BASIC_EVENT_DEFINITION__RATE); | ||
842 | |||
843 | gateDefinitionEClass = createEClass(GATE_DEFINITION); | ||
844 | createEReference(gateDefinitionEClass, GATE_DEFINITION__INPUT_EVENTS); | ||
845 | |||
846 | andGateEClass = createEClass(AND_GATE); | ||
847 | |||
848 | orGateEClass = createEClass(OR_GATE); | ||
849 | |||
850 | transformationDefinitionEClass = createEClass(TRANSFORMATION_DEFINITION); | 592 | transformationDefinitionEClass = createEClass(TRANSFORMATION_DEFINITION); |
851 | createEAttribute(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__NAME); | 593 | createEAttribute(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__NAME); |
852 | createEReference(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); | 594 | createEReference(transformationDefinitionEClass, TRANSFORMATION_DEFINITION__MAPPING_DEFINITIONS); |
@@ -908,6 +650,7 @@ public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguageP | |||
908 | 650 | ||
909 | // Obtain other dependent packages | 651 | // Obtain other dependent packages |
910 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); | 652 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); |
653 | CftPackage theCftPackage = (CftPackage)EPackage.Registry.INSTANCE.getEPackage(CftPackage.eNS_URI); | ||
911 | PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); | 654 | PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); |
912 | 655 | ||
913 | // Create type parameters | 656 | // Create type parameters |
@@ -915,12 +658,6 @@ public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguageP | |||
915 | // Set bounds for type parameters | 658 | // Set bounds for type parameters |
916 | 659 | ||
917 | // Add supertypes to classes | 660 | // Add supertypes to classes |
918 | inputEventEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
919 | eventDefinitionEClass.getESuperTypes().add(this.getEventDeclaration()); | ||
920 | basicEventDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
921 | gateDefinitionEClass.getESuperTypes().add(this.getEventDefinition()); | ||
922 | andGateEClass.getESuperTypes().add(this.getGateDefinition()); | ||
923 | orGateEClass.getESuperTypes().add(this.getGateDefinition()); | ||
924 | lookupDefinitionEClass.getESuperTypes().add(this.getVariable()); | 661 | lookupDefinitionEClass.getESuperTypes().add(this.getVariable()); |
925 | componentInstanceEClass.getESuperTypes().add(this.getVariable()); | 662 | componentInstanceEClass.getESuperTypes().add(this.getVariable()); |
926 | 663 | ||
@@ -928,36 +665,12 @@ public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguageP | |||
928 | initEClass(cftModelEClass, CftModel.class, "CftModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 665 | initEClass(cftModelEClass, CftModel.class, "CftModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
929 | initEAttribute(getCftModel_PackageName(), theEcorePackage.getEString(), "packageName", null, 0, 1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 666 | initEAttribute(getCftModel_PackageName(), theEcorePackage.getEString(), "packageName", null, 0, 1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
930 | initEReference(getCftModel_Imports(), this.getImportDeclaration(), null, "imports", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 667 | initEReference(getCftModel_Imports(), this.getImportDeclaration(), null, "imports", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
931 | initEReference(getCftModel_ComponentDefinitions(), this.getComponentDefinition(), null, "componentDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 668 | initEReference(getCftModel_ComponentDefinitions(), theCftPackage.getComponentDefinition(), null, "componentDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
932 | initEReference(getCftModel_TransformationDefinitions(), this.getTransformationDefinition(), null, "transformationDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 669 | initEReference(getCftModel_TransformationDefinitions(), this.getTransformationDefinition(), null, "transformationDefinitions", null, 0, -1, CftModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
933 | 670 | ||
934 | initEClass(importDeclarationEClass, ImportDeclaration.class, "ImportDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 671 | initEClass(importDeclarationEClass, ImportDeclaration.class, "ImportDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
935 | initEAttribute(getImportDeclaration_ImportedNamespace(), theEcorePackage.getEString(), "importedNamespace", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 672 | initEAttribute(getImportDeclaration_ImportedNamespace(), theEcorePackage.getEString(), "importedNamespace", null, 0, 1, ImportDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
936 | 673 | ||
937 | initEClass(componentDefinitionEClass, ComponentDefinition.class, "ComponentDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
938 | initEAttribute(getComponentDefinition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
939 | initEReference(getComponentDefinition_InputEvents(), this.getInputEvent(), null, "inputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
940 | initEReference(getComponentDefinition_OutputEvents(), this.getEventDeclaration(), null, "outputEvents", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
941 | initEReference(getComponentDefinition_EventDefinitions(), this.getEventDefinition(), null, "eventDefinitions", null, 0, -1, ComponentDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
942 | |||
943 | initEClass(eventDeclarationEClass, EventDeclaration.class, "EventDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
944 | initEAttribute(getEventDeclaration_Name(), theEcorePackage.getEString(), "name", null, 0, 1, EventDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
945 | |||
946 | initEClass(inputEventEClass, InputEvent.class, "InputEvent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
947 | initEAttribute(getInputEvent_Multiple(), theEcorePackage.getEBoolean(), "multiple", null, 0, 1, InputEvent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
948 | |||
949 | initEClass(eventDefinitionEClass, EventDefinition.class, "EventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
950 | |||
951 | initEClass(basicEventDefinitionEClass, BasicEventDefinition.class, "BasicEventDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
952 | initEAttribute(getBasicEventDefinition_Rate(), theEcorePackage.getEDouble(), "rate", null, 0, 1, BasicEventDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
953 | |||
954 | initEClass(gateDefinitionEClass, GateDefinition.class, "GateDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
955 | initEReference(getGateDefinition_InputEvents(), this.getEventDeclaration(), null, "inputEvents", null, 0, -1, GateDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
956 | |||
957 | initEClass(andGateEClass, AndGate.class, "AndGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
958 | |||
959 | initEClass(orGateEClass, OrGate.class, "OrGate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
960 | |||
961 | initEClass(transformationDefinitionEClass, TransformationDefinition.class, "TransformationDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 674 | initEClass(transformationDefinitionEClass, TransformationDefinition.class, "TransformationDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
962 | initEAttribute(getTransformationDefinition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 675 | initEAttribute(getTransformationDefinition_Name(), theEcorePackage.getEString(), "name", null, 0, 1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
963 | initEReference(getTransformationDefinition_MappingDefinitions(), this.getMappingDefinition(), null, "mappingDefinitions", null, 0, -1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 676 | initEReference(getTransformationDefinition_MappingDefinitions(), this.getMappingDefinition(), null, "mappingDefinitions", null, 0, -1, TransformationDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
@@ -987,10 +700,10 @@ public class CftLanguagePackageImpl extends EPackageImpl implements CftLanguageP | |||
987 | 700 | ||
988 | initEClass(eventReferenceEClass, EventReference.class, "EventReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 701 | initEClass(eventReferenceEClass, EventReference.class, "EventReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
989 | initEReference(getEventReference_Component(), this.getVariable(), null, "component", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 702 | initEReference(getEventReference_Component(), this.getVariable(), null, "component", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
990 | initEReference(getEventReference_Event(), this.getEventDeclaration(), null, "event", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 703 | initEReference(getEventReference_Event(), theCftPackage.getEventDeclaration(), null, "event", null, 0, 1, EventReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
991 | 704 | ||
992 | initEClass(componentInstanceEClass, ComponentInstance.class, "ComponentInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | 705 | initEClass(componentInstanceEClass, ComponentInstance.class, "ComponentInstance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
993 | initEReference(getComponentInstance_ComponentType(), this.getComponentDefinition(), null, "componentType", null, 0, 1, ComponentInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | 706 | initEReference(getComponentInstance_ComponentType(), theCftPackage.getComponentDefinition(), null, "componentType", null, 0, 1, ComponentInstance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); |
994 | 707 | ||
995 | // Create resource | 708 | // Create resource |
996 | createResource(eNS_URI); | 709 | createResource(eNS_URI); |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java index b51f54ab..1a5a8c16 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/CftModelImpl.java | |||
@@ -5,10 +5,11 @@ package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | |||
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | 6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; |
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | 7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; |
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | 8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; |
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | 9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; |
11 | 10 | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
12 | |||
12 | import java.util.Collection; | 13 | import java.util.Collection; |
13 | 14 | ||
14 | import org.eclipse.emf.common.notify.Notification; | 15 | import org.eclipse.emf.common.notify.Notification; |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java deleted file mode 100644 index 4633d839..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentDefinitionImpl.java +++ /dev/null | |||
@@ -1,323 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
11 | |||
12 | import java.util.Collection; | ||
13 | |||
14 | import org.eclipse.emf.common.notify.Notification; | ||
15 | import org.eclipse.emf.common.notify.NotificationChain; | ||
16 | |||
17 | import org.eclipse.emf.common.util.EList; | ||
18 | |||
19 | import org.eclipse.emf.ecore.EClass; | ||
20 | import org.eclipse.emf.ecore.InternalEObject; | ||
21 | |||
22 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
23 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
24 | |||
25 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
26 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
27 | import org.eclipse.emf.ecore.util.InternalEList; | ||
28 | |||
29 | /** | ||
30 | * <!-- begin-user-doc --> | ||
31 | * An implementation of the model object '<em><b>Component Definition</b></em>'. | ||
32 | * <!-- end-user-doc --> | ||
33 | * <p> | ||
34 | * The following features are implemented: | ||
35 | * </p> | ||
36 | * <ul> | ||
37 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getName <em>Name</em>}</li> | ||
38 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
39 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getOutputEvents <em>Output Events</em>}</li> | ||
40 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.ComponentDefinitionImpl#getEventDefinitions <em>Event Definitions</em>}</li> | ||
41 | * </ul> | ||
42 | * | ||
43 | * @generated | ||
44 | */ | ||
45 | public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implements ComponentDefinition | ||
46 | { | ||
47 | /** | ||
48 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @see #getName() | ||
52 | * @generated | ||
53 | * @ordered | ||
54 | */ | ||
55 | protected static final String NAME_EDEFAULT = null; | ||
56 | |||
57 | /** | ||
58 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @see #getName() | ||
62 | * @generated | ||
63 | * @ordered | ||
64 | */ | ||
65 | protected String name = NAME_EDEFAULT; | ||
66 | |||
67 | /** | ||
68 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' containment reference list. | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @see #getInputEvents() | ||
72 | * @generated | ||
73 | * @ordered | ||
74 | */ | ||
75 | protected EList<InputEvent> inputEvents; | ||
76 | |||
77 | /** | ||
78 | * The cached value of the '{@link #getOutputEvents() <em>Output Events</em>}' reference list. | ||
79 | * <!-- begin-user-doc --> | ||
80 | * <!-- end-user-doc --> | ||
81 | * @see #getOutputEvents() | ||
82 | * @generated | ||
83 | * @ordered | ||
84 | */ | ||
85 | protected EList<EventDeclaration> outputEvents; | ||
86 | |||
87 | /** | ||
88 | * The cached value of the '{@link #getEventDefinitions() <em>Event Definitions</em>}' containment reference list. | ||
89 | * <!-- begin-user-doc --> | ||
90 | * <!-- end-user-doc --> | ||
91 | * @see #getEventDefinitions() | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | protected EList<EventDefinition> eventDefinitions; | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | protected ComponentDefinitionImpl() | ||
103 | { | ||
104 | super(); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | protected EClass eStaticClass() | ||
114 | { | ||
115 | return CftLanguagePackage.Literals.COMPONENT_DEFINITION; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | @Override | ||
124 | public String getName() | ||
125 | { | ||
126 | return name; | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void setName(String newName) | ||
136 | { | ||
137 | String oldName = name; | ||
138 | name = newName; | ||
139 | if (eNotificationRequired()) | ||
140 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.COMPONENT_DEFINITION__NAME, oldName, name)); | ||
141 | } | ||
142 | |||
143 | /** | ||
144 | * <!-- begin-user-doc --> | ||
145 | * <!-- end-user-doc --> | ||
146 | * @generated | ||
147 | */ | ||
148 | @Override | ||
149 | public EList<InputEvent> getInputEvents() | ||
150 | { | ||
151 | if (inputEvents == null) | ||
152 | { | ||
153 | inputEvents = new EObjectContainmentEList<InputEvent>(InputEvent.class, this, CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS); | ||
154 | } | ||
155 | return inputEvents; | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public EList<EventDeclaration> getOutputEvents() | ||
165 | { | ||
166 | if (outputEvents == null) | ||
167 | { | ||
168 | outputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS); | ||
169 | } | ||
170 | return outputEvents; | ||
171 | } | ||
172 | |||
173 | /** | ||
174 | * <!-- begin-user-doc --> | ||
175 | * <!-- end-user-doc --> | ||
176 | * @generated | ||
177 | */ | ||
178 | @Override | ||
179 | public EList<EventDefinition> getEventDefinitions() | ||
180 | { | ||
181 | if (eventDefinitions == null) | ||
182 | { | ||
183 | eventDefinitions = new EObjectContainmentEList<EventDefinition>(EventDefinition.class, this, CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS); | ||
184 | } | ||
185 | return eventDefinitions; | ||
186 | } | ||
187 | |||
188 | /** | ||
189 | * <!-- begin-user-doc --> | ||
190 | * <!-- end-user-doc --> | ||
191 | * @generated | ||
192 | */ | ||
193 | @Override | ||
194 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
195 | { | ||
196 | switch (featureID) | ||
197 | { | ||
198 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
199 | return ((InternalEList<?>)getInputEvents()).basicRemove(otherEnd, msgs); | ||
200 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
201 | return ((InternalEList<?>)getEventDefinitions()).basicRemove(otherEnd, msgs); | ||
202 | } | ||
203 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @generated | ||
210 | */ | ||
211 | @Override | ||
212 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
213 | { | ||
214 | switch (featureID) | ||
215 | { | ||
216 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
217 | return getName(); | ||
218 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
219 | return getInputEvents(); | ||
220 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
221 | return getOutputEvents(); | ||
222 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
223 | return getEventDefinitions(); | ||
224 | } | ||
225 | return super.eGet(featureID, resolve, coreType); | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | @SuppressWarnings("unchecked") | ||
234 | @Override | ||
235 | public void eSet(int featureID, Object newValue) | ||
236 | { | ||
237 | switch (featureID) | ||
238 | { | ||
239 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
240 | setName((String)newValue); | ||
241 | return; | ||
242 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
243 | getInputEvents().clear(); | ||
244 | getInputEvents().addAll((Collection<? extends InputEvent>)newValue); | ||
245 | return; | ||
246 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
247 | getOutputEvents().clear(); | ||
248 | getOutputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
249 | return; | ||
250 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
251 | getEventDefinitions().clear(); | ||
252 | getEventDefinitions().addAll((Collection<? extends EventDefinition>)newValue); | ||
253 | return; | ||
254 | } | ||
255 | super.eSet(featureID, newValue); | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | @Override | ||
264 | public void eUnset(int featureID) | ||
265 | { | ||
266 | switch (featureID) | ||
267 | { | ||
268 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
269 | setName(NAME_EDEFAULT); | ||
270 | return; | ||
271 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
272 | getInputEvents().clear(); | ||
273 | return; | ||
274 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
275 | getOutputEvents().clear(); | ||
276 | return; | ||
277 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
278 | getEventDefinitions().clear(); | ||
279 | return; | ||
280 | } | ||
281 | super.eUnset(featureID); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * <!-- begin-user-doc --> | ||
286 | * <!-- end-user-doc --> | ||
287 | * @generated | ||
288 | */ | ||
289 | @Override | ||
290 | public boolean eIsSet(int featureID) | ||
291 | { | ||
292 | switch (featureID) | ||
293 | { | ||
294 | case CftLanguagePackage.COMPONENT_DEFINITION__NAME: | ||
295 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
296 | case CftLanguagePackage.COMPONENT_DEFINITION__INPUT_EVENTS: | ||
297 | return inputEvents != null && !inputEvents.isEmpty(); | ||
298 | case CftLanguagePackage.COMPONENT_DEFINITION__OUTPUT_EVENTS: | ||
299 | return outputEvents != null && !outputEvents.isEmpty(); | ||
300 | case CftLanguagePackage.COMPONENT_DEFINITION__EVENT_DEFINITIONS: | ||
301 | return eventDefinitions != null && !eventDefinitions.isEmpty(); | ||
302 | } | ||
303 | return super.eIsSet(featureID); | ||
304 | } | ||
305 | |||
306 | /** | ||
307 | * <!-- begin-user-doc --> | ||
308 | * <!-- end-user-doc --> | ||
309 | * @generated | ||
310 | */ | ||
311 | @Override | ||
312 | public String toString() | ||
313 | { | ||
314 | if (eIsProxy()) return super.toString(); | ||
315 | |||
316 | StringBuilder result = new StringBuilder(super.toString()); | ||
317 | result.append(" (name: "); | ||
318 | result.append(name); | ||
319 | result.append(')'); | ||
320 | return result.toString(); | ||
321 | } | ||
322 | |||
323 | } //ComponentDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java index 5966e55c..d1c22199 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/ComponentInstanceImpl.java | |||
@@ -4,9 +4,10 @@ | |||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | 4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; |
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | 6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; |
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | 7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; |
9 | 8 | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
10 | |||
10 | import org.eclipse.emf.common.notify.Notification; | 11 | import org.eclipse.emf.common.notify.Notification; |
11 | 12 | ||
12 | import org.eclipse.emf.ecore.EClass; | 13 | import org.eclipse.emf.ecore.EClass; |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDeclarationImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDeclarationImpl.java deleted file mode 100644 index c9964c20..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDeclarationImpl.java +++ /dev/null | |||
@@ -1,180 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model object '<em><b>Event Declaration</b></em>'. | ||
19 | * <!-- end-user-doc --> | ||
20 | * <p> | ||
21 | * The following features are implemented: | ||
22 | * </p> | ||
23 | * <ul> | ||
24 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.EventDeclarationImpl#getName <em>Name</em>}</li> | ||
25 | * </ul> | ||
26 | * | ||
27 | * @generated | ||
28 | */ | ||
29 | public class EventDeclarationImpl extends MinimalEObjectImpl.Container implements EventDeclaration | ||
30 | { | ||
31 | /** | ||
32 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @see #getName() | ||
36 | * @generated | ||
37 | * @ordered | ||
38 | */ | ||
39 | protected static final String NAME_EDEFAULT = null; | ||
40 | |||
41 | /** | ||
42 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getName() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected String name = NAME_EDEFAULT; | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | protected EventDeclarationImpl() | ||
57 | { | ||
58 | super(); | ||
59 | } | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | @Override | ||
67 | protected EClass eStaticClass() | ||
68 | { | ||
69 | return CftLanguagePackage.Literals.EVENT_DECLARATION; | ||
70 | } | ||
71 | |||
72 | /** | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @generated | ||
76 | */ | ||
77 | @Override | ||
78 | public String getName() | ||
79 | { | ||
80 | return name; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | @Override | ||
89 | public void setName(String newName) | ||
90 | { | ||
91 | String oldName = name; | ||
92 | name = newName; | ||
93 | if (eNotificationRequired()) | ||
94 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.EVENT_DECLARATION__NAME, oldName, name)); | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
104 | { | ||
105 | switch (featureID) | ||
106 | { | ||
107 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
108 | return getName(); | ||
109 | } | ||
110 | return super.eGet(featureID, resolve, coreType); | ||
111 | } | ||
112 | |||
113 | /** | ||
114 | * <!-- begin-user-doc --> | ||
115 | * <!-- end-user-doc --> | ||
116 | * @generated | ||
117 | */ | ||
118 | @Override | ||
119 | public void eSet(int featureID, Object newValue) | ||
120 | { | ||
121 | switch (featureID) | ||
122 | { | ||
123 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
124 | setName((String)newValue); | ||
125 | return; | ||
126 | } | ||
127 | super.eSet(featureID, newValue); | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public void eUnset(int featureID) | ||
137 | { | ||
138 | switch (featureID) | ||
139 | { | ||
140 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
141 | setName(NAME_EDEFAULT); | ||
142 | return; | ||
143 | } | ||
144 | super.eUnset(featureID); | ||
145 | } | ||
146 | |||
147 | /** | ||
148 | * <!-- begin-user-doc --> | ||
149 | * <!-- end-user-doc --> | ||
150 | * @generated | ||
151 | */ | ||
152 | @Override | ||
153 | public boolean eIsSet(int featureID) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case CftLanguagePackage.EVENT_DECLARATION__NAME: | ||
158 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
159 | } | ||
160 | return super.eIsSet(featureID); | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public String toString() | ||
170 | { | ||
171 | if (eIsProxy()) return super.toString(); | ||
172 | |||
173 | StringBuilder result = new StringBuilder(super.toString()); | ||
174 | result.append(" (name: "); | ||
175 | result.append(name); | ||
176 | result.append(')'); | ||
177 | return result.toString(); | ||
178 | } | ||
179 | |||
180 | } //EventDeclarationImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDefinitionImpl.java deleted file mode 100644 index 0c03504b..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventDefinitionImpl.java +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Event Definition</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class EventDefinitionImpl extends EventDeclarationImpl implements EventDefinition | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected EventDefinitionImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return CftLanguagePackage.Literals.EVENT_DEFINITION; | ||
39 | } | ||
40 | |||
41 | } //EventDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java index f10ae8a2..2f4835a3 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/EventReferenceImpl.java | |||
@@ -4,10 +4,11 @@ | |||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | 4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; |
5 | 5 | ||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | 6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; |
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | 7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; |
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; | 8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Variable; |
10 | 9 | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.EventDeclaration; | ||
11 | |||
11 | import org.eclipse.emf.common.notify.Notification; | 12 | import org.eclipse.emf.common.notify.Notification; |
12 | 13 | ||
13 | import org.eclipse.emf.ecore.EClass; | 14 | import org.eclipse.emf.ecore.EClass; |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/GateDefinitionImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/GateDefinitionImpl.java deleted file mode 100644 index 76b12fc2..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/GateDefinitionImpl.java +++ /dev/null | |||
@@ -1,147 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.util.EList; | ||
13 | |||
14 | import org.eclipse.emf.ecore.EClass; | ||
15 | |||
16 | import org.eclipse.emf.ecore.util.EObjectResolvingEList; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Gate Definition</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.GateDefinitionImpl#getInputEvents <em>Input Events</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class GateDefinitionImpl extends EventDefinitionImpl implements GateDefinition | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getInputEvents() <em>Input Events</em>}' reference list. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getInputEvents() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected EList<EventDeclaration> inputEvents; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected GateDefinitionImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return CftLanguagePackage.Literals.GATE_DEFINITION; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | public EList<EventDeclaration> getInputEvents() | ||
71 | { | ||
72 | if (inputEvents == null) | ||
73 | { | ||
74 | inputEvents = new EObjectResolvingEList<EventDeclaration>(EventDeclaration.class, this, CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS); | ||
75 | } | ||
76 | return inputEvents; | ||
77 | } | ||
78 | |||
79 | /** | ||
80 | * <!-- begin-user-doc --> | ||
81 | * <!-- end-user-doc --> | ||
82 | * @generated | ||
83 | */ | ||
84 | @Override | ||
85 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
86 | { | ||
87 | switch (featureID) | ||
88 | { | ||
89 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
90 | return getInputEvents(); | ||
91 | } | ||
92 | return super.eGet(featureID, resolve, coreType); | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | @SuppressWarnings("unchecked") | ||
101 | @Override | ||
102 | public void eSet(int featureID, Object newValue) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
107 | getInputEvents().clear(); | ||
108 | getInputEvents().addAll((Collection<? extends EventDeclaration>)newValue); | ||
109 | return; | ||
110 | } | ||
111 | super.eSet(featureID, newValue); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void eUnset(int featureID) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
125 | getInputEvents().clear(); | ||
126 | return; | ||
127 | } | ||
128 | super.eUnset(featureID); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public boolean eIsSet(int featureID) | ||
138 | { | ||
139 | switch (featureID) | ||
140 | { | ||
141 | case CftLanguagePackage.GATE_DEFINITION__INPUT_EVENTS: | ||
142 | return inputEvents != null && !inputEvents.isEmpty(); | ||
143 | } | ||
144 | return super.eIsSet(featureID); | ||
145 | } | ||
146 | |||
147 | } //GateDefinitionImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/InputEventImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/InputEventImpl.java deleted file mode 100644 index edb03bdc..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/InputEventImpl.java +++ /dev/null | |||
@@ -1,179 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | |||
13 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model object '<em><b>Input Event</b></em>'. | ||
18 | * <!-- end-user-doc --> | ||
19 | * <p> | ||
20 | * The following features are implemented: | ||
21 | * </p> | ||
22 | * <ul> | ||
23 | * <li>{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl.InputEventImpl#isMultiple <em>Multiple</em>}</li> | ||
24 | * </ul> | ||
25 | * | ||
26 | * @generated | ||
27 | */ | ||
28 | public class InputEventImpl extends EventDeclarationImpl implements InputEvent | ||
29 | { | ||
30 | /** | ||
31 | * The default value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @see #isMultiple() | ||
35 | * @generated | ||
36 | * @ordered | ||
37 | */ | ||
38 | protected static final boolean MULTIPLE_EDEFAULT = false; | ||
39 | |||
40 | /** | ||
41 | * The cached value of the '{@link #isMultiple() <em>Multiple</em>}' attribute. | ||
42 | * <!-- begin-user-doc --> | ||
43 | * <!-- end-user-doc --> | ||
44 | * @see #isMultiple() | ||
45 | * @generated | ||
46 | * @ordered | ||
47 | */ | ||
48 | protected boolean multiple = MULTIPLE_EDEFAULT; | ||
49 | |||
50 | /** | ||
51 | * <!-- begin-user-doc --> | ||
52 | * <!-- end-user-doc --> | ||
53 | * @generated | ||
54 | */ | ||
55 | protected InputEventImpl() | ||
56 | { | ||
57 | super(); | ||
58 | } | ||
59 | |||
60 | /** | ||
61 | * <!-- begin-user-doc --> | ||
62 | * <!-- end-user-doc --> | ||
63 | * @generated | ||
64 | */ | ||
65 | @Override | ||
66 | protected EClass eStaticClass() | ||
67 | { | ||
68 | return CftLanguagePackage.Literals.INPUT_EVENT; | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | public boolean isMultiple() | ||
78 | { | ||
79 | return multiple; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public void setMultiple(boolean newMultiple) | ||
89 | { | ||
90 | boolean oldMultiple = multiple; | ||
91 | multiple = newMultiple; | ||
92 | if (eNotificationRequired()) | ||
93 | eNotify(new ENotificationImpl(this, Notification.SET, CftLanguagePackage.INPUT_EVENT__MULTIPLE, oldMultiple, multiple)); | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | @Override | ||
102 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
103 | { | ||
104 | switch (featureID) | ||
105 | { | ||
106 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
107 | return isMultiple(); | ||
108 | } | ||
109 | return super.eGet(featureID, resolve, coreType); | ||
110 | } | ||
111 | |||
112 | /** | ||
113 | * <!-- begin-user-doc --> | ||
114 | * <!-- end-user-doc --> | ||
115 | * @generated | ||
116 | */ | ||
117 | @Override | ||
118 | public void eSet(int featureID, Object newValue) | ||
119 | { | ||
120 | switch (featureID) | ||
121 | { | ||
122 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
123 | setMultiple((Boolean)newValue); | ||
124 | return; | ||
125 | } | ||
126 | super.eSet(featureID, newValue); | ||
127 | } | ||
128 | |||
129 | /** | ||
130 | * <!-- begin-user-doc --> | ||
131 | * <!-- end-user-doc --> | ||
132 | * @generated | ||
133 | */ | ||
134 | @Override | ||
135 | public void eUnset(int featureID) | ||
136 | { | ||
137 | switch (featureID) | ||
138 | { | ||
139 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
140 | setMultiple(MULTIPLE_EDEFAULT); | ||
141 | return; | ||
142 | } | ||
143 | super.eUnset(featureID); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @Override | ||
152 | public boolean eIsSet(int featureID) | ||
153 | { | ||
154 | switch (featureID) | ||
155 | { | ||
156 | case CftLanguagePackage.INPUT_EVENT__MULTIPLE: | ||
157 | return multiple != MULTIPLE_EDEFAULT; | ||
158 | } | ||
159 | return super.eIsSet(featureID); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @generated | ||
166 | */ | ||
167 | @Override | ||
168 | public String toString() | ||
169 | { | ||
170 | if (eIsProxy()) return super.toString(); | ||
171 | |||
172 | StringBuilder result = new StringBuilder(super.toString()); | ||
173 | result.append(" (multiple: "); | ||
174 | result.append(multiple); | ||
175 | result.append(')'); | ||
176 | return result.toString(); | ||
177 | } | ||
178 | |||
179 | } //InputEventImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/OrGateImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/OrGateImpl.java deleted file mode 100644 index eaaf1686..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/impl/OrGateImpl.java +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Or Gate</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class OrGateImpl extends GateDefinitionImpl implements OrGate | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected OrGateImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return CftLanguagePackage.Literals.OR_GATE; | ||
39 | } | ||
40 | |||
41 | } //OrGateImpl | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java index 035b1191..99fa656d 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageAdapterFactory.java | |||
@@ -86,46 +86,6 @@ public class CftLanguageAdapterFactory extends AdapterFactoryImpl | |||
86 | return createImportDeclarationAdapter(); | 86 | return createImportDeclarationAdapter(); |
87 | } | 87 | } |
88 | @Override | 88 | @Override |
89 | public Adapter caseComponentDefinition(ComponentDefinition object) | ||
90 | { | ||
91 | return createComponentDefinitionAdapter(); | ||
92 | } | ||
93 | @Override | ||
94 | public Adapter caseEventDeclaration(EventDeclaration object) | ||
95 | { | ||
96 | return createEventDeclarationAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseInputEvent(InputEvent object) | ||
100 | { | ||
101 | return createInputEventAdapter(); | ||
102 | } | ||
103 | @Override | ||
104 | public Adapter caseEventDefinition(EventDefinition object) | ||
105 | { | ||
106 | return createEventDefinitionAdapter(); | ||
107 | } | ||
108 | @Override | ||
109 | public Adapter caseBasicEventDefinition(BasicEventDefinition object) | ||
110 | { | ||
111 | return createBasicEventDefinitionAdapter(); | ||
112 | } | ||
113 | @Override | ||
114 | public Adapter caseGateDefinition(GateDefinition object) | ||
115 | { | ||
116 | return createGateDefinitionAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseAndGate(AndGate object) | ||
120 | { | ||
121 | return createAndGateAdapter(); | ||
122 | } | ||
123 | @Override | ||
124 | public Adapter caseOrGate(OrGate object) | ||
125 | { | ||
126 | return createOrGateAdapter(); | ||
127 | } | ||
128 | @Override | ||
129 | public Adapter caseTransformationDefinition(TransformationDefinition object) | 89 | public Adapter caseTransformationDefinition(TransformationDefinition object) |
130 | { | 90 | { |
131 | return createTransformationDefinitionAdapter(); | 91 | return createTransformationDefinitionAdapter(); |
@@ -218,126 +178,6 @@ public class CftLanguageAdapterFactory extends AdapterFactoryImpl | |||
218 | } | 178 | } |
219 | 179 | ||
220 | /** | 180 | /** |
221 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition <em>Component Definition</em>}'. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * This default implementation returns null so that we can easily ignore cases; | ||
224 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
225 | * <!-- end-user-doc --> | ||
226 | * @return the new adapter. | ||
227 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition | ||
228 | * @generated | ||
229 | */ | ||
230 | public Adapter createComponentDefinitionAdapter() | ||
231 | { | ||
232 | return null; | ||
233 | } | ||
234 | |||
235 | /** | ||
236 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration <em>Event Declaration</em>}'. | ||
237 | * <!-- begin-user-doc --> | ||
238 | * This default implementation returns null so that we can easily ignore cases; | ||
239 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
240 | * <!-- end-user-doc --> | ||
241 | * @return the new adapter. | ||
242 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDeclaration | ||
243 | * @generated | ||
244 | */ | ||
245 | public Adapter createEventDeclarationAdapter() | ||
246 | { | ||
247 | return null; | ||
248 | } | ||
249 | |||
250 | /** | ||
251 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent <em>Input Event</em>}'. | ||
252 | * <!-- begin-user-doc --> | ||
253 | * This default implementation returns null so that we can easily ignore cases; | ||
254 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
255 | * <!-- end-user-doc --> | ||
256 | * @return the new adapter. | ||
257 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent | ||
258 | * @generated | ||
259 | */ | ||
260 | public Adapter createInputEventAdapter() | ||
261 | { | ||
262 | return null; | ||
263 | } | ||
264 | |||
265 | /** | ||
266 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition <em>Event Definition</em>}'. | ||
267 | * <!-- begin-user-doc --> | ||
268 | * This default implementation returns null so that we can easily ignore cases; | ||
269 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
270 | * <!-- end-user-doc --> | ||
271 | * @return the new adapter. | ||
272 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventDefinition | ||
273 | * @generated | ||
274 | */ | ||
275 | public Adapter createEventDefinitionAdapter() | ||
276 | { | ||
277 | return null; | ||
278 | } | ||
279 | |||
280 | /** | ||
281 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition <em>Basic Event Definition</em>}'. | ||
282 | * <!-- begin-user-doc --> | ||
283 | * This default implementation returns null so that we can easily ignore cases; | ||
284 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
285 | * <!-- end-user-doc --> | ||
286 | * @return the new adapter. | ||
287 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition | ||
288 | * @generated | ||
289 | */ | ||
290 | public Adapter createBasicEventDefinitionAdapter() | ||
291 | { | ||
292 | return null; | ||
293 | } | ||
294 | |||
295 | /** | ||
296 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition <em>Gate Definition</em>}'. | ||
297 | * <!-- begin-user-doc --> | ||
298 | * This default implementation returns null so that we can easily ignore cases; | ||
299 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
300 | * <!-- end-user-doc --> | ||
301 | * @return the new adapter. | ||
302 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.GateDefinition | ||
303 | * @generated | ||
304 | */ | ||
305 | public Adapter createGateDefinitionAdapter() | ||
306 | { | ||
307 | return null; | ||
308 | } | ||
309 | |||
310 | /** | ||
311 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate <em>And Gate</em>}'. | ||
312 | * <!-- begin-user-doc --> | ||
313 | * This default implementation returns null so that we can easily ignore cases; | ||
314 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
315 | * <!-- end-user-doc --> | ||
316 | * @return the new adapter. | ||
317 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate | ||
318 | * @generated | ||
319 | */ | ||
320 | public Adapter createAndGateAdapter() | ||
321 | { | ||
322 | return null; | ||
323 | } | ||
324 | |||
325 | /** | ||
326 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate <em>Or Gate</em>}'. | ||
327 | * <!-- begin-user-doc --> | ||
328 | * This default implementation returns null so that we can easily ignore cases; | ||
329 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
330 | * <!-- end-user-doc --> | ||
331 | * @return the new adapter. | ||
332 | * @see hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate | ||
333 | * @generated | ||
334 | */ | ||
335 | public Adapter createOrGateAdapter() | ||
336 | { | ||
337 | return null; | ||
338 | } | ||
339 | |||
340 | /** | ||
341 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. | 181 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition <em>Transformation Definition</em>}'. |
342 | * <!-- begin-user-doc --> | 182 | * <!-- begin-user-doc --> |
343 | * This default implementation returns null so that we can easily ignore cases; | 183 | * This default implementation returns null so that we can easily ignore cases; |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java index 29266601..b3de106b 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/cftLanguage/util/CftLanguageSwitch.java | |||
@@ -87,74 +87,6 @@ public class CftLanguageSwitch<T> extends Switch<T> | |||
87 | if (result == null) result = defaultCase(theEObject); | 87 | if (result == null) result = defaultCase(theEObject); |
88 | return result; | 88 | return result; |
89 | } | 89 | } |
90 | case CftLanguagePackage.COMPONENT_DEFINITION: | ||
91 | { | ||
92 | ComponentDefinition componentDefinition = (ComponentDefinition)theEObject; | ||
93 | T result = caseComponentDefinition(componentDefinition); | ||
94 | if (result == null) result = defaultCase(theEObject); | ||
95 | return result; | ||
96 | } | ||
97 | case CftLanguagePackage.EVENT_DECLARATION: | ||
98 | { | ||
99 | EventDeclaration eventDeclaration = (EventDeclaration)theEObject; | ||
100 | T result = caseEventDeclaration(eventDeclaration); | ||
101 | if (result == null) result = defaultCase(theEObject); | ||
102 | return result; | ||
103 | } | ||
104 | case CftLanguagePackage.INPUT_EVENT: | ||
105 | { | ||
106 | InputEvent inputEvent = (InputEvent)theEObject; | ||
107 | T result = caseInputEvent(inputEvent); | ||
108 | if (result == null) result = caseEventDeclaration(inputEvent); | ||
109 | if (result == null) result = defaultCase(theEObject); | ||
110 | return result; | ||
111 | } | ||
112 | case CftLanguagePackage.EVENT_DEFINITION: | ||
113 | { | ||
114 | EventDefinition eventDefinition = (EventDefinition)theEObject; | ||
115 | T result = caseEventDefinition(eventDefinition); | ||
116 | if (result == null) result = caseEventDeclaration(eventDefinition); | ||
117 | if (result == null) result = defaultCase(theEObject); | ||
118 | return result; | ||
119 | } | ||
120 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: | ||
121 | { | ||
122 | BasicEventDefinition basicEventDefinition = (BasicEventDefinition)theEObject; | ||
123 | T result = caseBasicEventDefinition(basicEventDefinition); | ||
124 | if (result == null) result = caseEventDefinition(basicEventDefinition); | ||
125 | if (result == null) result = caseEventDeclaration(basicEventDefinition); | ||
126 | if (result == null) result = defaultCase(theEObject); | ||
127 | return result; | ||
128 | } | ||
129 | case CftLanguagePackage.GATE_DEFINITION: | ||
130 | { | ||
131 | GateDefinition gateDefinition = (GateDefinition)theEObject; | ||
132 | T result = caseGateDefinition(gateDefinition); | ||
133 | if (result == null) result = caseEventDefinition(gateDefinition); | ||
134 | if (result == null) result = caseEventDeclaration(gateDefinition); | ||
135 | if (result == null) result = defaultCase(theEObject); | ||
136 | return result; | ||
137 | } | ||
138 | case CftLanguagePackage.AND_GATE: | ||
139 | { | ||
140 | AndGate andGate = (AndGate)theEObject; | ||
141 | T result = caseAndGate(andGate); | ||
142 | if (result == null) result = caseGateDefinition(andGate); | ||
143 | if (result == null) result = caseEventDefinition(andGate); | ||
144 | if (result == null) result = caseEventDeclaration(andGate); | ||
145 | if (result == null) result = defaultCase(theEObject); | ||
146 | return result; | ||
147 | } | ||
148 | case CftLanguagePackage.OR_GATE: | ||
149 | { | ||
150 | OrGate orGate = (OrGate)theEObject; | ||
151 | T result = caseOrGate(orGate); | ||
152 | if (result == null) result = caseGateDefinition(orGate); | ||
153 | if (result == null) result = caseEventDefinition(orGate); | ||
154 | if (result == null) result = caseEventDeclaration(orGate); | ||
155 | if (result == null) result = defaultCase(theEObject); | ||
156 | return result; | ||
157 | } | ||
158 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | 90 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: |
159 | { | 91 | { |
160 | TransformationDefinition transformationDefinition = (TransformationDefinition)theEObject; | 92 | TransformationDefinition transformationDefinition = (TransformationDefinition)theEObject; |
@@ -250,134 +182,6 @@ public class CftLanguageSwitch<T> extends Switch<T> | |||
250 | } | 182 | } |
251 | 183 | ||
252 | /** | 184 | /** |
253 | * Returns the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
254 | * <!-- begin-user-doc --> | ||
255 | * This implementation returns null; | ||
256 | * returning a non-null result will terminate the switch. | ||
257 | * <!-- end-user-doc --> | ||
258 | * @param object the target of the switch. | ||
259 | * @return the result of interpreting the object as an instance of '<em>Component Definition</em>'. | ||
260 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
261 | * @generated | ||
262 | */ | ||
263 | public T caseComponentDefinition(ComponentDefinition object) | ||
264 | { | ||
265 | return null; | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * Returns the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
270 | * <!-- begin-user-doc --> | ||
271 | * This implementation returns null; | ||
272 | * returning a non-null result will terminate the switch. | ||
273 | * <!-- end-user-doc --> | ||
274 | * @param object the target of the switch. | ||
275 | * @return the result of interpreting the object as an instance of '<em>Event Declaration</em>'. | ||
276 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
277 | * @generated | ||
278 | */ | ||
279 | public T caseEventDeclaration(EventDeclaration object) | ||
280 | { | ||
281 | return null; | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * Returns the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
286 | * <!-- begin-user-doc --> | ||
287 | * This implementation returns null; | ||
288 | * returning a non-null result will terminate the switch. | ||
289 | * <!-- end-user-doc --> | ||
290 | * @param object the target of the switch. | ||
291 | * @return the result of interpreting the object as an instance of '<em>Input Event</em>'. | ||
292 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
293 | * @generated | ||
294 | */ | ||
295 | public T caseInputEvent(InputEvent object) | ||
296 | { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Returns the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This implementation returns null; | ||
304 | * returning a non-null result will terminate the switch. | ||
305 | * <!-- end-user-doc --> | ||
306 | * @param object the target of the switch. | ||
307 | * @return the result of interpreting the object as an instance of '<em>Event Definition</em>'. | ||
308 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
309 | * @generated | ||
310 | */ | ||
311 | public T caseEventDefinition(EventDefinition object) | ||
312 | { | ||
313 | return null; | ||
314 | } | ||
315 | |||
316 | /** | ||
317 | * Returns the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
318 | * <!-- begin-user-doc --> | ||
319 | * This implementation returns null; | ||
320 | * returning a non-null result will terminate the switch. | ||
321 | * <!-- end-user-doc --> | ||
322 | * @param object the target of the switch. | ||
323 | * @return the result of interpreting the object as an instance of '<em>Basic Event Definition</em>'. | ||
324 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
325 | * @generated | ||
326 | */ | ||
327 | public T caseBasicEventDefinition(BasicEventDefinition object) | ||
328 | { | ||
329 | return null; | ||
330 | } | ||
331 | |||
332 | /** | ||
333 | * Returns the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
334 | * <!-- begin-user-doc --> | ||
335 | * This implementation returns null; | ||
336 | * returning a non-null result will terminate the switch. | ||
337 | * <!-- end-user-doc --> | ||
338 | * @param object the target of the switch. | ||
339 | * @return the result of interpreting the object as an instance of '<em>Gate Definition</em>'. | ||
340 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
341 | * @generated | ||
342 | */ | ||
343 | public T caseGateDefinition(GateDefinition object) | ||
344 | { | ||
345 | return null; | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * Returns the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
350 | * <!-- begin-user-doc --> | ||
351 | * This implementation returns null; | ||
352 | * returning a non-null result will terminate the switch. | ||
353 | * <!-- end-user-doc --> | ||
354 | * @param object the target of the switch. | ||
355 | * @return the result of interpreting the object as an instance of '<em>And Gate</em>'. | ||
356 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
357 | * @generated | ||
358 | */ | ||
359 | public T caseAndGate(AndGate object) | ||
360 | { | ||
361 | return null; | ||
362 | } | ||
363 | |||
364 | /** | ||
365 | * Returns the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
366 | * <!-- begin-user-doc --> | ||
367 | * This implementation returns null; | ||
368 | * returning a non-null result will terminate the switch. | ||
369 | * <!-- end-user-doc --> | ||
370 | * @param object the target of the switch. | ||
371 | * @return the result of interpreting the object as an instance of '<em>Or Gate</em>'. | ||
372 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
373 | * @generated | ||
374 | */ | ||
375 | public T caseOrGate(OrGate object) | ||
376 | { | ||
377 | return null; | ||
378 | } | ||
379 | |||
380 | /** | ||
381 | * Returns the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. | 185 | * Returns the result of interpreting the object as an instance of '<em>Transformation Definition</em>'. |
382 | * <!-- begin-user-doc --> | 186 | * <!-- begin-user-doc --> |
383 | * This implementation returns null; | 187 | * This implementation returns null; |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g index ff509b0a..2d1b9490 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g | |||
@@ -238,19 +238,20 @@ ruleComponentDefinition returns [EObject current=null] | |||
238 | } | 238 | } |
239 | ( | 239 | ( |
240 | ( | 240 | ( |
241 | lv_name_1_0=RULE_ID | ||
242 | { | 241 | { |
243 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 242 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
244 | } | 243 | } |
244 | lv_name_1_0=ruleValidId | ||
245 | { | 245 | { |
246 | if ($current==null) { | 246 | if ($current==null) { |
247 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 247 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); |
248 | } | 248 | } |
249 | setWithLastConsumed( | 249 | set( |
250 | $current, | 250 | $current, |
251 | "name", | 251 | "name", |
252 | lv_name_1_0, | 252 | lv_name_1_0, |
253 | "org.eclipse.xtext.common.Terminals.ID"); | 253 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
254 | afterParserOrEnumRuleCall(); | ||
254 | } | 255 | } |
255 | ) | 256 | ) |
256 | ) | 257 | ) |
@@ -319,9 +320,12 @@ ruleComponentDefinition returns [EObject current=null] | |||
319 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 320 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); |
320 | } | 321 | } |
321 | } | 322 | } |
322 | otherlv_8=RULE_ID | ||
323 | { | 323 | { |
324 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | 324 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); |
325 | } | ||
326 | ruleValidId | ||
327 | { | ||
328 | afterParserOrEnumRuleCall(); | ||
325 | } | 329 | } |
326 | ) | 330 | ) |
327 | )* | 331 | )* |
@@ -392,19 +396,20 @@ ruleInputEvent returns [EObject current=null] | |||
392 | ( | 396 | ( |
393 | ( | 397 | ( |
394 | ( | 398 | ( |
395 | lv_name_0_0=RULE_ID | ||
396 | { | 399 | { |
397 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | 400 | newCompositeNode(grammarAccess.getInputEventAccess().getNameValidIdParserRuleCall_0_0()); |
398 | } | 401 | } |
402 | lv_name_0_0=ruleValidId | ||
399 | { | 403 | { |
400 | if ($current==null) { | 404 | if ($current==null) { |
401 | $current = createModelElement(grammarAccess.getInputEventRule()); | 405 | $current = createModelElementForParent(grammarAccess.getInputEventRule()); |
402 | } | 406 | } |
403 | setWithLastConsumed( | 407 | set( |
404 | $current, | 408 | $current, |
405 | "name", | 409 | "name", |
406 | lv_name_0_0, | 410 | lv_name_0_0, |
407 | "org.eclipse.xtext.common.Terminals.ID"); | 411 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
412 | afterParserOrEnumRuleCall(); | ||
408 | } | 413 | } |
409 | ) | 414 | ) |
410 | ) | 415 | ) |
@@ -479,45 +484,167 @@ ruleBasicEventDefinition returns [EObject current=null] | |||
479 | ( | 484 | ( |
480 | ( | 485 | ( |
481 | ( | 486 | ( |
482 | lv_name_0_0=RULE_ID | ||
483 | { | 487 | { |
484 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | 488 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
485 | } | 489 | } |
490 | lv_name_0_0=ruleValidId | ||
486 | { | 491 | { |
487 | if ($current==null) { | 492 | if ($current==null) { |
488 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 493 | $current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); |
489 | } | 494 | } |
490 | setWithLastConsumed( | 495 | set( |
491 | $current, | 496 | $current, |
492 | "name", | 497 | "name", |
493 | lv_name_0_0, | 498 | lv_name_0_0, |
494 | "org.eclipse.xtext.common.Terminals.ID"); | 499 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
500 | afterParserOrEnumRuleCall(); | ||
501 | } | ||
502 | ) | ||
503 | ) | ||
504 | ( | ||
505 | ( | ||
506 | { | ||
507 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0()); | ||
508 | } | ||
509 | lv_distribution_1_0=ruleDistribution | ||
510 | { | ||
511 | if ($current==null) { | ||
512 | $current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
513 | } | ||
514 | set( | ||
515 | $current, | ||
516 | "distribution", | ||
517 | lv_distribution_1_0, | ||
518 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
519 | afterParserOrEnumRuleCall(); | ||
495 | } | 520 | } |
496 | ) | 521 | ) |
497 | ) | 522 | ) |
498 | otherlv_1='lambda' | 523 | ) |
524 | ; | ||
525 | |||
526 | // Entry rule entryRuleDistribution | ||
527 | entryRuleDistribution returns [EObject current=null]: | ||
528 | { newCompositeNode(grammarAccess.getDistributionRule()); } | ||
529 | iv_ruleDistribution=ruleDistribution | ||
530 | { $current=$iv_ruleDistribution.current; } | ||
531 | EOF; | ||
532 | |||
533 | // Rule Distribution | ||
534 | ruleDistribution returns [EObject current=null] | ||
535 | @init { | ||
536 | enterRule(); | ||
537 | } | ||
538 | @after { | ||
539 | leaveRule(); | ||
540 | }: | ||
541 | ( | ||
542 | { | ||
543 | newCompositeNode(grammarAccess.getDistributionAccess().getConstantDistributionParserRuleCall_0()); | ||
544 | } | ||
545 | this_ConstantDistribution_0=ruleConstantDistribution | ||
546 | { | ||
547 | $current = $this_ConstantDistribution_0.current; | ||
548 | afterParserOrEnumRuleCall(); | ||
549 | } | ||
550 | | | ||
551 | { | ||
552 | newCompositeNode(grammarAccess.getDistributionAccess().getExponentialDistributionParserRuleCall_1()); | ||
553 | } | ||
554 | this_ExponentialDistribution_1=ruleExponentialDistribution | ||
555 | { | ||
556 | $current = $this_ExponentialDistribution_1.current; | ||
557 | afterParserOrEnumRuleCall(); | ||
558 | } | ||
559 | ) | ||
560 | ; | ||
561 | |||
562 | // Entry rule entryRuleConstantDistribution | ||
563 | entryRuleConstantDistribution returns [EObject current=null]: | ||
564 | { newCompositeNode(grammarAccess.getConstantDistributionRule()); } | ||
565 | iv_ruleConstantDistribution=ruleConstantDistribution | ||
566 | { $current=$iv_ruleConstantDistribution.current; } | ||
567 | EOF; | ||
568 | |||
569 | // Rule ConstantDistribution | ||
570 | ruleConstantDistribution returns [EObject current=null] | ||
571 | @init { | ||
572 | enterRule(); | ||
573 | } | ||
574 | @after { | ||
575 | leaveRule(); | ||
576 | }: | ||
577 | ( | ||
578 | otherlv_0='p' | ||
499 | { | 579 | { |
500 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | 580 | newLeafNode(otherlv_0, grammarAccess.getConstantDistributionAccess().getPKeyword_0()); |
501 | } | 581 | } |
502 | otherlv_2='=' | 582 | otherlv_1='=' |
503 | { | 583 | { |
504 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | 584 | newLeafNode(otherlv_1, grammarAccess.getConstantDistributionAccess().getEqualsSignKeyword_1()); |
505 | } | 585 | } |
506 | ( | 586 | ( |
507 | ( | 587 | ( |
508 | lv_rate_3_0=RULE_DOULBE | ||
509 | { | 588 | { |
510 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | 589 | newCompositeNode(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0()); |
511 | } | 590 | } |
591 | lv_p_2_0=ruleDouble | ||
512 | { | 592 | { |
513 | if ($current==null) { | 593 | if ($current==null) { |
514 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 594 | $current = createModelElementForParent(grammarAccess.getConstantDistributionRule()); |
515 | } | 595 | } |
516 | setWithLastConsumed( | 596 | set( |
597 | $current, | ||
598 | "p", | ||
599 | lv_p_2_0, | ||
600 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
601 | afterParserOrEnumRuleCall(); | ||
602 | } | ||
603 | ) | ||
604 | ) | ||
605 | ) | ||
606 | ; | ||
607 | |||
608 | // Entry rule entryRuleExponentialDistribution | ||
609 | entryRuleExponentialDistribution returns [EObject current=null]: | ||
610 | { newCompositeNode(grammarAccess.getExponentialDistributionRule()); } | ||
611 | iv_ruleExponentialDistribution=ruleExponentialDistribution | ||
612 | { $current=$iv_ruleExponentialDistribution.current; } | ||
613 | EOF; | ||
614 | |||
615 | // Rule ExponentialDistribution | ||
616 | ruleExponentialDistribution returns [EObject current=null] | ||
617 | @init { | ||
618 | enterRule(); | ||
619 | } | ||
620 | @after { | ||
621 | leaveRule(); | ||
622 | }: | ||
623 | ( | ||
624 | otherlv_0='lambda' | ||
625 | { | ||
626 | newLeafNode(otherlv_0, grammarAccess.getExponentialDistributionAccess().getLambdaKeyword_0()); | ||
627 | } | ||
628 | otherlv_1='=' | ||
629 | { | ||
630 | newLeafNode(otherlv_1, grammarAccess.getExponentialDistributionAccess().getEqualsSignKeyword_1()); | ||
631 | } | ||
632 | ( | ||
633 | ( | ||
634 | { | ||
635 | newCompositeNode(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0()); | ||
636 | } | ||
637 | lv_lambda_2_0=ruleDouble | ||
638 | { | ||
639 | if ($current==null) { | ||
640 | $current = createModelElementForParent(grammarAccess.getExponentialDistributionRule()); | ||
641 | } | ||
642 | set( | ||
517 | $current, | 643 | $current, |
518 | "rate", | 644 | "lambda", |
519 | lv_rate_3_0, | 645 | lv_lambda_2_0, |
520 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | 646 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); |
647 | afterParserOrEnumRuleCall(); | ||
521 | } | 648 | } |
522 | ) | 649 | ) |
523 | ) | 650 | ) |
@@ -541,34 +668,43 @@ ruleGateDefinition returns [EObject current=null] | |||
541 | }: | 668 | }: |
542 | ( | 669 | ( |
543 | { | 670 | { |
544 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | 671 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateDefinitionParserRuleCall_0()); |
672 | } | ||
673 | this_AndGateDefinition_0=ruleAndGateDefinition | ||
674 | { | ||
675 | $current = $this_AndGateDefinition_0.current; | ||
676 | afterParserOrEnumRuleCall(); | ||
677 | } | ||
678 | | | ||
679 | { | ||
680 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateDefinitionParserRuleCall_1()); | ||
545 | } | 681 | } |
546 | this_AndGate_0=ruleAndGate | 682 | this_OrGateDefinition_1=ruleOrGateDefinition |
547 | { | 683 | { |
548 | $current = $this_AndGate_0.current; | 684 | $current = $this_OrGateDefinition_1.current; |
549 | afterParserOrEnumRuleCall(); | 685 | afterParserOrEnumRuleCall(); |
550 | } | 686 | } |
551 | | | 687 | | |
552 | { | 688 | { |
553 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | 689 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getKOfMGateDefinitionParserRuleCall_2()); |
554 | } | 690 | } |
555 | this_OrGate_1=ruleOrGate | 691 | this_KOfMGateDefinition_2=ruleKOfMGateDefinition |
556 | { | 692 | { |
557 | $current = $this_OrGate_1.current; | 693 | $current = $this_KOfMGateDefinition_2.current; |
558 | afterParserOrEnumRuleCall(); | 694 | afterParserOrEnumRuleCall(); |
559 | } | 695 | } |
560 | ) | 696 | ) |
561 | ; | 697 | ; |
562 | 698 | ||
563 | // Entry rule entryRuleAndGate | 699 | // Entry rule entryRuleAndGateDefinition |
564 | entryRuleAndGate returns [EObject current=null]: | 700 | entryRuleAndGateDefinition returns [EObject current=null]: |
565 | { newCompositeNode(grammarAccess.getAndGateRule()); } | 701 | { newCompositeNode(grammarAccess.getAndGateDefinitionRule()); } |
566 | iv_ruleAndGate=ruleAndGate | 702 | iv_ruleAndGateDefinition=ruleAndGateDefinition |
567 | { $current=$iv_ruleAndGate.current; } | 703 | { $current=$iv_ruleAndGateDefinition.current; } |
568 | EOF; | 704 | EOF; |
569 | 705 | ||
570 | // Rule AndGate | 706 | // Rule AndGateDefinition |
571 | ruleAndGate returns [EObject current=null] | 707 | ruleAndGateDefinition returns [EObject current=null] |
572 | @init { | 708 | @init { |
573 | enterRule(); | 709 | enterRule(); |
574 | } | 710 | } |
@@ -578,51 +714,55 @@ ruleAndGate returns [EObject current=null] | |||
578 | ( | 714 | ( |
579 | ( | 715 | ( |
580 | ( | 716 | ( |
581 | lv_name_0_0=RULE_ID | ||
582 | { | 717 | { |
583 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | 718 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
584 | } | 719 | } |
720 | lv_name_0_0=ruleValidId | ||
585 | { | 721 | { |
586 | if ($current==null) { | 722 | if ($current==null) { |
587 | $current = createModelElement(grammarAccess.getAndGateRule()); | 723 | $current = createModelElementForParent(grammarAccess.getAndGateDefinitionRule()); |
588 | } | 724 | } |
589 | setWithLastConsumed( | 725 | set( |
590 | $current, | 726 | $current, |
591 | "name", | 727 | "name", |
592 | lv_name_0_0, | 728 | lv_name_0_0, |
593 | "org.eclipse.xtext.common.Terminals.ID"); | 729 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
730 | afterParserOrEnumRuleCall(); | ||
594 | } | 731 | } |
595 | ) | 732 | ) |
596 | ) | 733 | ) |
597 | otherlv_1='and' | 734 | otherlv_1='and' |
598 | { | 735 | { |
599 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | 736 | newLeafNode(otherlv_1, grammarAccess.getAndGateDefinitionAccess().getAndKeyword_1()); |
600 | } | 737 | } |
601 | ( | 738 | ( |
602 | ( | 739 | ( |
603 | { | 740 | { |
604 | if ($current==null) { | 741 | if ($current==null) { |
605 | $current = createModelElement(grammarAccess.getAndGateRule()); | 742 | $current = createModelElement(grammarAccess.getAndGateDefinitionRule()); |
606 | } | 743 | } |
607 | } | 744 | } |
608 | otherlv_2=RULE_ID | ||
609 | { | 745 | { |
610 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 746 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
747 | } | ||
748 | ruleValidId | ||
749 | { | ||
750 | afterParserOrEnumRuleCall(); | ||
611 | } | 751 | } |
612 | ) | 752 | ) |
613 | )* | 753 | )* |
614 | ) | 754 | ) |
615 | ; | 755 | ; |
616 | 756 | ||
617 | // Entry rule entryRuleOrGate | 757 | // Entry rule entryRuleOrGateDefinition |
618 | entryRuleOrGate returns [EObject current=null]: | 758 | entryRuleOrGateDefinition returns [EObject current=null]: |
619 | { newCompositeNode(grammarAccess.getOrGateRule()); } | 759 | { newCompositeNode(grammarAccess.getOrGateDefinitionRule()); } |
620 | iv_ruleOrGate=ruleOrGate | 760 | iv_ruleOrGateDefinition=ruleOrGateDefinition |
621 | { $current=$iv_ruleOrGate.current; } | 761 | { $current=$iv_ruleOrGateDefinition.current; } |
622 | EOF; | 762 | EOF; |
623 | 763 | ||
624 | // Rule OrGate | 764 | // Rule OrGateDefinition |
625 | ruleOrGate returns [EObject current=null] | 765 | ruleOrGateDefinition returns [EObject current=null] |
626 | @init { | 766 | @init { |
627 | enterRule(); | 767 | enterRule(); |
628 | } | 768 | } |
@@ -632,36 +772,157 @@ ruleOrGate returns [EObject current=null] | |||
632 | ( | 772 | ( |
633 | ( | 773 | ( |
634 | ( | 774 | ( |
635 | lv_name_0_0=RULE_ID | ||
636 | { | 775 | { |
637 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | 776 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
638 | } | 777 | } |
778 | lv_name_0_0=ruleValidId | ||
639 | { | 779 | { |
640 | if ($current==null) { | 780 | if ($current==null) { |
641 | $current = createModelElement(grammarAccess.getOrGateRule()); | 781 | $current = createModelElementForParent(grammarAccess.getOrGateDefinitionRule()); |
642 | } | 782 | } |
643 | setWithLastConsumed( | 783 | set( |
644 | $current, | 784 | $current, |
645 | "name", | 785 | "name", |
646 | lv_name_0_0, | 786 | lv_name_0_0, |
647 | "org.eclipse.xtext.common.Terminals.ID"); | 787 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
788 | afterParserOrEnumRuleCall(); | ||
648 | } | 789 | } |
649 | ) | 790 | ) |
650 | ) | 791 | ) |
651 | otherlv_1='or' | 792 | otherlv_1='or' |
652 | { | 793 | { |
653 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | 794 | newLeafNode(otherlv_1, grammarAccess.getOrGateDefinitionAccess().getOrKeyword_1()); |
654 | } | 795 | } |
655 | ( | 796 | ( |
656 | ( | 797 | ( |
657 | { | 798 | { |
658 | if ($current==null) { | 799 | if ($current==null) { |
659 | $current = createModelElement(grammarAccess.getOrGateRule()); | 800 | $current = createModelElement(grammarAccess.getOrGateDefinitionRule()); |
660 | } | 801 | } |
661 | } | 802 | } |
662 | otherlv_2=RULE_ID | ||
663 | { | 803 | { |
664 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 804 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
805 | } | ||
806 | ruleValidId | ||
807 | { | ||
808 | afterParserOrEnumRuleCall(); | ||
809 | } | ||
810 | ) | ||
811 | )* | ||
812 | ) | ||
813 | ; | ||
814 | |||
815 | // Entry rule entryRuleKOfMGateDefinition | ||
816 | entryRuleKOfMGateDefinition returns [EObject current=null]: | ||
817 | { newCompositeNode(grammarAccess.getKOfMGateDefinitionRule()); } | ||
818 | iv_ruleKOfMGateDefinition=ruleKOfMGateDefinition | ||
819 | { $current=$iv_ruleKOfMGateDefinition.current; } | ||
820 | EOF; | ||
821 | |||
822 | // Rule KOfMGateDefinition | ||
823 | ruleKOfMGateDefinition returns [EObject current=null] | ||
824 | @init { | ||
825 | enterRule(); | ||
826 | } | ||
827 | @after { | ||
828 | leaveRule(); | ||
829 | }: | ||
830 | ( | ||
831 | ( | ||
832 | ( | ||
833 | { | ||
834 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
835 | } | ||
836 | lv_name_0_0=ruleValidId | ||
837 | { | ||
838 | if ($current==null) { | ||
839 | $current = createModelElementForParent(grammarAccess.getKOfMGateDefinitionRule()); | ||
840 | } | ||
841 | set( | ||
842 | $current, | ||
843 | "name", | ||
844 | lv_name_0_0, | ||
845 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
846 | afterParserOrEnumRuleCall(); | ||
847 | } | ||
848 | ) | ||
849 | ) | ||
850 | ( | ||
851 | ( | ||
852 | lv_k_1_0=RULE_INT | ||
853 | { | ||
854 | newLeafNode(lv_k_1_0, grammarAccess.getKOfMGateDefinitionAccess().getKINTTerminalRuleCall_1_0()); | ||
855 | } | ||
856 | { | ||
857 | if ($current==null) { | ||
858 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
859 | } | ||
860 | setWithLastConsumed( | ||
861 | $current, | ||
862 | "k", | ||
863 | lv_k_1_0, | ||
864 | "org.eclipse.xtext.common.Terminals.INT"); | ||
865 | } | ||
866 | ) | ||
867 | ) | ||
868 | ( | ||
869 | ( | ||
870 | otherlv_2='of' | ||
871 | { | ||
872 | newLeafNode(otherlv_2, grammarAccess.getKOfMGateDefinitionAccess().getOfKeyword_2_0_0()); | ||
873 | } | ||
874 | ( | ||
875 | ( | ||
876 | lv_m_3_0=RULE_INT | ||
877 | { | ||
878 | newLeafNode(lv_m_3_0, grammarAccess.getKOfMGateDefinitionAccess().getMINTTerminalRuleCall_2_0_1_0()); | ||
879 | } | ||
880 | { | ||
881 | if ($current==null) { | ||
882 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
883 | } | ||
884 | setWithLastConsumed( | ||
885 | $current, | ||
886 | "m", | ||
887 | lv_m_3_0, | ||
888 | "org.eclipse.xtext.common.Terminals.INT"); | ||
889 | } | ||
890 | ) | ||
891 | ) | ||
892 | ) | ||
893 | | | ||
894 | ( | ||
895 | ( | ||
896 | lv_m_4_0=RULE_OF_INT | ||
897 | { | ||
898 | newLeafNode(lv_m_4_0, grammarAccess.getKOfMGateDefinitionAccess().getMOF_INTTerminalRuleCall_2_1_0()); | ||
899 | } | ||
900 | { | ||
901 | if ($current==null) { | ||
902 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
903 | } | ||
904 | setWithLastConsumed( | ||
905 | $current, | ||
906 | "m", | ||
907 | lv_m_4_0, | ||
908 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
909 | } | ||
910 | ) | ||
911 | ) | ||
912 | ) | ||
913 | ( | ||
914 | ( | ||
915 | { | ||
916 | if ($current==null) { | ||
917 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
918 | } | ||
919 | } | ||
920 | { | ||
921 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_3_0()); | ||
922 | } | ||
923 | ruleValidId | ||
924 | { | ||
925 | afterParserOrEnumRuleCall(); | ||
665 | } | 926 | } |
666 | ) | 927 | ) |
667 | )* | 928 | )* |
@@ -690,19 +951,20 @@ ruleTransformationDefinition returns [EObject current=null] | |||
690 | } | 951 | } |
691 | ( | 952 | ( |
692 | ( | 953 | ( |
693 | lv_name_1_0=RULE_ID | ||
694 | { | 954 | { |
695 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 955 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
696 | } | 956 | } |
957 | lv_name_1_0=ruleValidId | ||
697 | { | 958 | { |
698 | if ($current==null) { | 959 | if ($current==null) { |
699 | $current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | 960 | $current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); |
700 | } | 961 | } |
701 | setWithLastConsumed( | 962 | set( |
702 | $current, | 963 | $current, |
703 | "name", | 964 | "name", |
704 | lv_name_1_0, | 965 | lv_name_1_0, |
705 | "org.eclipse.xtext.common.Terminals.ID"); | 966 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
967 | afterParserOrEnumRuleCall(); | ||
706 | } | 968 | } |
707 | ) | 969 | ) |
708 | ) | 970 | ) |
@@ -934,19 +1196,20 @@ ruleMappingParameter returns [EObject current=null] | |||
934 | }: | 1196 | }: |
935 | ( | 1197 | ( |
936 | ( | 1198 | ( |
937 | lv_name_0_0=RULE_ID | ||
938 | { | 1199 | { |
939 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | 1200 | newCompositeNode(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0()); |
940 | } | 1201 | } |
1202 | lv_name_0_0=ruleValidId | ||
941 | { | 1203 | { |
942 | if ($current==null) { | 1204 | if ($current==null) { |
943 | $current = createModelElement(grammarAccess.getMappingParameterRule()); | 1205 | $current = createModelElementForParent(grammarAccess.getMappingParameterRule()); |
944 | } | 1206 | } |
945 | setWithLastConsumed( | 1207 | set( |
946 | $current, | 1208 | $current, |
947 | "name", | 1209 | "name", |
948 | lv_name_0_0, | 1210 | lv_name_0_0, |
949 | "org.eclipse.xtext.common.Terminals.ID"); | 1211 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1212 | afterParserOrEnumRuleCall(); | ||
950 | } | 1213 | } |
951 | ) | 1214 | ) |
952 | ) | 1215 | ) |
@@ -979,9 +1242,12 @@ ruleLookupDefinition returns [EObject current=null] | |||
979 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 1242 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
980 | } | 1243 | } |
981 | } | 1244 | } |
982 | otherlv_1=RULE_ID | ||
983 | { | 1245 | { |
984 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | 1246 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); |
1247 | } | ||
1248 | ruleQualifiedName | ||
1249 | { | ||
1250 | afterParserOrEnumRuleCall(); | ||
985 | } | 1251 | } |
986 | ) | 1252 | ) |
987 | ) | 1253 | ) |
@@ -996,9 +1262,12 @@ ruleLookupDefinition returns [EObject current=null] | |||
996 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 1262 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
997 | } | 1263 | } |
998 | } | 1264 | } |
999 | otherlv_3=RULE_ID | ||
1000 | { | 1265 | { |
1001 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | 1266 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); |
1267 | } | ||
1268 | ruleValidId | ||
1269 | { | ||
1270 | afterParserOrEnumRuleCall(); | ||
1002 | } | 1271 | } |
1003 | ) | 1272 | ) |
1004 | ) | 1273 | ) |
@@ -1014,9 +1283,12 @@ ruleLookupDefinition returns [EObject current=null] | |||
1014 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 1283 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
1015 | } | 1284 | } |
1016 | } | 1285 | } |
1017 | otherlv_5=RULE_ID | ||
1018 | { | 1286 | { |
1019 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | 1287 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); |
1288 | } | ||
1289 | ruleValidId | ||
1290 | { | ||
1291 | afterParserOrEnumRuleCall(); | ||
1020 | } | 1292 | } |
1021 | ) | 1293 | ) |
1022 | ) | 1294 | ) |
@@ -1031,19 +1303,20 @@ ruleLookupDefinition returns [EObject current=null] | |||
1031 | } | 1303 | } |
1032 | ( | 1304 | ( |
1033 | ( | 1305 | ( |
1034 | lv_name_8_0=RULE_ID | ||
1035 | { | 1306 | { |
1036 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | 1307 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getNameValidIdParserRuleCall_7_0()); |
1037 | } | 1308 | } |
1309 | lv_name_8_0=ruleValidId | ||
1038 | { | 1310 | { |
1039 | if ($current==null) { | 1311 | if ($current==null) { |
1040 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 1312 | $current = createModelElementForParent(grammarAccess.getLookupDefinitionRule()); |
1041 | } | 1313 | } |
1042 | setWithLastConsumed( | 1314 | set( |
1043 | $current, | 1315 | $current, |
1044 | "name", | 1316 | "name", |
1045 | lv_name_8_0, | 1317 | lv_name_8_0, |
1046 | "org.eclipse.xtext.common.Terminals.ID"); | 1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1319 | afterParserOrEnumRuleCall(); | ||
1047 | } | 1320 | } |
1048 | ) | 1321 | ) |
1049 | ) | 1322 | ) |
@@ -1151,9 +1424,12 @@ ruleEventReference returns [EObject current=null] | |||
1151 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | 1424 | $current = createModelElement(grammarAccess.getEventReferenceRule()); |
1152 | } | 1425 | } |
1153 | } | 1426 | } |
1154 | otherlv_0=RULE_ID | ||
1155 | { | 1427 | { |
1156 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | 1428 | newCompositeNode(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); |
1429 | } | ||
1430 | ruleValidId | ||
1431 | { | ||
1432 | afterParserOrEnumRuleCall(); | ||
1157 | } | 1433 | } |
1158 | ) | 1434 | ) |
1159 | ) | 1435 | ) |
@@ -1168,9 +1444,12 @@ ruleEventReference returns [EObject current=null] | |||
1168 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | 1444 | $current = createModelElement(grammarAccess.getEventReferenceRule()); |
1169 | } | 1445 | } |
1170 | } | 1446 | } |
1171 | otherlv_2=RULE_ID | ||
1172 | { | 1447 | { |
1173 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | 1448 | newCompositeNode(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); |
1449 | } | ||
1450 | ruleValidId | ||
1451 | { | ||
1452 | afterParserOrEnumRuleCall(); | ||
1174 | } | 1453 | } |
1175 | ) | 1454 | ) |
1176 | ) | 1455 | ) |
@@ -1250,12 +1529,15 @@ ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleT | |||
1250 | leaveRule(); | 1529 | leaveRule(); |
1251 | }: | 1530 | }: |
1252 | ( | 1531 | ( |
1253 | this_ID_0=RULE_ID | ||
1254 | { | 1532 | { |
1255 | $current.merge(this_ID_0); | 1533 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_0()); |
1256 | } | 1534 | } |
1535 | this_ValidId_0=ruleValidId | ||
1257 | { | 1536 | { |
1258 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | 1537 | $current.merge(this_ValidId_0); |
1538 | } | ||
1539 | { | ||
1540 | afterParserOrEnumRuleCall(); | ||
1259 | } | 1541 | } |
1260 | ( | 1542 | ( |
1261 | kw='.' | 1543 | kw='.' |
@@ -1263,12 +1545,15 @@ ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleT | |||
1263 | $current.merge(kw); | 1545 | $current.merge(kw); |
1264 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | 1546 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
1265 | } | 1547 | } |
1266 | this_ID_2=RULE_ID | ||
1267 | { | 1548 | { |
1268 | $current.merge(this_ID_2); | 1549 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_1_1()); |
1550 | } | ||
1551 | this_ValidId_2=ruleValidId | ||
1552 | { | ||
1553 | $current.merge(this_ValidId_2); | ||
1269 | } | 1554 | } |
1270 | { | 1555 | { |
1271 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | 1556 | afterParserOrEnumRuleCall(); |
1272 | } | 1557 | } |
1273 | )* | 1558 | )* |
1274 | ) | 1559 | ) |
@@ -1315,7 +1600,77 @@ ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrD | |||
1315 | ) | 1600 | ) |
1316 | ; | 1601 | ; |
1317 | 1602 | ||
1318 | RULE_DOULBE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | 1603 | // Entry rule entryRuleValidId |
1604 | entryRuleValidId returns [String current=null]: | ||
1605 | { newCompositeNode(grammarAccess.getValidIdRule()); } | ||
1606 | iv_ruleValidId=ruleValidId | ||
1607 | { $current=$iv_ruleValidId.current.getText(); } | ||
1608 | EOF; | ||
1609 | |||
1610 | // Rule ValidId | ||
1611 | ruleValidId returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1612 | @init { | ||
1613 | enterRule(); | ||
1614 | } | ||
1615 | @after { | ||
1616 | leaveRule(); | ||
1617 | }: | ||
1618 | ( | ||
1619 | this_ID_0=RULE_ID | ||
1620 | { | ||
1621 | $current.merge(this_ID_0); | ||
1622 | } | ||
1623 | { | ||
1624 | newLeafNode(this_ID_0, grammarAccess.getValidIdAccess().getIDTerminalRuleCall_0()); | ||
1625 | } | ||
1626 | | | ||
1627 | this_OF_INT_1=RULE_OF_INT | ||
1628 | { | ||
1629 | $current.merge(this_OF_INT_1); | ||
1630 | } | ||
1631 | { | ||
1632 | newLeafNode(this_OF_INT_1, grammarAccess.getValidIdAccess().getOF_INTTerminalRuleCall_1()); | ||
1633 | } | ||
1634 | ) | ||
1635 | ; | ||
1636 | |||
1637 | // Entry rule entryRuleDouble | ||
1638 | entryRuleDouble returns [String current=null]: | ||
1639 | { newCompositeNode(grammarAccess.getDoubleRule()); } | ||
1640 | iv_ruleDouble=ruleDouble | ||
1641 | { $current=$iv_ruleDouble.current.getText(); } | ||
1642 | EOF; | ||
1643 | |||
1644 | // Rule Double | ||
1645 | ruleDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1646 | @init { | ||
1647 | enterRule(); | ||
1648 | } | ||
1649 | @after { | ||
1650 | leaveRule(); | ||
1651 | }: | ||
1652 | ( | ||
1653 | this_INT_0=RULE_INT | ||
1654 | { | ||
1655 | $current.merge(this_INT_0); | ||
1656 | } | ||
1657 | { | ||
1658 | newLeafNode(this_INT_0, grammarAccess.getDoubleAccess().getINTTerminalRuleCall_0()); | ||
1659 | } | ||
1660 | | | ||
1661 | this_T_DOUBLE_1=RULE_T_DOUBLE | ||
1662 | { | ||
1663 | $current.merge(this_T_DOUBLE_1); | ||
1664 | } | ||
1665 | { | ||
1666 | newLeafNode(this_T_DOUBLE_1, grammarAccess.getDoubleAccess().getT_DOUBLETerminalRuleCall_1()); | ||
1667 | } | ||
1668 | ) | ||
1669 | ; | ||
1670 | |||
1671 | RULE_OF_INT : 'o' 'f' ('0'..'9')+; | ||
1672 | |||
1673 | RULE_T_DOUBLE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | ||
1319 | 1674 | ||
1320 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | 1675 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; |
1321 | 1676 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens index 1c8b296f..2183a28f 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens | |||
@@ -1,38 +1,40 @@ | |||
1 | '('=28 | 1 | '('=31 |
2 | ')'=30 | 2 | ')'=33 |
3 | '*'=37 | 3 | '*'=40 |
4 | '+='=33 | 4 | '+='=36 |
5 | ','=29 | 5 | ','=32 |
6 | '.'=35 | 6 | '.'=38 |
7 | ':='=34 | 7 | ':='=37 |
8 | ';'=13 | 8 | ';'=14 |
9 | '='=22 | 9 | '='=23 |
10 | '=>'=36 | 10 | '=>'=39 |
11 | '[]'=20 | 11 | '[]'=21 |
12 | 'and'=23 | 12 | 'and'=25 |
13 | 'as'=32 | 13 | 'as'=35 |
14 | 'cft'=15 | 14 | 'cft'=16 |
15 | 'import'=14 | 15 | 'import'=15 |
16 | 'in'=17 | 16 | 'in'=18 |
17 | 'lambda'=21 | 17 | 'lambda'=24 |
18 | 'lookup'=31 | 18 | 'lookup'=34 |
19 | 'mapping'=27 | 19 | 'mapping'=30 |
20 | 'or'=24 | 20 | 'of'=27 |
21 | 'out'=18 | 21 | 'or'=26 |
22 | 'package'=12 | 22 | 'out'=19 |
23 | 'toplevel'=26 | 23 | 'p'=22 |
24 | 'transformation'=25 | 24 | 'package'=13 |
25 | '{'=16 | 25 | 'toplevel'=29 |
26 | '}'=19 | 26 | 'transformation'=28 |
27 | RULE_ANY_OTHER=11 | 27 | '{'=17 |
28 | RULE_DOULBE=5 | 28 | '}'=20 |
29 | RULE_ID=4 | 29 | RULE_ANY_OTHER=12 |
30 | RULE_INT=6 | 30 | RULE_ID=6 |
31 | RULE_ML_COMMENT=8 | 31 | RULE_INT=4 |
32 | RULE_SL_COMMENT=9 | 32 | RULE_ML_COMMENT=9 |
33 | RULE_STRING=7 | 33 | RULE_OF_INT=5 |
34 | RULE_WS=10 | 34 | RULE_SL_COMMENT=10 |
35 | T__12=12 | 35 | RULE_STRING=8 |
36 | RULE_T_DOUBLE=7 | ||
37 | RULE_WS=11 | ||
36 | T__13=13 | 38 | T__13=13 |
37 | T__14=14 | 39 | T__14=14 |
38 | T__15=15 | 40 | T__15=15 |
@@ -58,3 +60,6 @@ T__34=34 | |||
58 | T__35=35 | 60 | T__35=35 |
59 | T__36=36 | 61 | T__36=36 |
60 | T__37=37 | 62 | T__37=37 |
63 | T__38=38 | ||
64 | T__39=39 | ||
65 | T__40=40 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java index 22a96234..d7e9807d 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java | |||
@@ -12,17 +12,19 @@ import java.util.ArrayList; | |||
12 | 12 | ||
13 | @SuppressWarnings("all") | 13 | @SuppressWarnings("all") |
14 | public class InternalCftLanguageLexer extends Lexer { | 14 | public class InternalCftLanguageLexer extends Lexer { |
15 | public static final int RULE_STRING=7; | 15 | public static final int RULE_STRING=8; |
16 | public static final int RULE_SL_COMMENT=9; | 16 | public static final int RULE_SL_COMMENT=10; |
17 | public static final int T__19=19; | 17 | public static final int T__19=19; |
18 | public static final int T__15=15; | 18 | public static final int T__15=15; |
19 | public static final int T__37=37; | 19 | public static final int T__37=37; |
20 | public static final int T__16=16; | 20 | public static final int T__16=16; |
21 | public static final int T__38=38; | ||
21 | public static final int T__17=17; | 22 | public static final int T__17=17; |
23 | public static final int T__39=39; | ||
22 | public static final int T__18=18; | 24 | public static final int T__18=18; |
23 | public static final int T__33=33; | 25 | public static final int T__33=33; |
24 | public static final int T__12=12; | ||
25 | public static final int T__34=34; | 26 | public static final int T__34=34; |
27 | public static final int RULE_T_DOUBLE=7; | ||
26 | public static final int T__13=13; | 28 | public static final int T__13=13; |
27 | public static final int T__35=35; | 29 | public static final int T__35=35; |
28 | public static final int T__14=14; | 30 | public static final int T__14=14; |
@@ -31,20 +33,21 @@ public class InternalCftLanguageLexer extends Lexer { | |||
31 | public static final int T__30=30; | 33 | public static final int T__30=30; |
32 | public static final int T__31=31; | 34 | public static final int T__31=31; |
33 | public static final int T__32=32; | 35 | public static final int T__32=32; |
34 | public static final int RULE_ID=4; | 36 | public static final int RULE_OF_INT=5; |
35 | public static final int RULE_WS=10; | 37 | public static final int RULE_ID=6; |
36 | public static final int RULE_DOULBE=5; | 38 | public static final int RULE_WS=11; |
37 | public static final int RULE_ANY_OTHER=11; | 39 | public static final int RULE_ANY_OTHER=12; |
38 | public static final int T__26=26; | 40 | public static final int T__26=26; |
39 | public static final int T__27=27; | 41 | public static final int T__27=27; |
40 | public static final int T__28=28; | 42 | public static final int T__28=28; |
41 | public static final int RULE_INT=6; | 43 | public static final int RULE_INT=4; |
42 | public static final int T__29=29; | 44 | public static final int T__29=29; |
43 | public static final int T__22=22; | 45 | public static final int T__22=22; |
44 | public static final int RULE_ML_COMMENT=8; | 46 | public static final int RULE_ML_COMMENT=9; |
45 | public static final int T__23=23; | 47 | public static final int T__23=23; |
46 | public static final int T__24=24; | 48 | public static final int T__24=24; |
47 | public static final int T__25=25; | 49 | public static final int T__25=25; |
50 | public static final int T__40=40; | ||
48 | public static final int T__20=20; | 51 | public static final int T__20=20; |
49 | public static final int T__21=21; | 52 | public static final int T__21=21; |
50 | 53 | ||
@@ -61,10 +64,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
61 | } | 64 | } |
62 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | 65 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } |
63 | 66 | ||
64 | // $ANTLR start "T__12" | 67 | // $ANTLR start "T__13" |
65 | public final void mT__12() throws RecognitionException { | 68 | public final void mT__13() throws RecognitionException { |
66 | try { | 69 | try { |
67 | int _type = T__12; | 70 | int _type = T__13; |
68 | int _channel = DEFAULT_TOKEN_CHANNEL; | 71 | int _channel = DEFAULT_TOKEN_CHANNEL; |
69 | // InternalCftLanguage.g:11:7: ( 'package' ) | 72 | // InternalCftLanguage.g:11:7: ( 'package' ) |
70 | // InternalCftLanguage.g:11:9: 'package' | 73 | // InternalCftLanguage.g:11:9: 'package' |
@@ -80,26 +83,6 @@ public class InternalCftLanguageLexer extends Lexer { | |||
80 | finally { | 83 | finally { |
81 | } | 84 | } |
82 | } | 85 | } |
83 | // $ANTLR end "T__12" | ||
84 | |||
85 | // $ANTLR start "T__13" | ||
86 | public final void mT__13() throws RecognitionException { | ||
87 | try { | ||
88 | int _type = T__13; | ||
89 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
90 | // InternalCftLanguage.g:12:7: ( ';' ) | ||
91 | // InternalCftLanguage.g:12:9: ';' | ||
92 | { | ||
93 | match(';'); | ||
94 | |||
95 | } | ||
96 | |||
97 | state.type = _type; | ||
98 | state.channel = _channel; | ||
99 | } | ||
100 | finally { | ||
101 | } | ||
102 | } | ||
103 | // $ANTLR end "T__13" | 86 | // $ANTLR end "T__13" |
104 | 87 | ||
105 | // $ANTLR start "T__14" | 88 | // $ANTLR start "T__14" |
@@ -107,11 +90,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
107 | try { | 90 | try { |
108 | int _type = T__14; | 91 | int _type = T__14; |
109 | int _channel = DEFAULT_TOKEN_CHANNEL; | 92 | int _channel = DEFAULT_TOKEN_CHANNEL; |
110 | // InternalCftLanguage.g:13:7: ( 'import' ) | 93 | // InternalCftLanguage.g:12:7: ( ';' ) |
111 | // InternalCftLanguage.g:13:9: 'import' | 94 | // InternalCftLanguage.g:12:9: ';' |
112 | { | 95 | { |
113 | match("import"); | 96 | match(';'); |
114 | |||
115 | 97 | ||
116 | } | 98 | } |
117 | 99 | ||
@@ -128,10 +110,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
128 | try { | 110 | try { |
129 | int _type = T__15; | 111 | int _type = T__15; |
130 | int _channel = DEFAULT_TOKEN_CHANNEL; | 112 | int _channel = DEFAULT_TOKEN_CHANNEL; |
131 | // InternalCftLanguage.g:14:7: ( 'cft' ) | 113 | // InternalCftLanguage.g:13:7: ( 'import' ) |
132 | // InternalCftLanguage.g:14:9: 'cft' | 114 | // InternalCftLanguage.g:13:9: 'import' |
133 | { | 115 | { |
134 | match("cft"); | 116 | match("import"); |
135 | 117 | ||
136 | 118 | ||
137 | } | 119 | } |
@@ -149,10 +131,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
149 | try { | 131 | try { |
150 | int _type = T__16; | 132 | int _type = T__16; |
151 | int _channel = DEFAULT_TOKEN_CHANNEL; | 133 | int _channel = DEFAULT_TOKEN_CHANNEL; |
152 | // InternalCftLanguage.g:15:7: ( '{' ) | 134 | // InternalCftLanguage.g:14:7: ( 'cft' ) |
153 | // InternalCftLanguage.g:15:9: '{' | 135 | // InternalCftLanguage.g:14:9: 'cft' |
154 | { | 136 | { |
155 | match('{'); | 137 | match("cft"); |
138 | |||
156 | 139 | ||
157 | } | 140 | } |
158 | 141 | ||
@@ -169,11 +152,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
169 | try { | 152 | try { |
170 | int _type = T__17; | 153 | int _type = T__17; |
171 | int _channel = DEFAULT_TOKEN_CHANNEL; | 154 | int _channel = DEFAULT_TOKEN_CHANNEL; |
172 | // InternalCftLanguage.g:16:7: ( 'in' ) | 155 | // InternalCftLanguage.g:15:7: ( '{' ) |
173 | // InternalCftLanguage.g:16:9: 'in' | 156 | // InternalCftLanguage.g:15:9: '{' |
174 | { | 157 | { |
175 | match("in"); | 158 | match('{'); |
176 | |||
177 | 159 | ||
178 | } | 160 | } |
179 | 161 | ||
@@ -190,10 +172,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
190 | try { | 172 | try { |
191 | int _type = T__18; | 173 | int _type = T__18; |
192 | int _channel = DEFAULT_TOKEN_CHANNEL; | 174 | int _channel = DEFAULT_TOKEN_CHANNEL; |
193 | // InternalCftLanguage.g:17:7: ( 'out' ) | 175 | // InternalCftLanguage.g:16:7: ( 'in' ) |
194 | // InternalCftLanguage.g:17:9: 'out' | 176 | // InternalCftLanguage.g:16:9: 'in' |
195 | { | 177 | { |
196 | match("out"); | 178 | match("in"); |
197 | 179 | ||
198 | 180 | ||
199 | } | 181 | } |
@@ -211,10 +193,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
211 | try { | 193 | try { |
212 | int _type = T__19; | 194 | int _type = T__19; |
213 | int _channel = DEFAULT_TOKEN_CHANNEL; | 195 | int _channel = DEFAULT_TOKEN_CHANNEL; |
214 | // InternalCftLanguage.g:18:7: ( '}' ) | 196 | // InternalCftLanguage.g:17:7: ( 'out' ) |
215 | // InternalCftLanguage.g:18:9: '}' | 197 | // InternalCftLanguage.g:17:9: 'out' |
216 | { | 198 | { |
217 | match('}'); | 199 | match("out"); |
200 | |||
218 | 201 | ||
219 | } | 202 | } |
220 | 203 | ||
@@ -231,11 +214,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
231 | try { | 214 | try { |
232 | int _type = T__20; | 215 | int _type = T__20; |
233 | int _channel = DEFAULT_TOKEN_CHANNEL; | 216 | int _channel = DEFAULT_TOKEN_CHANNEL; |
234 | // InternalCftLanguage.g:19:7: ( '[]' ) | 217 | // InternalCftLanguage.g:18:7: ( '}' ) |
235 | // InternalCftLanguage.g:19:9: '[]' | 218 | // InternalCftLanguage.g:18:9: '}' |
236 | { | 219 | { |
237 | match("[]"); | 220 | match('}'); |
238 | |||
239 | 221 | ||
240 | } | 222 | } |
241 | 223 | ||
@@ -252,10 +234,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
252 | try { | 234 | try { |
253 | int _type = T__21; | 235 | int _type = T__21; |
254 | int _channel = DEFAULT_TOKEN_CHANNEL; | 236 | int _channel = DEFAULT_TOKEN_CHANNEL; |
255 | // InternalCftLanguage.g:20:7: ( 'lambda' ) | 237 | // InternalCftLanguage.g:19:7: ( '[]' ) |
256 | // InternalCftLanguage.g:20:9: 'lambda' | 238 | // InternalCftLanguage.g:19:9: '[]' |
257 | { | 239 | { |
258 | match("lambda"); | 240 | match("[]"); |
259 | 241 | ||
260 | 242 | ||
261 | } | 243 | } |
@@ -273,10 +255,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
273 | try { | 255 | try { |
274 | int _type = T__22; | 256 | int _type = T__22; |
275 | int _channel = DEFAULT_TOKEN_CHANNEL; | 257 | int _channel = DEFAULT_TOKEN_CHANNEL; |
276 | // InternalCftLanguage.g:21:7: ( '=' ) | 258 | // InternalCftLanguage.g:20:7: ( 'p' ) |
277 | // InternalCftLanguage.g:21:9: '=' | 259 | // InternalCftLanguage.g:20:9: 'p' |
278 | { | 260 | { |
279 | match('='); | 261 | match('p'); |
280 | 262 | ||
281 | } | 263 | } |
282 | 264 | ||
@@ -293,11 +275,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
293 | try { | 275 | try { |
294 | int _type = T__23; | 276 | int _type = T__23; |
295 | int _channel = DEFAULT_TOKEN_CHANNEL; | 277 | int _channel = DEFAULT_TOKEN_CHANNEL; |
296 | // InternalCftLanguage.g:22:7: ( 'and' ) | 278 | // InternalCftLanguage.g:21:7: ( '=' ) |
297 | // InternalCftLanguage.g:22:9: 'and' | 279 | // InternalCftLanguage.g:21:9: '=' |
298 | { | 280 | { |
299 | match("and"); | 281 | match('='); |
300 | |||
301 | 282 | ||
302 | } | 283 | } |
303 | 284 | ||
@@ -314,10 +295,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
314 | try { | 295 | try { |
315 | int _type = T__24; | 296 | int _type = T__24; |
316 | int _channel = DEFAULT_TOKEN_CHANNEL; | 297 | int _channel = DEFAULT_TOKEN_CHANNEL; |
317 | // InternalCftLanguage.g:23:7: ( 'or' ) | 298 | // InternalCftLanguage.g:22:7: ( 'lambda' ) |
318 | // InternalCftLanguage.g:23:9: 'or' | 299 | // InternalCftLanguage.g:22:9: 'lambda' |
319 | { | 300 | { |
320 | match("or"); | 301 | match("lambda"); |
321 | 302 | ||
322 | 303 | ||
323 | } | 304 | } |
@@ -335,10 +316,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
335 | try { | 316 | try { |
336 | int _type = T__25; | 317 | int _type = T__25; |
337 | int _channel = DEFAULT_TOKEN_CHANNEL; | 318 | int _channel = DEFAULT_TOKEN_CHANNEL; |
338 | // InternalCftLanguage.g:24:7: ( 'transformation' ) | 319 | // InternalCftLanguage.g:23:7: ( 'and' ) |
339 | // InternalCftLanguage.g:24:9: 'transformation' | 320 | // InternalCftLanguage.g:23:9: 'and' |
340 | { | 321 | { |
341 | match("transformation"); | 322 | match("and"); |
342 | 323 | ||
343 | 324 | ||
344 | } | 325 | } |
@@ -356,10 +337,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
356 | try { | 337 | try { |
357 | int _type = T__26; | 338 | int _type = T__26; |
358 | int _channel = DEFAULT_TOKEN_CHANNEL; | 339 | int _channel = DEFAULT_TOKEN_CHANNEL; |
359 | // InternalCftLanguage.g:25:7: ( 'toplevel' ) | 340 | // InternalCftLanguage.g:24:7: ( 'or' ) |
360 | // InternalCftLanguage.g:25:9: 'toplevel' | 341 | // InternalCftLanguage.g:24:9: 'or' |
361 | { | 342 | { |
362 | match("toplevel"); | 343 | match("or"); |
363 | 344 | ||
364 | 345 | ||
365 | } | 346 | } |
@@ -377,10 +358,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
377 | try { | 358 | try { |
378 | int _type = T__27; | 359 | int _type = T__27; |
379 | int _channel = DEFAULT_TOKEN_CHANNEL; | 360 | int _channel = DEFAULT_TOKEN_CHANNEL; |
380 | // InternalCftLanguage.g:26:7: ( 'mapping' ) | 361 | // InternalCftLanguage.g:25:7: ( 'of' ) |
381 | // InternalCftLanguage.g:26:9: 'mapping' | 362 | // InternalCftLanguage.g:25:9: 'of' |
382 | { | 363 | { |
383 | match("mapping"); | 364 | match("of"); |
384 | 365 | ||
385 | 366 | ||
386 | } | 367 | } |
@@ -398,10 +379,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
398 | try { | 379 | try { |
399 | int _type = T__28; | 380 | int _type = T__28; |
400 | int _channel = DEFAULT_TOKEN_CHANNEL; | 381 | int _channel = DEFAULT_TOKEN_CHANNEL; |
401 | // InternalCftLanguage.g:27:7: ( '(' ) | 382 | // InternalCftLanguage.g:26:7: ( 'transformation' ) |
402 | // InternalCftLanguage.g:27:9: '(' | 383 | // InternalCftLanguage.g:26:9: 'transformation' |
403 | { | 384 | { |
404 | match('('); | 385 | match("transformation"); |
386 | |||
405 | 387 | ||
406 | } | 388 | } |
407 | 389 | ||
@@ -418,10 +400,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
418 | try { | 400 | try { |
419 | int _type = T__29; | 401 | int _type = T__29; |
420 | int _channel = DEFAULT_TOKEN_CHANNEL; | 402 | int _channel = DEFAULT_TOKEN_CHANNEL; |
421 | // InternalCftLanguage.g:28:7: ( ',' ) | 403 | // InternalCftLanguage.g:27:7: ( 'toplevel' ) |
422 | // InternalCftLanguage.g:28:9: ',' | 404 | // InternalCftLanguage.g:27:9: 'toplevel' |
423 | { | 405 | { |
424 | match(','); | 406 | match("toplevel"); |
407 | |||
425 | 408 | ||
426 | } | 409 | } |
427 | 410 | ||
@@ -438,10 +421,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
438 | try { | 421 | try { |
439 | int _type = T__30; | 422 | int _type = T__30; |
440 | int _channel = DEFAULT_TOKEN_CHANNEL; | 423 | int _channel = DEFAULT_TOKEN_CHANNEL; |
441 | // InternalCftLanguage.g:29:7: ( ')' ) | 424 | // InternalCftLanguage.g:28:7: ( 'mapping' ) |
442 | // InternalCftLanguage.g:29:9: ')' | 425 | // InternalCftLanguage.g:28:9: 'mapping' |
443 | { | 426 | { |
444 | match(')'); | 427 | match("mapping"); |
428 | |||
445 | 429 | ||
446 | } | 430 | } |
447 | 431 | ||
@@ -458,11 +442,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
458 | try { | 442 | try { |
459 | int _type = T__31; | 443 | int _type = T__31; |
460 | int _channel = DEFAULT_TOKEN_CHANNEL; | 444 | int _channel = DEFAULT_TOKEN_CHANNEL; |
461 | // InternalCftLanguage.g:30:7: ( 'lookup' ) | 445 | // InternalCftLanguage.g:29:7: ( '(' ) |
462 | // InternalCftLanguage.g:30:9: 'lookup' | 446 | // InternalCftLanguage.g:29:9: '(' |
463 | { | 447 | { |
464 | match("lookup"); | 448 | match('('); |
465 | |||
466 | 449 | ||
467 | } | 450 | } |
468 | 451 | ||
@@ -479,11 +462,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
479 | try { | 462 | try { |
480 | int _type = T__32; | 463 | int _type = T__32; |
481 | int _channel = DEFAULT_TOKEN_CHANNEL; | 464 | int _channel = DEFAULT_TOKEN_CHANNEL; |
482 | // InternalCftLanguage.g:31:7: ( 'as' ) | 465 | // InternalCftLanguage.g:30:7: ( ',' ) |
483 | // InternalCftLanguage.g:31:9: 'as' | 466 | // InternalCftLanguage.g:30:9: ',' |
484 | { | 467 | { |
485 | match("as"); | 468 | match(','); |
486 | |||
487 | 469 | ||
488 | } | 470 | } |
489 | 471 | ||
@@ -500,11 +482,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
500 | try { | 482 | try { |
501 | int _type = T__33; | 483 | int _type = T__33; |
502 | int _channel = DEFAULT_TOKEN_CHANNEL; | 484 | int _channel = DEFAULT_TOKEN_CHANNEL; |
503 | // InternalCftLanguage.g:32:7: ( '+=' ) | 485 | // InternalCftLanguage.g:31:7: ( ')' ) |
504 | // InternalCftLanguage.g:32:9: '+=' | 486 | // InternalCftLanguage.g:31:9: ')' |
505 | { | 487 | { |
506 | match("+="); | 488 | match(')'); |
507 | |||
508 | 489 | ||
509 | } | 490 | } |
510 | 491 | ||
@@ -521,10 +502,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
521 | try { | 502 | try { |
522 | int _type = T__34; | 503 | int _type = T__34; |
523 | int _channel = DEFAULT_TOKEN_CHANNEL; | 504 | int _channel = DEFAULT_TOKEN_CHANNEL; |
524 | // InternalCftLanguage.g:33:7: ( ':=' ) | 505 | // InternalCftLanguage.g:32:7: ( 'lookup' ) |
525 | // InternalCftLanguage.g:33:9: ':=' | 506 | // InternalCftLanguage.g:32:9: 'lookup' |
526 | { | 507 | { |
527 | match(":="); | 508 | match("lookup"); |
528 | 509 | ||
529 | 510 | ||
530 | } | 511 | } |
@@ -542,10 +523,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
542 | try { | 523 | try { |
543 | int _type = T__35; | 524 | int _type = T__35; |
544 | int _channel = DEFAULT_TOKEN_CHANNEL; | 525 | int _channel = DEFAULT_TOKEN_CHANNEL; |
545 | // InternalCftLanguage.g:34:7: ( '.' ) | 526 | // InternalCftLanguage.g:33:7: ( 'as' ) |
546 | // InternalCftLanguage.g:34:9: '.' | 527 | // InternalCftLanguage.g:33:9: 'as' |
547 | { | 528 | { |
548 | match('.'); | 529 | match("as"); |
530 | |||
549 | 531 | ||
550 | } | 532 | } |
551 | 533 | ||
@@ -562,10 +544,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
562 | try { | 544 | try { |
563 | int _type = T__36; | 545 | int _type = T__36; |
564 | int _channel = DEFAULT_TOKEN_CHANNEL; | 546 | int _channel = DEFAULT_TOKEN_CHANNEL; |
565 | // InternalCftLanguage.g:35:7: ( '=>' ) | 547 | // InternalCftLanguage.g:34:7: ( '+=' ) |
566 | // InternalCftLanguage.g:35:9: '=>' | 548 | // InternalCftLanguage.g:34:9: '+=' |
567 | { | 549 | { |
568 | match("=>"); | 550 | match("+="); |
569 | 551 | ||
570 | 552 | ||
571 | } | 553 | } |
@@ -583,10 +565,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
583 | try { | 565 | try { |
584 | int _type = T__37; | 566 | int _type = T__37; |
585 | int _channel = DEFAULT_TOKEN_CHANNEL; | 567 | int _channel = DEFAULT_TOKEN_CHANNEL; |
586 | // InternalCftLanguage.g:36:7: ( '*' ) | 568 | // InternalCftLanguage.g:35:7: ( ':=' ) |
587 | // InternalCftLanguage.g:36:9: '*' | 569 | // InternalCftLanguage.g:35:9: ':=' |
588 | { | 570 | { |
589 | match('*'); | 571 | match(":="); |
572 | |||
590 | 573 | ||
591 | } | 574 | } |
592 | 575 | ||
@@ -598,15 +581,78 @@ public class InternalCftLanguageLexer extends Lexer { | |||
598 | } | 581 | } |
599 | // $ANTLR end "T__37" | 582 | // $ANTLR end "T__37" |
600 | 583 | ||
601 | // $ANTLR start "RULE_DOULBE" | 584 | // $ANTLR start "T__38" |
602 | public final void mRULE_DOULBE() throws RecognitionException { | 585 | public final void mT__38() throws RecognitionException { |
586 | try { | ||
587 | int _type = T__38; | ||
588 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
589 | // InternalCftLanguage.g:36:7: ( '.' ) | ||
590 | // InternalCftLanguage.g:36:9: '.' | ||
591 | { | ||
592 | match('.'); | ||
593 | |||
594 | } | ||
595 | |||
596 | state.type = _type; | ||
597 | state.channel = _channel; | ||
598 | } | ||
599 | finally { | ||
600 | } | ||
601 | } | ||
602 | // $ANTLR end "T__38" | ||
603 | |||
604 | // $ANTLR start "T__39" | ||
605 | public final void mT__39() throws RecognitionException { | ||
603 | try { | 606 | try { |
604 | int _type = RULE_DOULBE; | 607 | int _type = T__39; |
605 | int _channel = DEFAULT_TOKEN_CHANNEL; | 608 | int _channel = DEFAULT_TOKEN_CHANNEL; |
606 | // InternalCftLanguage.g:1318:13: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | 609 | // InternalCftLanguage.g:37:7: ( '=>' ) |
607 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | 610 | // InternalCftLanguage.g:37:9: '=>' |
608 | { | 611 | { |
609 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ | 612 | match("=>"); |
613 | |||
614 | |||
615 | } | ||
616 | |||
617 | state.type = _type; | ||
618 | state.channel = _channel; | ||
619 | } | ||
620 | finally { | ||
621 | } | ||
622 | } | ||
623 | // $ANTLR end "T__39" | ||
624 | |||
625 | // $ANTLR start "T__40" | ||
626 | public final void mT__40() throws RecognitionException { | ||
627 | try { | ||
628 | int _type = T__40; | ||
629 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
630 | // InternalCftLanguage.g:38:7: ( '*' ) | ||
631 | // InternalCftLanguage.g:38:9: '*' | ||
632 | { | ||
633 | match('*'); | ||
634 | |||
635 | } | ||
636 | |||
637 | state.type = _type; | ||
638 | state.channel = _channel; | ||
639 | } | ||
640 | finally { | ||
641 | } | ||
642 | } | ||
643 | // $ANTLR end "T__40" | ||
644 | |||
645 | // $ANTLR start "RULE_OF_INT" | ||
646 | public final void mRULE_OF_INT() throws RecognitionException { | ||
647 | try { | ||
648 | int _type = RULE_OF_INT; | ||
649 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
650 | // InternalCftLanguage.g:1671:13: ( 'o' 'f' ( '0' .. '9' )+ ) | ||
651 | // InternalCftLanguage.g:1671:15: 'o' 'f' ( '0' .. '9' )+ | ||
652 | { | ||
653 | match('o'); | ||
654 | match('f'); | ||
655 | // InternalCftLanguage.g:1671:23: ( '0' .. '9' )+ | ||
610 | int cnt1=0; | 656 | int cnt1=0; |
611 | loop1: | 657 | loop1: |
612 | do { | 658 | do { |
@@ -620,7 +666,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
620 | 666 | ||
621 | switch (alt1) { | 667 | switch (alt1) { |
622 | case 1 : | 668 | case 1 : |
623 | // InternalCftLanguage.g:1318:16: '0' .. '9' | 669 | // InternalCftLanguage.g:1671:24: '0' .. '9' |
624 | { | 670 | { |
625 | matchRange('0','9'); | 671 | matchRange('0','9'); |
626 | 672 | ||
@@ -636,29 +682,78 @@ public class InternalCftLanguageLexer extends Lexer { | |||
636 | cnt1++; | 682 | cnt1++; |
637 | } while (true); | 683 | } while (true); |
638 | 684 | ||
639 | // InternalCftLanguage.g:1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | 685 | |
640 | int alt7=2; | 686 | } |
641 | alt7 = dfa7.predict(input); | 687 | |
642 | switch (alt7) { | 688 | state.type = _type; |
689 | state.channel = _channel; | ||
690 | } | ||
691 | finally { | ||
692 | } | ||
693 | } | ||
694 | // $ANTLR end "RULE_OF_INT" | ||
695 | |||
696 | // $ANTLR start "RULE_T_DOUBLE" | ||
697 | public final void mRULE_T_DOUBLE() throws RecognitionException { | ||
698 | try { | ||
699 | int _type = RULE_T_DOUBLE; | ||
700 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
701 | // InternalCftLanguage.g:1673:15: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | ||
702 | // InternalCftLanguage.g:1673:17: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
703 | { | ||
704 | // InternalCftLanguage.g:1673:17: ( '0' .. '9' )+ | ||
705 | int cnt2=0; | ||
706 | loop2: | ||
707 | do { | ||
708 | int alt2=2; | ||
709 | int LA2_0 = input.LA(1); | ||
710 | |||
711 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | ||
712 | alt2=1; | ||
713 | } | ||
714 | |||
715 | |||
716 | switch (alt2) { | ||
717 | case 1 : | ||
718 | // InternalCftLanguage.g:1673:18: '0' .. '9' | ||
719 | { | ||
720 | matchRange('0','9'); | ||
721 | |||
722 | } | ||
723 | break; | ||
724 | |||
725 | default : | ||
726 | if ( cnt2 >= 1 ) break loop2; | ||
727 | EarlyExitException eee = | ||
728 | new EarlyExitException(2, input); | ||
729 | throw eee; | ||
730 | } | ||
731 | cnt2++; | ||
732 | } while (true); | ||
733 | |||
734 | // InternalCftLanguage.g:1673:29: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
735 | int alt8=2; | ||
736 | alt8 = dfa8.predict(input); | ||
737 | switch (alt8) { | ||
643 | case 1 : | 738 | case 1 : |
644 | // InternalCftLanguage.g:1318:28: '.' ( '0' .. '9' )+ | 739 | // InternalCftLanguage.g:1673:30: '.' ( '0' .. '9' )+ |
645 | { | 740 | { |
646 | match('.'); | 741 | match('.'); |
647 | // InternalCftLanguage.g:1318:32: ( '0' .. '9' )+ | 742 | // InternalCftLanguage.g:1673:34: ( '0' .. '9' )+ |
648 | int cnt2=0; | 743 | int cnt3=0; |
649 | loop2: | 744 | loop3: |
650 | do { | 745 | do { |
651 | int alt2=2; | 746 | int alt3=2; |
652 | int LA2_0 = input.LA(1); | 747 | int LA3_0 = input.LA(1); |
653 | 748 | ||
654 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | 749 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { |
655 | alt2=1; | 750 | alt3=1; |
656 | } | 751 | } |
657 | 752 | ||
658 | 753 | ||
659 | switch (alt2) { | 754 | switch (alt3) { |
660 | case 1 : | 755 | case 1 : |
661 | // InternalCftLanguage.g:1318:33: '0' .. '9' | 756 | // InternalCftLanguage.g:1673:35: '0' .. '9' |
662 | { | 757 | { |
663 | matchRange('0','9'); | 758 | matchRange('0','9'); |
664 | 759 | ||
@@ -666,47 +761,47 @@ public class InternalCftLanguageLexer extends Lexer { | |||
666 | break; | 761 | break; |
667 | 762 | ||
668 | default : | 763 | default : |
669 | if ( cnt2 >= 1 ) break loop2; | 764 | if ( cnt3 >= 1 ) break loop3; |
670 | EarlyExitException eee = | 765 | EarlyExitException eee = |
671 | new EarlyExitException(2, input); | 766 | new EarlyExitException(3, input); |
672 | throw eee; | 767 | throw eee; |
673 | } | 768 | } |
674 | cnt2++; | 769 | cnt3++; |
675 | } while (true); | 770 | } while (true); |
676 | 771 | ||
677 | 772 | ||
678 | } | 773 | } |
679 | break; | 774 | break; |
680 | case 2 : | 775 | case 2 : |
681 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ | 776 | // InternalCftLanguage.g:1673:46: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ |
682 | { | 777 | { |
683 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? | 778 | // InternalCftLanguage.g:1673:46: ( '.' ( '0' .. '9' )+ )? |
684 | int alt4=2; | 779 | int alt5=2; |
685 | int LA4_0 = input.LA(1); | 780 | int LA5_0 = input.LA(1); |
686 | 781 | ||
687 | if ( (LA4_0=='.') ) { | 782 | if ( (LA5_0=='.') ) { |
688 | alt4=1; | 783 | alt5=1; |
689 | } | 784 | } |
690 | switch (alt4) { | 785 | switch (alt5) { |
691 | case 1 : | 786 | case 1 : |
692 | // InternalCftLanguage.g:1318:45: '.' ( '0' .. '9' )+ | 787 | // InternalCftLanguage.g:1673:47: '.' ( '0' .. '9' )+ |
693 | { | 788 | { |
694 | match('.'); | 789 | match('.'); |
695 | // InternalCftLanguage.g:1318:49: ( '0' .. '9' )+ | 790 | // InternalCftLanguage.g:1673:51: ( '0' .. '9' )+ |
696 | int cnt3=0; | 791 | int cnt4=0; |
697 | loop3: | 792 | loop4: |
698 | do { | 793 | do { |
699 | int alt3=2; | 794 | int alt4=2; |
700 | int LA3_0 = input.LA(1); | 795 | int LA4_0 = input.LA(1); |
701 | 796 | ||
702 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | 797 | if ( ((LA4_0>='0' && LA4_0<='9')) ) { |
703 | alt3=1; | 798 | alt4=1; |
704 | } | 799 | } |
705 | 800 | ||
706 | 801 | ||
707 | switch (alt3) { | 802 | switch (alt4) { |
708 | case 1 : | 803 | case 1 : |
709 | // InternalCftLanguage.g:1318:50: '0' .. '9' | 804 | // InternalCftLanguage.g:1673:52: '0' .. '9' |
710 | { | 805 | { |
711 | matchRange('0','9'); | 806 | matchRange('0','9'); |
712 | 807 | ||
@@ -714,12 +809,12 @@ public class InternalCftLanguageLexer extends Lexer { | |||
714 | break; | 809 | break; |
715 | 810 | ||
716 | default : | 811 | default : |
717 | if ( cnt3 >= 1 ) break loop3; | 812 | if ( cnt4 >= 1 ) break loop4; |
718 | EarlyExitException eee = | 813 | EarlyExitException eee = |
719 | new EarlyExitException(3, input); | 814 | new EarlyExitException(4, input); |
720 | throw eee; | 815 | throw eee; |
721 | } | 816 | } |
722 | cnt3++; | 817 | cnt4++; |
723 | } while (true); | 818 | } while (true); |
724 | 819 | ||
725 | 820 | ||
@@ -737,14 +832,14 @@ public class InternalCftLanguageLexer extends Lexer { | |||
737 | recover(mse); | 832 | recover(mse); |
738 | throw mse;} | 833 | throw mse;} |
739 | 834 | ||
740 | // InternalCftLanguage.g:1318:73: ( '+' | '-' )? | 835 | // InternalCftLanguage.g:1673:75: ( '+' | '-' )? |
741 | int alt5=2; | 836 | int alt6=2; |
742 | int LA5_0 = input.LA(1); | 837 | int LA6_0 = input.LA(1); |
743 | 838 | ||
744 | if ( (LA5_0=='+'||LA5_0=='-') ) { | 839 | if ( (LA6_0=='+'||LA6_0=='-') ) { |
745 | alt5=1; | 840 | alt6=1; |
746 | } | 841 | } |
747 | switch (alt5) { | 842 | switch (alt6) { |
748 | case 1 : | 843 | case 1 : |
749 | // InternalCftLanguage.g: | 844 | // InternalCftLanguage.g: |
750 | { | 845 | { |
@@ -763,21 +858,21 @@ public class InternalCftLanguageLexer extends Lexer { | |||
763 | 858 | ||
764 | } | 859 | } |
765 | 860 | ||
766 | // InternalCftLanguage.g:1318:84: ( '0' .. '9' )+ | 861 | // InternalCftLanguage.g:1673:86: ( '0' .. '9' )+ |
767 | int cnt6=0; | 862 | int cnt7=0; |
768 | loop6: | 863 | loop7: |
769 | do { | 864 | do { |
770 | int alt6=2; | 865 | int alt7=2; |
771 | int LA6_0 = input.LA(1); | 866 | int LA7_0 = input.LA(1); |
772 | 867 | ||
773 | if ( ((LA6_0>='0' && LA6_0<='9')) ) { | 868 | if ( ((LA7_0>='0' && LA7_0<='9')) ) { |
774 | alt6=1; | 869 | alt7=1; |
775 | } | 870 | } |
776 | 871 | ||
777 | 872 | ||
778 | switch (alt6) { | 873 | switch (alt7) { |
779 | case 1 : | 874 | case 1 : |
780 | // InternalCftLanguage.g:1318:85: '0' .. '9' | 875 | // InternalCftLanguage.g:1673:87: '0' .. '9' |
781 | { | 876 | { |
782 | matchRange('0','9'); | 877 | matchRange('0','9'); |
783 | 878 | ||
@@ -785,12 +880,12 @@ public class InternalCftLanguageLexer extends Lexer { | |||
785 | break; | 880 | break; |
786 | 881 | ||
787 | default : | 882 | default : |
788 | if ( cnt6 >= 1 ) break loop6; | 883 | if ( cnt7 >= 1 ) break loop7; |
789 | EarlyExitException eee = | 884 | EarlyExitException eee = |
790 | new EarlyExitException(6, input); | 885 | new EarlyExitException(7, input); |
791 | throw eee; | 886 | throw eee; |
792 | } | 887 | } |
793 | cnt6++; | 888 | cnt7++; |
794 | } while (true); | 889 | } while (true); |
795 | 890 | ||
796 | 891 | ||
@@ -808,26 +903,26 @@ public class InternalCftLanguageLexer extends Lexer { | |||
808 | finally { | 903 | finally { |
809 | } | 904 | } |
810 | } | 905 | } |
811 | // $ANTLR end "RULE_DOULBE" | 906 | // $ANTLR end "RULE_T_DOUBLE" |
812 | 907 | ||
813 | // $ANTLR start "RULE_ID" | 908 | // $ANTLR start "RULE_ID" |
814 | public final void mRULE_ID() throws RecognitionException { | 909 | public final void mRULE_ID() throws RecognitionException { |
815 | try { | 910 | try { |
816 | int _type = RULE_ID; | 911 | int _type = RULE_ID; |
817 | int _channel = DEFAULT_TOKEN_CHANNEL; | 912 | int _channel = DEFAULT_TOKEN_CHANNEL; |
818 | // InternalCftLanguage.g:1320:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | 913 | // InternalCftLanguage.g:1675:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) |
819 | // InternalCftLanguage.g:1320:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | 914 | // InternalCftLanguage.g:1675:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* |
820 | { | 915 | { |
821 | // InternalCftLanguage.g:1320:11: ( '^' )? | 916 | // InternalCftLanguage.g:1675:11: ( '^' )? |
822 | int alt8=2; | 917 | int alt9=2; |
823 | int LA8_0 = input.LA(1); | 918 | int LA9_0 = input.LA(1); |
824 | 919 | ||
825 | if ( (LA8_0=='^') ) { | 920 | if ( (LA9_0=='^') ) { |
826 | alt8=1; | 921 | alt9=1; |
827 | } | 922 | } |
828 | switch (alt8) { | 923 | switch (alt9) { |
829 | case 1 : | 924 | case 1 : |
830 | // InternalCftLanguage.g:1320:11: '^' | 925 | // InternalCftLanguage.g:1675:11: '^' |
831 | { | 926 | { |
832 | match('^'); | 927 | match('^'); |
833 | 928 | ||
@@ -845,18 +940,18 @@ public class InternalCftLanguageLexer extends Lexer { | |||
845 | recover(mse); | 940 | recover(mse); |
846 | throw mse;} | 941 | throw mse;} |
847 | 942 | ||
848 | // InternalCftLanguage.g:1320:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | 943 | // InternalCftLanguage.g:1675:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* |
849 | loop9: | 944 | loop10: |
850 | do { | 945 | do { |
851 | int alt9=2; | 946 | int alt10=2; |
852 | int LA9_0 = input.LA(1); | 947 | int LA10_0 = input.LA(1); |
853 | 948 | ||
854 | if ( ((LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='Z')||LA9_0=='_'||(LA9_0>='a' && LA9_0<='z')) ) { | 949 | if ( ((LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) { |
855 | alt9=1; | 950 | alt10=1; |
856 | } | 951 | } |
857 | 952 | ||
858 | 953 | ||
859 | switch (alt9) { | 954 | switch (alt10) { |
860 | case 1 : | 955 | case 1 : |
861 | // InternalCftLanguage.g: | 956 | // InternalCftLanguage.g: |
862 | { | 957 | { |
@@ -874,7 +969,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
874 | break; | 969 | break; |
875 | 970 | ||
876 | default : | 971 | default : |
877 | break loop9; | 972 | break loop10; |
878 | } | 973 | } |
879 | } while (true); | 974 | } while (true); |
880 | 975 | ||
@@ -894,24 +989,24 @@ public class InternalCftLanguageLexer extends Lexer { | |||
894 | try { | 989 | try { |
895 | int _type = RULE_INT; | 990 | int _type = RULE_INT; |
896 | int _channel = DEFAULT_TOKEN_CHANNEL; | 991 | int _channel = DEFAULT_TOKEN_CHANNEL; |
897 | // InternalCftLanguage.g:1322:10: ( ( '0' .. '9' )+ ) | 992 | // InternalCftLanguage.g:1677:10: ( ( '0' .. '9' )+ ) |
898 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | 993 | // InternalCftLanguage.g:1677:12: ( '0' .. '9' )+ |
899 | { | 994 | { |
900 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | 995 | // InternalCftLanguage.g:1677:12: ( '0' .. '9' )+ |
901 | int cnt10=0; | 996 | int cnt11=0; |
902 | loop10: | 997 | loop11: |
903 | do { | 998 | do { |
904 | int alt10=2; | 999 | int alt11=2; |
905 | int LA10_0 = input.LA(1); | 1000 | int LA11_0 = input.LA(1); |
906 | 1001 | ||
907 | if ( ((LA10_0>='0' && LA10_0<='9')) ) { | 1002 | if ( ((LA11_0>='0' && LA11_0<='9')) ) { |
908 | alt10=1; | 1003 | alt11=1; |
909 | } | 1004 | } |
910 | 1005 | ||
911 | 1006 | ||
912 | switch (alt10) { | 1007 | switch (alt11) { |
913 | case 1 : | 1008 | case 1 : |
914 | // InternalCftLanguage.g:1322:13: '0' .. '9' | 1009 | // InternalCftLanguage.g:1677:13: '0' .. '9' |
915 | { | 1010 | { |
916 | matchRange('0','9'); | 1011 | matchRange('0','9'); |
917 | 1012 | ||
@@ -919,12 +1014,12 @@ public class InternalCftLanguageLexer extends Lexer { | |||
919 | break; | 1014 | break; |
920 | 1015 | ||
921 | default : | 1016 | default : |
922 | if ( cnt10 >= 1 ) break loop10; | 1017 | if ( cnt11 >= 1 ) break loop11; |
923 | EarlyExitException eee = | 1018 | EarlyExitException eee = |
924 | new EarlyExitException(10, input); | 1019 | new EarlyExitException(11, input); |
925 | throw eee; | 1020 | throw eee; |
926 | } | 1021 | } |
927 | cnt10++; | 1022 | cnt11++; |
928 | } while (true); | 1023 | } while (true); |
929 | 1024 | ||
930 | 1025 | ||
@@ -943,47 +1038,47 @@ public class InternalCftLanguageLexer extends Lexer { | |||
943 | try { | 1038 | try { |
944 | int _type = RULE_STRING; | 1039 | int _type = RULE_STRING; |
945 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1040 | int _channel = DEFAULT_TOKEN_CHANNEL; |
946 | // InternalCftLanguage.g:1324:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | 1041 | // InternalCftLanguage.g:1679:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) |
947 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | 1042 | // InternalCftLanguage.g:1679:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) |
948 | { | 1043 | { |
949 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | 1044 | // InternalCftLanguage.g:1679:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) |
950 | int alt13=2; | 1045 | int alt14=2; |
951 | int LA13_0 = input.LA(1); | 1046 | int LA14_0 = input.LA(1); |
952 | 1047 | ||
953 | if ( (LA13_0=='\"') ) { | 1048 | if ( (LA14_0=='\"') ) { |
954 | alt13=1; | 1049 | alt14=1; |
955 | } | 1050 | } |
956 | else if ( (LA13_0=='\'') ) { | 1051 | else if ( (LA14_0=='\'') ) { |
957 | alt13=2; | 1052 | alt14=2; |
958 | } | 1053 | } |
959 | else { | 1054 | else { |
960 | NoViableAltException nvae = | 1055 | NoViableAltException nvae = |
961 | new NoViableAltException("", 13, 0, input); | 1056 | new NoViableAltException("", 14, 0, input); |
962 | 1057 | ||
963 | throw nvae; | 1058 | throw nvae; |
964 | } | 1059 | } |
965 | switch (alt13) { | 1060 | switch (alt14) { |
966 | case 1 : | 1061 | case 1 : |
967 | // InternalCftLanguage.g:1324:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | 1062 | // InternalCftLanguage.g:1679:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' |
968 | { | 1063 | { |
969 | match('\"'); | 1064 | match('\"'); |
970 | // InternalCftLanguage.g:1324:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | 1065 | // InternalCftLanguage.g:1679:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* |
971 | loop11: | 1066 | loop12: |
972 | do { | 1067 | do { |
973 | int alt11=3; | 1068 | int alt12=3; |
974 | int LA11_0 = input.LA(1); | 1069 | int LA12_0 = input.LA(1); |
975 | 1070 | ||
976 | if ( (LA11_0=='\\') ) { | 1071 | if ( (LA12_0=='\\') ) { |
977 | alt11=1; | 1072 | alt12=1; |
978 | } | 1073 | } |
979 | else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) { | 1074 | else if ( ((LA12_0>='\u0000' && LA12_0<='!')||(LA12_0>='#' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { |
980 | alt11=2; | 1075 | alt12=2; |
981 | } | 1076 | } |
982 | 1077 | ||
983 | 1078 | ||
984 | switch (alt11) { | 1079 | switch (alt12) { |
985 | case 1 : | 1080 | case 1 : |
986 | // InternalCftLanguage.g:1324:21: '\\\\' . | 1081 | // InternalCftLanguage.g:1679:21: '\\\\' . |
987 | { | 1082 | { |
988 | match('\\'); | 1083 | match('\\'); |
989 | matchAny(); | 1084 | matchAny(); |
@@ -991,7 +1086,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
991 | } | 1086 | } |
992 | break; | 1087 | break; |
993 | case 2 : | 1088 | case 2 : |
994 | // InternalCftLanguage.g:1324:28: ~ ( ( '\\\\' | '\"' ) ) | 1089 | // InternalCftLanguage.g:1679:28: ~ ( ( '\\\\' | '\"' ) ) |
995 | { | 1090 | { |
996 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | 1091 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { |
997 | input.consume(); | 1092 | input.consume(); |
@@ -1007,7 +1102,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1007 | break; | 1102 | break; |
1008 | 1103 | ||
1009 | default : | 1104 | default : |
1010 | break loop11; | 1105 | break loop12; |
1011 | } | 1106 | } |
1012 | } while (true); | 1107 | } while (true); |
1013 | 1108 | ||
@@ -1016,26 +1111,26 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1016 | } | 1111 | } |
1017 | break; | 1112 | break; |
1018 | case 2 : | 1113 | case 2 : |
1019 | // InternalCftLanguage.g:1324:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | 1114 | // InternalCftLanguage.g:1679:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' |
1020 | { | 1115 | { |
1021 | match('\''); | 1116 | match('\''); |
1022 | // InternalCftLanguage.g:1324:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | 1117 | // InternalCftLanguage.g:1679:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* |
1023 | loop12: | 1118 | loop13: |
1024 | do { | 1119 | do { |
1025 | int alt12=3; | 1120 | int alt13=3; |
1026 | int LA12_0 = input.LA(1); | 1121 | int LA13_0 = input.LA(1); |
1027 | 1122 | ||
1028 | if ( (LA12_0=='\\') ) { | 1123 | if ( (LA13_0=='\\') ) { |
1029 | alt12=1; | 1124 | alt13=1; |
1030 | } | 1125 | } |
1031 | else if ( ((LA12_0>='\u0000' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { | 1126 | else if ( ((LA13_0>='\u0000' && LA13_0<='&')||(LA13_0>='(' && LA13_0<='[')||(LA13_0>=']' && LA13_0<='\uFFFF')) ) { |
1032 | alt12=2; | 1127 | alt13=2; |
1033 | } | 1128 | } |
1034 | 1129 | ||
1035 | 1130 | ||
1036 | switch (alt12) { | 1131 | switch (alt13) { |
1037 | case 1 : | 1132 | case 1 : |
1038 | // InternalCftLanguage.g:1324:54: '\\\\' . | 1133 | // InternalCftLanguage.g:1679:54: '\\\\' . |
1039 | { | 1134 | { |
1040 | match('\\'); | 1135 | match('\\'); |
1041 | matchAny(); | 1136 | matchAny(); |
@@ -1043,7 +1138,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1043 | } | 1138 | } |
1044 | break; | 1139 | break; |
1045 | case 2 : | 1140 | case 2 : |
1046 | // InternalCftLanguage.g:1324:61: ~ ( ( '\\\\' | '\\'' ) ) | 1141 | // InternalCftLanguage.g:1679:61: ~ ( ( '\\\\' | '\\'' ) ) |
1047 | { | 1142 | { |
1048 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | 1143 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { |
1049 | input.consume(); | 1144 | input.consume(); |
@@ -1059,7 +1154,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1059 | break; | 1154 | break; |
1060 | 1155 | ||
1061 | default : | 1156 | default : |
1062 | break loop12; | 1157 | break loop13; |
1063 | } | 1158 | } |
1064 | } while (true); | 1159 | } while (true); |
1065 | 1160 | ||
@@ -1086,37 +1181,37 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1086 | try { | 1181 | try { |
1087 | int _type = RULE_ML_COMMENT; | 1182 | int _type = RULE_ML_COMMENT; |
1088 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1183 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1089 | // InternalCftLanguage.g:1326:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | 1184 | // InternalCftLanguage.g:1681:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) |
1090 | // InternalCftLanguage.g:1326:19: '/*' ( options {greedy=false; } : . )* '*/' | 1185 | // InternalCftLanguage.g:1681:19: '/*' ( options {greedy=false; } : . )* '*/' |
1091 | { | 1186 | { |
1092 | match("/*"); | 1187 | match("/*"); |
1093 | 1188 | ||
1094 | // InternalCftLanguage.g:1326:24: ( options {greedy=false; } : . )* | 1189 | // InternalCftLanguage.g:1681:24: ( options {greedy=false; } : . )* |
1095 | loop14: | 1190 | loop15: |
1096 | do { | 1191 | do { |
1097 | int alt14=2; | 1192 | int alt15=2; |
1098 | int LA14_0 = input.LA(1); | 1193 | int LA15_0 = input.LA(1); |
1099 | 1194 | ||
1100 | if ( (LA14_0=='*') ) { | 1195 | if ( (LA15_0=='*') ) { |
1101 | int LA14_1 = input.LA(2); | 1196 | int LA15_1 = input.LA(2); |
1102 | 1197 | ||
1103 | if ( (LA14_1=='/') ) { | 1198 | if ( (LA15_1=='/') ) { |
1104 | alt14=2; | 1199 | alt15=2; |
1105 | } | 1200 | } |
1106 | else if ( ((LA14_1>='\u0000' && LA14_1<='.')||(LA14_1>='0' && LA14_1<='\uFFFF')) ) { | 1201 | else if ( ((LA15_1>='\u0000' && LA15_1<='.')||(LA15_1>='0' && LA15_1<='\uFFFF')) ) { |
1107 | alt14=1; | 1202 | alt15=1; |
1108 | } | 1203 | } |
1109 | 1204 | ||
1110 | 1205 | ||
1111 | } | 1206 | } |
1112 | else if ( ((LA14_0>='\u0000' && LA14_0<=')')||(LA14_0>='+' && LA14_0<='\uFFFF')) ) { | 1207 | else if ( ((LA15_0>='\u0000' && LA15_0<=')')||(LA15_0>='+' && LA15_0<='\uFFFF')) ) { |
1113 | alt14=1; | 1208 | alt15=1; |
1114 | } | 1209 | } |
1115 | 1210 | ||
1116 | 1211 | ||
1117 | switch (alt14) { | 1212 | switch (alt15) { |
1118 | case 1 : | 1213 | case 1 : |
1119 | // InternalCftLanguage.g:1326:52: . | 1214 | // InternalCftLanguage.g:1681:52: . |
1120 | { | 1215 | { |
1121 | matchAny(); | 1216 | matchAny(); |
1122 | 1217 | ||
@@ -1124,7 +1219,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1124 | break; | 1219 | break; |
1125 | 1220 | ||
1126 | default : | 1221 | default : |
1127 | break loop14; | 1222 | break loop15; |
1128 | } | 1223 | } |
1129 | } while (true); | 1224 | } while (true); |
1130 | 1225 | ||
@@ -1146,25 +1241,25 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1146 | try { | 1241 | try { |
1147 | int _type = RULE_SL_COMMENT; | 1242 | int _type = RULE_SL_COMMENT; |
1148 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1243 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1149 | // InternalCftLanguage.g:1328:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | 1244 | // InternalCftLanguage.g:1683:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) |
1150 | // InternalCftLanguage.g:1328:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | 1245 | // InternalCftLanguage.g:1683:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? |
1151 | { | 1246 | { |
1152 | match("//"); | 1247 | match("//"); |
1153 | 1248 | ||
1154 | // InternalCftLanguage.g:1328:24: (~ ( ( '\\n' | '\\r' ) ) )* | 1249 | // InternalCftLanguage.g:1683:24: (~ ( ( '\\n' | '\\r' ) ) )* |
1155 | loop15: | 1250 | loop16: |
1156 | do { | 1251 | do { |
1157 | int alt15=2; | 1252 | int alt16=2; |
1158 | int LA15_0 = input.LA(1); | 1253 | int LA16_0 = input.LA(1); |
1159 | 1254 | ||
1160 | if ( ((LA15_0>='\u0000' && LA15_0<='\t')||(LA15_0>='\u000B' && LA15_0<='\f')||(LA15_0>='\u000E' && LA15_0<='\uFFFF')) ) { | 1255 | if ( ((LA16_0>='\u0000' && LA16_0<='\t')||(LA16_0>='\u000B' && LA16_0<='\f')||(LA16_0>='\u000E' && LA16_0<='\uFFFF')) ) { |
1161 | alt15=1; | 1256 | alt16=1; |
1162 | } | 1257 | } |
1163 | 1258 | ||
1164 | 1259 | ||
1165 | switch (alt15) { | 1260 | switch (alt16) { |
1166 | case 1 : | 1261 | case 1 : |
1167 | // InternalCftLanguage.g:1328:24: ~ ( ( '\\n' | '\\r' ) ) | 1262 | // InternalCftLanguage.g:1683:24: ~ ( ( '\\n' | '\\r' ) ) |
1168 | { | 1263 | { |
1169 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { | 1264 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { |
1170 | input.consume(); | 1265 | input.consume(); |
@@ -1180,31 +1275,31 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1180 | break; | 1275 | break; |
1181 | 1276 | ||
1182 | default : | 1277 | default : |
1183 | break loop15; | 1278 | break loop16; |
1184 | } | 1279 | } |
1185 | } while (true); | 1280 | } while (true); |
1186 | 1281 | ||
1187 | // InternalCftLanguage.g:1328:40: ( ( '\\r' )? '\\n' )? | 1282 | // InternalCftLanguage.g:1683:40: ( ( '\\r' )? '\\n' )? |
1188 | int alt17=2; | 1283 | int alt18=2; |
1189 | int LA17_0 = input.LA(1); | 1284 | int LA18_0 = input.LA(1); |
1190 | 1285 | ||
1191 | if ( (LA17_0=='\n'||LA17_0=='\r') ) { | 1286 | if ( (LA18_0=='\n'||LA18_0=='\r') ) { |
1192 | alt17=1; | 1287 | alt18=1; |
1193 | } | 1288 | } |
1194 | switch (alt17) { | 1289 | switch (alt18) { |
1195 | case 1 : | 1290 | case 1 : |
1196 | // InternalCftLanguage.g:1328:41: ( '\\r' )? '\\n' | 1291 | // InternalCftLanguage.g:1683:41: ( '\\r' )? '\\n' |
1197 | { | 1292 | { |
1198 | // InternalCftLanguage.g:1328:41: ( '\\r' )? | 1293 | // InternalCftLanguage.g:1683:41: ( '\\r' )? |
1199 | int alt16=2; | 1294 | int alt17=2; |
1200 | int LA16_0 = input.LA(1); | 1295 | int LA17_0 = input.LA(1); |
1201 | 1296 | ||
1202 | if ( (LA16_0=='\r') ) { | 1297 | if ( (LA17_0=='\r') ) { |
1203 | alt16=1; | 1298 | alt17=1; |
1204 | } | 1299 | } |
1205 | switch (alt16) { | 1300 | switch (alt17) { |
1206 | case 1 : | 1301 | case 1 : |
1207 | // InternalCftLanguage.g:1328:41: '\\r' | 1302 | // InternalCftLanguage.g:1683:41: '\\r' |
1208 | { | 1303 | { |
1209 | match('\r'); | 1304 | match('\r'); |
1210 | 1305 | ||
@@ -1236,22 +1331,22 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1236 | try { | 1331 | try { |
1237 | int _type = RULE_WS; | 1332 | int _type = RULE_WS; |
1238 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1333 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1239 | // InternalCftLanguage.g:1330:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | 1334 | // InternalCftLanguage.g:1685:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) |
1240 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | 1335 | // InternalCftLanguage.g:1685:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ |
1241 | { | 1336 | { |
1242 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | 1337 | // InternalCftLanguage.g:1685:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ |
1243 | int cnt18=0; | 1338 | int cnt19=0; |
1244 | loop18: | 1339 | loop19: |
1245 | do { | 1340 | do { |
1246 | int alt18=2; | 1341 | int alt19=2; |
1247 | int LA18_0 = input.LA(1); | 1342 | int LA19_0 = input.LA(1); |
1248 | 1343 | ||
1249 | if ( ((LA18_0>='\t' && LA18_0<='\n')||LA18_0=='\r'||LA18_0==' ') ) { | 1344 | if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) { |
1250 | alt18=1; | 1345 | alt19=1; |
1251 | } | 1346 | } |
1252 | 1347 | ||
1253 | 1348 | ||
1254 | switch (alt18) { | 1349 | switch (alt19) { |
1255 | case 1 : | 1350 | case 1 : |
1256 | // InternalCftLanguage.g: | 1351 | // InternalCftLanguage.g: |
1257 | { | 1352 | { |
@@ -1269,12 +1364,12 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1269 | break; | 1364 | break; |
1270 | 1365 | ||
1271 | default : | 1366 | default : |
1272 | if ( cnt18 >= 1 ) break loop18; | 1367 | if ( cnt19 >= 1 ) break loop19; |
1273 | EarlyExitException eee = | 1368 | EarlyExitException eee = |
1274 | new EarlyExitException(18, input); | 1369 | new EarlyExitException(19, input); |
1275 | throw eee; | 1370 | throw eee; |
1276 | } | 1371 | } |
1277 | cnt18++; | 1372 | cnt19++; |
1278 | } while (true); | 1373 | } while (true); |
1279 | 1374 | ||
1280 | 1375 | ||
@@ -1293,8 +1388,8 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1293 | try { | 1388 | try { |
1294 | int _type = RULE_ANY_OTHER; | 1389 | int _type = RULE_ANY_OTHER; |
1295 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1390 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1296 | // InternalCftLanguage.g:1332:16: ( . ) | 1391 | // InternalCftLanguage.g:1687:16: ( . ) |
1297 | // InternalCftLanguage.g:1332:18: . | 1392 | // InternalCftLanguage.g:1687:18: . |
1298 | { | 1393 | { |
1299 | matchAny(); | 1394 | matchAny(); |
1300 | 1395 | ||
@@ -1309,243 +1404,264 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1309 | // $ANTLR end "RULE_ANY_OTHER" | 1404 | // $ANTLR end "RULE_ANY_OTHER" |
1310 | 1405 | ||
1311 | public void mTokens() throws RecognitionException { | 1406 | public void mTokens() throws RecognitionException { |
1312 | // InternalCftLanguage.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | 1407 | // InternalCftLanguage.g:1:8: ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | RULE_OF_INT | RULE_T_DOUBLE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) |
1313 | int alt19=34; | 1408 | int alt20=37; |
1314 | alt19 = dfa19.predict(input); | 1409 | alt20 = dfa20.predict(input); |
1315 | switch (alt19) { | 1410 | switch (alt20) { |
1316 | case 1 : | 1411 | case 1 : |
1317 | // InternalCftLanguage.g:1:10: T__12 | 1412 | // InternalCftLanguage.g:1:10: T__13 |
1318 | { | 1413 | { |
1319 | mT__12(); | 1414 | mT__13(); |
1320 | 1415 | ||
1321 | } | 1416 | } |
1322 | break; | 1417 | break; |
1323 | case 2 : | 1418 | case 2 : |
1324 | // InternalCftLanguage.g:1:16: T__13 | 1419 | // InternalCftLanguage.g:1:16: T__14 |
1325 | { | 1420 | { |
1326 | mT__13(); | 1421 | mT__14(); |
1327 | 1422 | ||
1328 | } | 1423 | } |
1329 | break; | 1424 | break; |
1330 | case 3 : | 1425 | case 3 : |
1331 | // InternalCftLanguage.g:1:22: T__14 | 1426 | // InternalCftLanguage.g:1:22: T__15 |
1332 | { | 1427 | { |
1333 | mT__14(); | 1428 | mT__15(); |
1334 | 1429 | ||
1335 | } | 1430 | } |
1336 | break; | 1431 | break; |
1337 | case 4 : | 1432 | case 4 : |
1338 | // InternalCftLanguage.g:1:28: T__15 | 1433 | // InternalCftLanguage.g:1:28: T__16 |
1339 | { | 1434 | { |
1340 | mT__15(); | 1435 | mT__16(); |
1341 | 1436 | ||
1342 | } | 1437 | } |
1343 | break; | 1438 | break; |
1344 | case 5 : | 1439 | case 5 : |
1345 | // InternalCftLanguage.g:1:34: T__16 | 1440 | // InternalCftLanguage.g:1:34: T__17 |
1346 | { | 1441 | { |
1347 | mT__16(); | 1442 | mT__17(); |
1348 | 1443 | ||
1349 | } | 1444 | } |
1350 | break; | 1445 | break; |
1351 | case 6 : | 1446 | case 6 : |
1352 | // InternalCftLanguage.g:1:40: T__17 | 1447 | // InternalCftLanguage.g:1:40: T__18 |
1353 | { | 1448 | { |
1354 | mT__17(); | 1449 | mT__18(); |
1355 | 1450 | ||
1356 | } | 1451 | } |
1357 | break; | 1452 | break; |
1358 | case 7 : | 1453 | case 7 : |
1359 | // InternalCftLanguage.g:1:46: T__18 | 1454 | // InternalCftLanguage.g:1:46: T__19 |
1360 | { | 1455 | { |
1361 | mT__18(); | 1456 | mT__19(); |
1362 | 1457 | ||
1363 | } | 1458 | } |
1364 | break; | 1459 | break; |
1365 | case 8 : | 1460 | case 8 : |
1366 | // InternalCftLanguage.g:1:52: T__19 | 1461 | // InternalCftLanguage.g:1:52: T__20 |
1367 | { | 1462 | { |
1368 | mT__19(); | 1463 | mT__20(); |
1369 | 1464 | ||
1370 | } | 1465 | } |
1371 | break; | 1466 | break; |
1372 | case 9 : | 1467 | case 9 : |
1373 | // InternalCftLanguage.g:1:58: T__20 | 1468 | // InternalCftLanguage.g:1:58: T__21 |
1374 | { | 1469 | { |
1375 | mT__20(); | 1470 | mT__21(); |
1376 | 1471 | ||
1377 | } | 1472 | } |
1378 | break; | 1473 | break; |
1379 | case 10 : | 1474 | case 10 : |
1380 | // InternalCftLanguage.g:1:64: T__21 | 1475 | // InternalCftLanguage.g:1:64: T__22 |
1381 | { | 1476 | { |
1382 | mT__21(); | 1477 | mT__22(); |
1383 | 1478 | ||
1384 | } | 1479 | } |
1385 | break; | 1480 | break; |
1386 | case 11 : | 1481 | case 11 : |
1387 | // InternalCftLanguage.g:1:70: T__22 | 1482 | // InternalCftLanguage.g:1:70: T__23 |
1388 | { | 1483 | { |
1389 | mT__22(); | 1484 | mT__23(); |
1390 | 1485 | ||
1391 | } | 1486 | } |
1392 | break; | 1487 | break; |
1393 | case 12 : | 1488 | case 12 : |
1394 | // InternalCftLanguage.g:1:76: T__23 | 1489 | // InternalCftLanguage.g:1:76: T__24 |
1395 | { | 1490 | { |
1396 | mT__23(); | 1491 | mT__24(); |
1397 | 1492 | ||
1398 | } | 1493 | } |
1399 | break; | 1494 | break; |
1400 | case 13 : | 1495 | case 13 : |
1401 | // InternalCftLanguage.g:1:82: T__24 | 1496 | // InternalCftLanguage.g:1:82: T__25 |
1402 | { | 1497 | { |
1403 | mT__24(); | 1498 | mT__25(); |
1404 | 1499 | ||
1405 | } | 1500 | } |
1406 | break; | 1501 | break; |
1407 | case 14 : | 1502 | case 14 : |
1408 | // InternalCftLanguage.g:1:88: T__25 | 1503 | // InternalCftLanguage.g:1:88: T__26 |
1409 | { | 1504 | { |
1410 | mT__25(); | 1505 | mT__26(); |
1411 | 1506 | ||
1412 | } | 1507 | } |
1413 | break; | 1508 | break; |
1414 | case 15 : | 1509 | case 15 : |
1415 | // InternalCftLanguage.g:1:94: T__26 | 1510 | // InternalCftLanguage.g:1:94: T__27 |
1416 | { | 1511 | { |
1417 | mT__26(); | 1512 | mT__27(); |
1418 | 1513 | ||
1419 | } | 1514 | } |
1420 | break; | 1515 | break; |
1421 | case 16 : | 1516 | case 16 : |
1422 | // InternalCftLanguage.g:1:100: T__27 | 1517 | // InternalCftLanguage.g:1:100: T__28 |
1423 | { | 1518 | { |
1424 | mT__27(); | 1519 | mT__28(); |
1425 | 1520 | ||
1426 | } | 1521 | } |
1427 | break; | 1522 | break; |
1428 | case 17 : | 1523 | case 17 : |
1429 | // InternalCftLanguage.g:1:106: T__28 | 1524 | // InternalCftLanguage.g:1:106: T__29 |
1430 | { | 1525 | { |
1431 | mT__28(); | 1526 | mT__29(); |
1432 | 1527 | ||
1433 | } | 1528 | } |
1434 | break; | 1529 | break; |
1435 | case 18 : | 1530 | case 18 : |
1436 | // InternalCftLanguage.g:1:112: T__29 | 1531 | // InternalCftLanguage.g:1:112: T__30 |
1437 | { | 1532 | { |
1438 | mT__29(); | 1533 | mT__30(); |
1439 | 1534 | ||
1440 | } | 1535 | } |
1441 | break; | 1536 | break; |
1442 | case 19 : | 1537 | case 19 : |
1443 | // InternalCftLanguage.g:1:118: T__30 | 1538 | // InternalCftLanguage.g:1:118: T__31 |
1444 | { | 1539 | { |
1445 | mT__30(); | 1540 | mT__31(); |
1446 | 1541 | ||
1447 | } | 1542 | } |
1448 | break; | 1543 | break; |
1449 | case 20 : | 1544 | case 20 : |
1450 | // InternalCftLanguage.g:1:124: T__31 | 1545 | // InternalCftLanguage.g:1:124: T__32 |
1451 | { | 1546 | { |
1452 | mT__31(); | 1547 | mT__32(); |
1453 | 1548 | ||
1454 | } | 1549 | } |
1455 | break; | 1550 | break; |
1456 | case 21 : | 1551 | case 21 : |
1457 | // InternalCftLanguage.g:1:130: T__32 | 1552 | // InternalCftLanguage.g:1:130: T__33 |
1458 | { | 1553 | { |
1459 | mT__32(); | 1554 | mT__33(); |
1460 | 1555 | ||
1461 | } | 1556 | } |
1462 | break; | 1557 | break; |
1463 | case 22 : | 1558 | case 22 : |
1464 | // InternalCftLanguage.g:1:136: T__33 | 1559 | // InternalCftLanguage.g:1:136: T__34 |
1465 | { | 1560 | { |
1466 | mT__33(); | 1561 | mT__34(); |
1467 | 1562 | ||
1468 | } | 1563 | } |
1469 | break; | 1564 | break; |
1470 | case 23 : | 1565 | case 23 : |
1471 | // InternalCftLanguage.g:1:142: T__34 | 1566 | // InternalCftLanguage.g:1:142: T__35 |
1472 | { | 1567 | { |
1473 | mT__34(); | 1568 | mT__35(); |
1474 | 1569 | ||
1475 | } | 1570 | } |
1476 | break; | 1571 | break; |
1477 | case 24 : | 1572 | case 24 : |
1478 | // InternalCftLanguage.g:1:148: T__35 | 1573 | // InternalCftLanguage.g:1:148: T__36 |
1479 | { | 1574 | { |
1480 | mT__35(); | 1575 | mT__36(); |
1481 | 1576 | ||
1482 | } | 1577 | } |
1483 | break; | 1578 | break; |
1484 | case 25 : | 1579 | case 25 : |
1485 | // InternalCftLanguage.g:1:154: T__36 | 1580 | // InternalCftLanguage.g:1:154: T__37 |
1486 | { | 1581 | { |
1487 | mT__36(); | 1582 | mT__37(); |
1488 | 1583 | ||
1489 | } | 1584 | } |
1490 | break; | 1585 | break; |
1491 | case 26 : | 1586 | case 26 : |
1492 | // InternalCftLanguage.g:1:160: T__37 | 1587 | // InternalCftLanguage.g:1:160: T__38 |
1493 | { | 1588 | { |
1494 | mT__37(); | 1589 | mT__38(); |
1495 | 1590 | ||
1496 | } | 1591 | } |
1497 | break; | 1592 | break; |
1498 | case 27 : | 1593 | case 27 : |
1499 | // InternalCftLanguage.g:1:166: RULE_DOULBE | 1594 | // InternalCftLanguage.g:1:166: T__39 |
1500 | { | 1595 | { |
1501 | mRULE_DOULBE(); | 1596 | mT__39(); |
1502 | 1597 | ||
1503 | } | 1598 | } |
1504 | break; | 1599 | break; |
1505 | case 28 : | 1600 | case 28 : |
1506 | // InternalCftLanguage.g:1:178: RULE_ID | 1601 | // InternalCftLanguage.g:1:172: T__40 |
1507 | { | 1602 | { |
1508 | mRULE_ID(); | 1603 | mT__40(); |
1509 | 1604 | ||
1510 | } | 1605 | } |
1511 | break; | 1606 | break; |
1512 | case 29 : | 1607 | case 29 : |
1513 | // InternalCftLanguage.g:1:186: RULE_INT | 1608 | // InternalCftLanguage.g:1:178: RULE_OF_INT |
1514 | { | 1609 | { |
1515 | mRULE_INT(); | 1610 | mRULE_OF_INT(); |
1516 | 1611 | ||
1517 | } | 1612 | } |
1518 | break; | 1613 | break; |
1519 | case 30 : | 1614 | case 30 : |
1520 | // InternalCftLanguage.g:1:195: RULE_STRING | 1615 | // InternalCftLanguage.g:1:190: RULE_T_DOUBLE |
1521 | { | 1616 | { |
1522 | mRULE_STRING(); | 1617 | mRULE_T_DOUBLE(); |
1523 | 1618 | ||
1524 | } | 1619 | } |
1525 | break; | 1620 | break; |
1526 | case 31 : | 1621 | case 31 : |
1527 | // InternalCftLanguage.g:1:207: RULE_ML_COMMENT | 1622 | // InternalCftLanguage.g:1:204: RULE_ID |
1528 | { | 1623 | { |
1529 | mRULE_ML_COMMENT(); | 1624 | mRULE_ID(); |
1530 | 1625 | ||
1531 | } | 1626 | } |
1532 | break; | 1627 | break; |
1533 | case 32 : | 1628 | case 32 : |
1534 | // InternalCftLanguage.g:1:223: RULE_SL_COMMENT | 1629 | // InternalCftLanguage.g:1:212: RULE_INT |
1535 | { | 1630 | { |
1536 | mRULE_SL_COMMENT(); | 1631 | mRULE_INT(); |
1537 | 1632 | ||
1538 | } | 1633 | } |
1539 | break; | 1634 | break; |
1540 | case 33 : | 1635 | case 33 : |
1541 | // InternalCftLanguage.g:1:239: RULE_WS | 1636 | // InternalCftLanguage.g:1:221: RULE_STRING |
1542 | { | 1637 | { |
1543 | mRULE_WS(); | 1638 | mRULE_STRING(); |
1544 | 1639 | ||
1545 | } | 1640 | } |
1546 | break; | 1641 | break; |
1547 | case 34 : | 1642 | case 34 : |
1548 | // InternalCftLanguage.g:1:247: RULE_ANY_OTHER | 1643 | // InternalCftLanguage.g:1:233: RULE_ML_COMMENT |
1644 | { | ||
1645 | mRULE_ML_COMMENT(); | ||
1646 | |||
1647 | } | ||
1648 | break; | ||
1649 | case 35 : | ||
1650 | // InternalCftLanguage.g:1:249: RULE_SL_COMMENT | ||
1651 | { | ||
1652 | mRULE_SL_COMMENT(); | ||
1653 | |||
1654 | } | ||
1655 | break; | ||
1656 | case 36 : | ||
1657 | // InternalCftLanguage.g:1:265: RULE_WS | ||
1658 | { | ||
1659 | mRULE_WS(); | ||
1660 | |||
1661 | } | ||
1662 | break; | ||
1663 | case 37 : | ||
1664 | // InternalCftLanguage.g:1:273: RULE_ANY_OTHER | ||
1549 | { | 1665 | { |
1550 | mRULE_ANY_OTHER(); | 1666 | mRULE_ANY_OTHER(); |
1551 | 1667 | ||
@@ -1557,21 +1673,21 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1557 | } | 1673 | } |
1558 | 1674 | ||
1559 | 1675 | ||
1560 | protected DFA7 dfa7 = new DFA7(this); | 1676 | protected DFA8 dfa8 = new DFA8(this); |
1561 | protected DFA19 dfa19 = new DFA19(this); | 1677 | protected DFA20 dfa20 = new DFA20(this); |
1562 | static final String DFA7_eotS = | 1678 | static final String DFA8_eotS = |
1563 | "\3\uffff\1\4\1\uffff"; | 1679 | "\3\uffff\1\4\1\uffff"; |
1564 | static final String DFA7_eofS = | 1680 | static final String DFA8_eofS = |
1565 | "\5\uffff"; | 1681 | "\5\uffff"; |
1566 | static final String DFA7_minS = | 1682 | static final String DFA8_minS = |
1567 | "\1\56\1\60\1\uffff\1\60\1\uffff"; | 1683 | "\1\56\1\60\1\uffff\1\60\1\uffff"; |
1568 | static final String DFA7_maxS = | 1684 | static final String DFA8_maxS = |
1569 | "\1\145\1\71\1\uffff\1\145\1\uffff"; | 1685 | "\1\145\1\71\1\uffff\1\145\1\uffff"; |
1570 | static final String DFA7_acceptS = | 1686 | static final String DFA8_acceptS = |
1571 | "\2\uffff\1\2\1\uffff\1\1"; | 1687 | "\2\uffff\1\2\1\uffff\1\1"; |
1572 | static final String DFA7_specialS = | 1688 | static final String DFA8_specialS = |
1573 | "\5\uffff}>"; | 1689 | "\5\uffff}>"; |
1574 | static final String[] DFA7_transitionS = { | 1690 | static final String[] DFA8_transitionS = { |
1575 | "\1\1\26\uffff\1\2\37\uffff\1\2", | 1691 | "\1\1\26\uffff\1\2\37\uffff\1\2", |
1576 | "\12\3", | 1692 | "\12\3", |
1577 | "", | 1693 | "", |
@@ -1579,101 +1695,103 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1579 | "" | 1695 | "" |
1580 | }; | 1696 | }; |
1581 | 1697 | ||
1582 | static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS); | 1698 | static final short[] DFA8_eot = DFA.unpackEncodedString(DFA8_eotS); |
1583 | static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS); | 1699 | static final short[] DFA8_eof = DFA.unpackEncodedString(DFA8_eofS); |
1584 | static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS); | 1700 | static final char[] DFA8_min = DFA.unpackEncodedStringToUnsignedChars(DFA8_minS); |
1585 | static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS); | 1701 | static final char[] DFA8_max = DFA.unpackEncodedStringToUnsignedChars(DFA8_maxS); |
1586 | static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS); | 1702 | static final short[] DFA8_accept = DFA.unpackEncodedString(DFA8_acceptS); |
1587 | static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS); | 1703 | static final short[] DFA8_special = DFA.unpackEncodedString(DFA8_specialS); |
1588 | static final short[][] DFA7_transition; | 1704 | static final short[][] DFA8_transition; |
1589 | 1705 | ||
1590 | static { | 1706 | static { |
1591 | int numStates = DFA7_transitionS.length; | 1707 | int numStates = DFA8_transitionS.length; |
1592 | DFA7_transition = new short[numStates][]; | 1708 | DFA8_transition = new short[numStates][]; |
1593 | for (int i=0; i<numStates; i++) { | 1709 | for (int i=0; i<numStates; i++) { |
1594 | DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]); | 1710 | DFA8_transition[i] = DFA.unpackEncodedString(DFA8_transitionS[i]); |
1595 | } | 1711 | } |
1596 | } | 1712 | } |
1597 | 1713 | ||
1598 | class DFA7 extends DFA { | 1714 | class DFA8 extends DFA { |
1599 | 1715 | ||
1600 | public DFA7(BaseRecognizer recognizer) { | 1716 | public DFA8(BaseRecognizer recognizer) { |
1601 | this.recognizer = recognizer; | 1717 | this.recognizer = recognizer; |
1602 | this.decisionNumber = 7; | 1718 | this.decisionNumber = 8; |
1603 | this.eot = DFA7_eot; | 1719 | this.eot = DFA8_eot; |
1604 | this.eof = DFA7_eof; | 1720 | this.eof = DFA8_eof; |
1605 | this.min = DFA7_min; | 1721 | this.min = DFA8_min; |
1606 | this.max = DFA7_max; | 1722 | this.max = DFA8_max; |
1607 | this.accept = DFA7_accept; | 1723 | this.accept = DFA8_accept; |
1608 | this.special = DFA7_special; | 1724 | this.special = DFA8_special; |
1609 | this.transition = DFA7_transition; | 1725 | this.transition = DFA8_transition; |
1610 | } | 1726 | } |
1611 | public String getDescription() { | 1727 | public String getDescription() { |
1612 | return "1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; | 1728 | return "1673:29: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; |
1613 | } | 1729 | } |
1614 | } | 1730 | } |
1615 | static final String DFA19_eotS = | 1731 | static final String DFA20_eotS = |
1616 | "\1\uffff\1\36\1\uffff\2\36\1\uffff\1\36\1\uffff\1\34\1\36\1\53\3\36\3\uffff\2\34\2\uffff\1\72\1\34\1\uffff\3\34\2\uffff\1\36\2\uffff\1\36\1\101\1\36\1\uffff\1\36\1\104\2\uffff\2\36\2\uffff\1\36\1\110\3\36\10\uffff\1\72\5\uffff\2\36\1\uffff\1\116\1\117\1\uffff\2\36\1\122\1\uffff\5\36\2\uffff\2\36\1\uffff\13\36\1\145\1\146\1\147\3\36\1\153\3\uffff\2\36\1\156\1\uffff\1\36\1\160\1\uffff\1\36\1\uffff\4\36\1\166\1\uffff"; | 1732 | "\1\uffff\1\36\1\uffff\2\37\1\uffff\1\37\1\uffff\1\34\1\53\4\37\3\uffff\2\34\2\uffff\1\72\1\34\1\uffff\3\34\2\uffff\1\37\3\uffff\1\37\1\103\1\37\1\uffff\1\37\1\106\1\110\4\uffff\3\37\1\114\3\37\10\uffff\1\72\5\uffff\2\37\1\uffff\1\122\1\123\1\uffff\1\124\1\uffff\2\37\1\127\1\uffff\5\37\3\uffff\2\37\1\uffff\13\37\1\152\1\153\1\154\3\37\1\160\3\uffff\2\37\1\163\1\uffff\1\37\1\165\1\uffff\1\37\1\uffff\4\37\1\173\1\uffff"; |
1617 | static final String DFA19_eofS = | 1733 | static final String DFA20_eofS = |
1618 | "\167\uffff"; | 1734 | "\174\uffff"; |
1619 | static final String DFA19_minS = | 1735 | static final String DFA20_minS = |
1620 | "\1\0\1\141\1\uffff\1\155\1\146\1\uffff\1\162\1\uffff\1\135\1\141\1\76\1\156\1\157\1\141\3\uffff\2\75\2\uffff\1\56\1\101\1\uffff\2\0\1\52\2\uffff\1\143\2\uffff\1\160\1\60\1\164\1\uffff\1\164\1\60\2\uffff\1\155\1\157\2\uffff\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\157\1\uffff\2\60\1\uffff\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\60\1\157\1\145\1\147\1\60\3\uffff\1\162\1\154\1\60\1\uffff\1\155\1\60\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\60\1\uffff"; | 1736 | "\1\0\1\60\1\uffff\1\155\1\146\1\uffff\1\146\1\uffff\1\135\1\76\1\141\1\156\1\157\1\141\3\uffff\2\75\2\uffff\1\56\1\101\1\uffff\2\0\1\52\2\uffff\1\143\3\uffff\1\160\1\60\1\164\1\uffff\1\164\2\60\4\uffff\1\155\1\157\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\157\1\uffff\2\60\1\uffff\1\60\1\uffff\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\162\3\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\60\1\157\1\145\1\147\1\60\3\uffff\1\162\1\154\1\60\1\uffff\1\155\1\60\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\60\1\uffff"; |
1621 | static final String DFA19_maxS = | 1737 | static final String DFA20_maxS = |
1622 | "\1\uffff\1\141\1\uffff\1\156\1\146\1\uffff\1\165\1\uffff\1\135\1\157\1\76\1\163\1\162\1\141\3\uffff\2\75\2\uffff\1\145\1\172\1\uffff\2\uffff\1\57\2\uffff\1\143\2\uffff\1\160\1\172\1\164\1\uffff\1\164\1\172\2\uffff\1\155\1\157\2\uffff\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\157\1\uffff\2\172\1\uffff\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\172\1\157\1\145\1\147\1\172\3\uffff\1\162\1\154\1\172\1\uffff\1\155\1\172\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\172\1\uffff"; | 1738 | "\1\uffff\1\172\1\uffff\1\156\1\146\1\uffff\1\165\1\uffff\1\135\1\76\1\157\1\163\1\162\1\141\3\uffff\2\75\2\uffff\1\145\1\172\1\uffff\2\uffff\1\57\2\uffff\1\143\3\uffff\1\160\1\172\1\164\1\uffff\1\164\2\172\4\uffff\1\155\1\157\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\157\1\uffff\2\172\1\uffff\1\172\1\uffff\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\162\3\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\172\1\157\1\145\1\147\1\172\3\uffff\1\162\1\154\1\172\1\uffff\1\155\1\172\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\172\1\uffff"; |
1623 | static final String DFA19_acceptS = | 1739 | static final String DFA20_acceptS = |
1624 | "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\6\uffff\1\21\1\22\1\23\2\uffff\1\30\1\32\2\uffff\1\34\3\uffff\1\41\1\42\1\uffff\1\34\1\2\3\uffff\1\5\2\uffff\1\10\1\11\2\uffff\1\31\1\13\5\uffff\1\21\1\22\1\23\1\26\1\27\1\30\1\32\1\33\1\uffff\1\35\1\36\1\37\1\40\1\41\2\uffff\1\6\2\uffff\1\15\3\uffff\1\25\5\uffff\1\4\1\7\2\uffff\1\14\22\uffff\1\3\1\12\1\24\3\uffff\1\1\2\uffff\1\20\1\uffff\1\17\5\uffff\1\16"; | 1740 | "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\6\uffff\1\23\1\24\1\25\2\uffff\1\32\1\34\2\uffff\1\37\3\uffff\1\44\1\45\1\uffff\1\12\1\37\1\2\3\uffff\1\5\3\uffff\1\10\1\11\1\33\1\13\7\uffff\1\23\1\24\1\25\1\30\1\31\1\32\1\34\1\40\1\uffff\1\36\1\41\1\42\1\43\1\44\2\uffff\1\6\2\uffff\1\16\1\uffff\1\17\3\uffff\1\27\5\uffff\1\4\1\7\1\35\2\uffff\1\15\22\uffff\1\3\1\14\1\26\3\uffff\1\1\2\uffff\1\22\1\uffff\1\21\5\uffff\1\20"; |
1625 | static final String DFA19_specialS = | 1741 | static final String DFA20_specialS = |
1626 | "\1\0\27\uffff\1\2\1\1\135\uffff}>"; | 1742 | "\1\1\27\uffff\1\2\1\0\142\uffff}>"; |
1627 | static final String[] DFA19_transitionS = { | 1743 | static final String[] DFA20_transitionS = { |
1628 | "\11\34\2\33\2\34\1\33\22\34\1\33\1\34\1\30\4\34\1\31\1\16\1\20\1\24\1\21\1\17\1\34\1\23\1\32\12\25\1\22\1\2\1\34\1\12\3\34\32\27\1\10\2\34\1\26\1\27\1\34\1\13\1\27\1\4\5\27\1\3\2\27\1\11\1\15\1\27\1\6\1\1\3\27\1\14\6\27\1\5\1\34\1\7\uff82\34", | 1744 | "\11\34\2\33\2\34\1\33\22\34\1\33\1\34\1\30\4\34\1\31\1\16\1\20\1\24\1\21\1\17\1\34\1\23\1\32\12\25\1\22\1\2\1\34\1\11\3\34\32\27\1\10\2\34\1\26\1\27\1\34\1\13\1\27\1\4\5\27\1\3\2\27\1\12\1\15\1\27\1\6\1\1\3\27\1\14\6\27\1\5\1\34\1\7\uff82\34", |
1629 | "\1\35", | 1745 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\1\35\31\37", |
1630 | "", | 1746 | "", |
1631 | "\1\40\1\41", | 1747 | "\1\41\1\42", |
1632 | "\1\42", | 1748 | "\1\43", |
1633 | "", | 1749 | "", |
1634 | "\1\45\2\uffff\1\44", | 1750 | "\1\47\13\uffff\1\46\2\uffff\1\45", |
1635 | "", | 1751 | "", |
1636 | "\1\47", | 1752 | "\1\51", |
1637 | "\1\50\15\uffff\1\51", | ||
1638 | "\1\52", | 1753 | "\1\52", |
1639 | "\1\54\4\uffff\1\55", | 1754 | "\1\54\15\uffff\1\55", |
1640 | "\1\57\2\uffff\1\56", | 1755 | "\1\56\4\uffff\1\57", |
1641 | "\1\60", | 1756 | "\1\61\2\uffff\1\60", |
1757 | "\1\62", | ||
1758 | "", | ||
1642 | "", | 1759 | "", |
1643 | "", | 1760 | "", |
1761 | "\1\66", | ||
1762 | "\1\67", | ||
1644 | "", | 1763 | "", |
1645 | "\1\64", | ||
1646 | "\1\65", | ||
1647 | "", | 1764 | "", |
1765 | "\1\74\1\uffff\12\73\13\uffff\1\74\37\uffff\1\74", | ||
1766 | "\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1648 | "", | 1767 | "", |
1649 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | 1768 | "\0\75", |
1650 | "\32\36\4\uffff\1\36\1\uffff\32\36", | 1769 | "\0\75", |
1770 | "\1\76\4\uffff\1\77", | ||
1651 | "", | 1771 | "", |
1652 | "\0\73", | ||
1653 | "\0\73", | ||
1654 | "\1\74\4\uffff\1\75", | ||
1655 | "", | 1772 | "", |
1773 | "\1\101", | ||
1656 | "", | 1774 | "", |
1657 | "\1\77", | ||
1658 | "", | 1775 | "", |
1659 | "", | 1776 | "", |
1660 | "\1\100", | ||
1661 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1662 | "\1\102", | 1777 | "\1\102", |
1778 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1779 | "\1\104", | ||
1663 | "", | 1780 | "", |
1664 | "\1\103", | 1781 | "\1\105", |
1665 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1782 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1783 | "\12\107\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1666 | "", | 1784 | "", |
1667 | "", | 1785 | "", |
1668 | "\1\105", | ||
1669 | "\1\106", | ||
1670 | "", | 1786 | "", |
1671 | "", | 1787 | "", |
1672 | "\1\107", | ||
1673 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1674 | "\1\111", | 1788 | "\1\111", |
1675 | "\1\112", | 1789 | "\1\112", |
1676 | "\1\113", | 1790 | "\1\113", |
1791 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1792 | "\1\115", | ||
1793 | "\1\116", | ||
1794 | "\1\117", | ||
1677 | "", | 1795 | "", |
1678 | "", | 1796 | "", |
1679 | "", | 1797 | "", |
@@ -1682,183 +1800,186 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1682 | "", | 1800 | "", |
1683 | "", | 1801 | "", |
1684 | "", | 1802 | "", |
1685 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | 1803 | "\1\74\1\uffff\12\73\13\uffff\1\74\37\uffff\1\74", |
1686 | "", | ||
1687 | "", | ||
1688 | "", | 1804 | "", |
1689 | "", | 1805 | "", |
1690 | "", | 1806 | "", |
1691 | "\1\114", | ||
1692 | "\1\115", | ||
1693 | "", | 1807 | "", |
1694 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1695 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1696 | "", | 1808 | "", |
1697 | "\1\120", | 1809 | "\1\120", |
1698 | "\1\121", | 1810 | "\1\121", |
1699 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1700 | "", | 1811 | "", |
1701 | "\1\123", | 1812 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1702 | "\1\124", | 1813 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1814 | "", | ||
1815 | "\12\107\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1816 | "", | ||
1703 | "\1\125", | 1817 | "\1\125", |
1704 | "\1\126", | 1818 | "\1\126", |
1705 | "\1\127", | 1819 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1706 | "", | ||
1707 | "", | 1820 | "", |
1708 | "\1\130", | 1821 | "\1\130", |
1709 | "\1\131", | 1822 | "\1\131", |
1710 | "", | ||
1711 | "\1\132", | 1823 | "\1\132", |
1712 | "\1\133", | 1824 | "\1\133", |
1713 | "\1\134", | 1825 | "\1\134", |
1826 | "", | ||
1827 | "", | ||
1828 | "", | ||
1714 | "\1\135", | 1829 | "\1\135", |
1715 | "\1\136", | 1830 | "\1\136", |
1831 | "", | ||
1716 | "\1\137", | 1832 | "\1\137", |
1717 | "\1\140", | 1833 | "\1\140", |
1718 | "\1\141", | 1834 | "\1\141", |
1719 | "\1\142", | 1835 | "\1\142", |
1720 | "\1\143", | 1836 | "\1\143", |
1721 | "\1\144", | 1837 | "\1\144", |
1722 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1838 | "\1\145", |
1723 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1839 | "\1\146", |
1724 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1840 | "\1\147", |
1725 | "\1\150", | 1841 | "\1\150", |
1726 | "\1\151", | 1842 | "\1\151", |
1727 | "\1\152", | 1843 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1728 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1844 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1729 | "", | 1845 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1730 | "", | ||
1731 | "", | ||
1732 | "\1\154", | ||
1733 | "\1\155", | 1846 | "\1\155", |
1734 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1847 | "\1\156", |
1735 | "", | ||
1736 | "\1\157", | 1848 | "\1\157", |
1737 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1849 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1738 | "", | 1850 | "", |
1739 | "\1\161", | ||
1740 | "", | 1851 | "", |
1852 | "", | ||
1853 | "\1\161", | ||
1741 | "\1\162", | 1854 | "\1\162", |
1742 | "\1\163", | 1855 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1856 | "", | ||
1743 | "\1\164", | 1857 | "\1\164", |
1744 | "\1\165", | 1858 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1745 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1859 | "", |
1860 | "\1\166", | ||
1861 | "", | ||
1862 | "\1\167", | ||
1863 | "\1\170", | ||
1864 | "\1\171", | ||
1865 | "\1\172", | ||
1866 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1746 | "" | 1867 | "" |
1747 | }; | 1868 | }; |
1748 | 1869 | ||
1749 | static final short[] DFA19_eot = DFA.unpackEncodedString(DFA19_eotS); | 1870 | static final short[] DFA20_eot = DFA.unpackEncodedString(DFA20_eotS); |
1750 | static final short[] DFA19_eof = DFA.unpackEncodedString(DFA19_eofS); | 1871 | static final short[] DFA20_eof = DFA.unpackEncodedString(DFA20_eofS); |
1751 | static final char[] DFA19_min = DFA.unpackEncodedStringToUnsignedChars(DFA19_minS); | 1872 | static final char[] DFA20_min = DFA.unpackEncodedStringToUnsignedChars(DFA20_minS); |
1752 | static final char[] DFA19_max = DFA.unpackEncodedStringToUnsignedChars(DFA19_maxS); | 1873 | static final char[] DFA20_max = DFA.unpackEncodedStringToUnsignedChars(DFA20_maxS); |
1753 | static final short[] DFA19_accept = DFA.unpackEncodedString(DFA19_acceptS); | 1874 | static final short[] DFA20_accept = DFA.unpackEncodedString(DFA20_acceptS); |
1754 | static final short[] DFA19_special = DFA.unpackEncodedString(DFA19_specialS); | 1875 | static final short[] DFA20_special = DFA.unpackEncodedString(DFA20_specialS); |
1755 | static final short[][] DFA19_transition; | 1876 | static final short[][] DFA20_transition; |
1756 | 1877 | ||
1757 | static { | 1878 | static { |
1758 | int numStates = DFA19_transitionS.length; | 1879 | int numStates = DFA20_transitionS.length; |
1759 | DFA19_transition = new short[numStates][]; | 1880 | DFA20_transition = new short[numStates][]; |
1760 | for (int i=0; i<numStates; i++) { | 1881 | for (int i=0; i<numStates; i++) { |
1761 | DFA19_transition[i] = DFA.unpackEncodedString(DFA19_transitionS[i]); | 1882 | DFA20_transition[i] = DFA.unpackEncodedString(DFA20_transitionS[i]); |
1762 | } | 1883 | } |
1763 | } | 1884 | } |
1764 | 1885 | ||
1765 | class DFA19 extends DFA { | 1886 | class DFA20 extends DFA { |
1766 | 1887 | ||
1767 | public DFA19(BaseRecognizer recognizer) { | 1888 | public DFA20(BaseRecognizer recognizer) { |
1768 | this.recognizer = recognizer; | 1889 | this.recognizer = recognizer; |
1769 | this.decisionNumber = 19; | 1890 | this.decisionNumber = 20; |
1770 | this.eot = DFA19_eot; | 1891 | this.eot = DFA20_eot; |
1771 | this.eof = DFA19_eof; | 1892 | this.eof = DFA20_eof; |
1772 | this.min = DFA19_min; | 1893 | this.min = DFA20_min; |
1773 | this.max = DFA19_max; | 1894 | this.max = DFA20_max; |
1774 | this.accept = DFA19_accept; | 1895 | this.accept = DFA20_accept; |
1775 | this.special = DFA19_special; | 1896 | this.special = DFA20_special; |
1776 | this.transition = DFA19_transition; | 1897 | this.transition = DFA20_transition; |
1777 | } | 1898 | } |
1778 | public String getDescription() { | 1899 | public String getDescription() { |
1779 | return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | 1900 | return "1:1: Tokens : ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | RULE_OF_INT | RULE_T_DOUBLE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; |
1780 | } | 1901 | } |
1781 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | 1902 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
1782 | IntStream input = _input; | 1903 | IntStream input = _input; |
1783 | int _s = s; | 1904 | int _s = s; |
1784 | switch ( s ) { | 1905 | switch ( s ) { |
1785 | case 0 : | 1906 | case 0 : |
1786 | int LA19_0 = input.LA(1); | 1907 | int LA20_25 = input.LA(1); |
1787 | 1908 | ||
1788 | s = -1; | 1909 | s = -1; |
1789 | if ( (LA19_0=='p') ) {s = 1;} | 1910 | if ( ((LA20_25>='\u0000' && LA20_25<='\uFFFF')) ) {s = 61;} |
1790 | 1911 | ||
1791 | else if ( (LA19_0==';') ) {s = 2;} | 1912 | else s = 28; |
1792 | 1913 | ||
1793 | else if ( (LA19_0=='i') ) {s = 3;} | 1914 | if ( s>=0 ) return s; |
1915 | break; | ||
1916 | case 1 : | ||
1917 | int LA20_0 = input.LA(1); | ||
1794 | 1918 | ||
1795 | else if ( (LA19_0=='c') ) {s = 4;} | 1919 | s = -1; |
1920 | if ( (LA20_0=='p') ) {s = 1;} | ||
1796 | 1921 | ||
1797 | else if ( (LA19_0=='{') ) {s = 5;} | 1922 | else if ( (LA20_0==';') ) {s = 2;} |
1798 | 1923 | ||
1799 | else if ( (LA19_0=='o') ) {s = 6;} | 1924 | else if ( (LA20_0=='i') ) {s = 3;} |
1800 | 1925 | ||
1801 | else if ( (LA19_0=='}') ) {s = 7;} | 1926 | else if ( (LA20_0=='c') ) {s = 4;} |
1802 | 1927 | ||
1803 | else if ( (LA19_0=='[') ) {s = 8;} | 1928 | else if ( (LA20_0=='{') ) {s = 5;} |
1804 | 1929 | ||
1805 | else if ( (LA19_0=='l') ) {s = 9;} | 1930 | else if ( (LA20_0=='o') ) {s = 6;} |
1806 | 1931 | ||
1807 | else if ( (LA19_0=='=') ) {s = 10;} | 1932 | else if ( (LA20_0=='}') ) {s = 7;} |
1808 | 1933 | ||
1809 | else if ( (LA19_0=='a') ) {s = 11;} | 1934 | else if ( (LA20_0=='[') ) {s = 8;} |
1810 | 1935 | ||
1811 | else if ( (LA19_0=='t') ) {s = 12;} | 1936 | else if ( (LA20_0=='=') ) {s = 9;} |
1812 | 1937 | ||
1813 | else if ( (LA19_0=='m') ) {s = 13;} | 1938 | else if ( (LA20_0=='l') ) {s = 10;} |
1814 | 1939 | ||
1815 | else if ( (LA19_0=='(') ) {s = 14;} | 1940 | else if ( (LA20_0=='a') ) {s = 11;} |
1816 | 1941 | ||
1817 | else if ( (LA19_0==',') ) {s = 15;} | 1942 | else if ( (LA20_0=='t') ) {s = 12;} |
1818 | 1943 | ||
1819 | else if ( (LA19_0==')') ) {s = 16;} | 1944 | else if ( (LA20_0=='m') ) {s = 13;} |
1820 | 1945 | ||
1821 | else if ( (LA19_0=='+') ) {s = 17;} | 1946 | else if ( (LA20_0=='(') ) {s = 14;} |
1822 | 1947 | ||
1823 | else if ( (LA19_0==':') ) {s = 18;} | 1948 | else if ( (LA20_0==',') ) {s = 15;} |
1824 | 1949 | ||
1825 | else if ( (LA19_0=='.') ) {s = 19;} | 1950 | else if ( (LA20_0==')') ) {s = 16;} |
1826 | 1951 | ||
1827 | else if ( (LA19_0=='*') ) {s = 20;} | 1952 | else if ( (LA20_0=='+') ) {s = 17;} |
1828 | 1953 | ||
1829 | else if ( ((LA19_0>='0' && LA19_0<='9')) ) {s = 21;} | 1954 | else if ( (LA20_0==':') ) {s = 18;} |
1830 | 1955 | ||
1831 | else if ( (LA19_0=='^') ) {s = 22;} | 1956 | else if ( (LA20_0=='.') ) {s = 19;} |
1832 | 1957 | ||
1833 | else if ( ((LA19_0>='A' && LA19_0<='Z')||LA19_0=='_'||LA19_0=='b'||(LA19_0>='d' && LA19_0<='h')||(LA19_0>='j' && LA19_0<='k')||LA19_0=='n'||(LA19_0>='q' && LA19_0<='s')||(LA19_0>='u' && LA19_0<='z')) ) {s = 23;} | 1958 | else if ( (LA20_0=='*') ) {s = 20;} |
1834 | 1959 | ||
1835 | else if ( (LA19_0=='\"') ) {s = 24;} | 1960 | else if ( ((LA20_0>='0' && LA20_0<='9')) ) {s = 21;} |
1836 | 1961 | ||
1837 | else if ( (LA19_0=='\'') ) {s = 25;} | 1962 | else if ( (LA20_0=='^') ) {s = 22;} |
1838 | 1963 | ||
1839 | else if ( (LA19_0=='/') ) {s = 26;} | 1964 | else if ( ((LA20_0>='A' && LA20_0<='Z')||LA20_0=='_'||LA20_0=='b'||(LA20_0>='d' && LA20_0<='h')||(LA20_0>='j' && LA20_0<='k')||LA20_0=='n'||(LA20_0>='q' && LA20_0<='s')||(LA20_0>='u' && LA20_0<='z')) ) {s = 23;} |
1840 | 1965 | ||
1841 | else if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) {s = 27;} | 1966 | else if ( (LA20_0=='\"') ) {s = 24;} |
1842 | 1967 | ||
1843 | else if ( ((LA19_0>='\u0000' && LA19_0<='\b')||(LA19_0>='\u000B' && LA19_0<='\f')||(LA19_0>='\u000E' && LA19_0<='\u001F')||LA19_0=='!'||(LA19_0>='#' && LA19_0<='&')||LA19_0=='-'||LA19_0=='<'||(LA19_0>='>' && LA19_0<='@')||(LA19_0>='\\' && LA19_0<=']')||LA19_0=='`'||LA19_0=='|'||(LA19_0>='~' && LA19_0<='\uFFFF')) ) {s = 28;} | 1968 | else if ( (LA20_0=='\'') ) {s = 25;} |
1844 | 1969 | ||
1845 | if ( s>=0 ) return s; | 1970 | else if ( (LA20_0=='/') ) {s = 26;} |
1846 | break; | ||
1847 | case 1 : | ||
1848 | int LA19_25 = input.LA(1); | ||
1849 | 1971 | ||
1850 | s = -1; | 1972 | else if ( ((LA20_0>='\t' && LA20_0<='\n')||LA20_0=='\r'||LA20_0==' ') ) {s = 27;} |
1851 | if ( ((LA19_25>='\u0000' && LA19_25<='\uFFFF')) ) {s = 59;} | ||
1852 | 1973 | ||
1853 | else s = 28; | 1974 | else if ( ((LA20_0>='\u0000' && LA20_0<='\b')||(LA20_0>='\u000B' && LA20_0<='\f')||(LA20_0>='\u000E' && LA20_0<='\u001F')||LA20_0=='!'||(LA20_0>='#' && LA20_0<='&')||LA20_0=='-'||LA20_0=='<'||(LA20_0>='>' && LA20_0<='@')||(LA20_0>='\\' && LA20_0<=']')||LA20_0=='`'||LA20_0=='|'||(LA20_0>='~' && LA20_0<='\uFFFF')) ) {s = 28;} |
1854 | 1975 | ||
1855 | if ( s>=0 ) return s; | 1976 | if ( s>=0 ) return s; |
1856 | break; | 1977 | break; |
1857 | case 2 : | 1978 | case 2 : |
1858 | int LA19_24 = input.LA(1); | 1979 | int LA20_24 = input.LA(1); |
1859 | 1980 | ||
1860 | s = -1; | 1981 | s = -1; |
1861 | if ( ((LA19_24>='\u0000' && LA19_24<='\uFFFF')) ) {s = 59;} | 1982 | if ( ((LA20_24>='\u0000' && LA20_24<='\uFFFF')) ) {s = 61;} |
1862 | 1983 | ||
1863 | else s = 28; | 1984 | else s = 28; |
1864 | 1985 | ||
@@ -1866,7 +1987,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1866 | break; | 1987 | break; |
1867 | } | 1988 | } |
1868 | NoViableAltException nvae = | 1989 | NoViableAltException nvae = |
1869 | new NoViableAltException(getDescription(), 19, _s, input); | 1990 | new NoViableAltException(getDescription(), 20, _s, input); |
1870 | error(nvae); | 1991 | error(nvae); |
1871 | throw nvae; | 1992 | throw nvae; |
1872 | } | 1993 | } |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java index 29c15563..4727763e 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | |||
@@ -21,19 +21,21 @@ import java.util.ArrayList; | |||
21 | @SuppressWarnings("all") | 21 | @SuppressWarnings("all") |
22 | public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | 22 | public class InternalCftLanguageParser extends AbstractInternalAntlrParser { |
23 | public static final String[] tokenNames = new String[] { | 23 | public static final String[] tokenNames = new String[] { |
24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_DOULBE", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'lambda'", "'='", "'and'", "'or'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" | 24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_INT", "RULE_OF_INT", "RULE_ID", "RULE_T_DOUBLE", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'p'", "'='", "'lambda'", "'and'", "'or'", "'of'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" |
25 | }; | 25 | }; |
26 | public static final int RULE_STRING=7; | 26 | public static final int RULE_STRING=8; |
27 | public static final int RULE_SL_COMMENT=9; | 27 | public static final int RULE_SL_COMMENT=10; |
28 | public static final int T__19=19; | 28 | public static final int T__19=19; |
29 | public static final int T__15=15; | 29 | public static final int T__15=15; |
30 | public static final int T__37=37; | 30 | public static final int T__37=37; |
31 | public static final int T__16=16; | 31 | public static final int T__16=16; |
32 | public static final int T__38=38; | ||
32 | public static final int T__17=17; | 33 | public static final int T__17=17; |
34 | public static final int T__39=39; | ||
33 | public static final int T__18=18; | 35 | public static final int T__18=18; |
34 | public static final int T__33=33; | 36 | public static final int T__33=33; |
35 | public static final int T__12=12; | ||
36 | public static final int T__34=34; | 37 | public static final int T__34=34; |
38 | public static final int RULE_T_DOUBLE=7; | ||
37 | public static final int T__13=13; | 39 | public static final int T__13=13; |
38 | public static final int T__35=35; | 40 | public static final int T__35=35; |
39 | public static final int T__14=14; | 41 | public static final int T__14=14; |
@@ -42,20 +44,21 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
42 | public static final int T__30=30; | 44 | public static final int T__30=30; |
43 | public static final int T__31=31; | 45 | public static final int T__31=31; |
44 | public static final int T__32=32; | 46 | public static final int T__32=32; |
45 | public static final int RULE_ID=4; | 47 | public static final int RULE_OF_INT=5; |
46 | public static final int RULE_WS=10; | 48 | public static final int RULE_ID=6; |
47 | public static final int RULE_DOULBE=5; | 49 | public static final int RULE_WS=11; |
48 | public static final int RULE_ANY_OTHER=11; | 50 | public static final int RULE_ANY_OTHER=12; |
49 | public static final int T__26=26; | 51 | public static final int T__26=26; |
50 | public static final int T__27=27; | 52 | public static final int T__27=27; |
51 | public static final int T__28=28; | 53 | public static final int T__28=28; |
52 | public static final int RULE_INT=6; | 54 | public static final int RULE_INT=4; |
53 | public static final int T__29=29; | 55 | public static final int T__29=29; |
54 | public static final int T__22=22; | 56 | public static final int T__22=22; |
55 | public static final int RULE_ML_COMMENT=8; | 57 | public static final int RULE_ML_COMMENT=9; |
56 | public static final int T__23=23; | 58 | public static final int T__23=23; |
57 | public static final int T__24=24; | 59 | public static final int T__24=24; |
58 | public static final int T__25=25; | 60 | public static final int T__25=25; |
61 | public static final int T__40=40; | ||
59 | public static final int T__20=20; | 62 | public static final int T__20=20; |
60 | public static final int T__21=21; | 63 | public static final int T__21=21; |
61 | 64 | ||
@@ -160,7 +163,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
160 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) | 163 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) |
161 | // InternalCftLanguage.g:79:3: otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | 164 | // InternalCftLanguage.g:79:3: otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* |
162 | { | 165 | { |
163 | otherlv_0=(Token)match(input,12,FOLLOW_3); | 166 | otherlv_0=(Token)match(input,13,FOLLOW_3); |
164 | 167 | ||
165 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | 168 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); |
166 | 169 | ||
@@ -199,14 +202,14 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
199 | int alt1=2; | 202 | int alt1=2; |
200 | int LA1_0 = input.LA(1); | 203 | int LA1_0 = input.LA(1); |
201 | 204 | ||
202 | if ( (LA1_0==13) ) { | 205 | if ( (LA1_0==14) ) { |
203 | alt1=1; | 206 | alt1=1; |
204 | } | 207 | } |
205 | switch (alt1) { | 208 | switch (alt1) { |
206 | case 1 : | 209 | case 1 : |
207 | // InternalCftLanguage.g:103:4: otherlv_2= ';' | 210 | // InternalCftLanguage.g:103:4: otherlv_2= ';' |
208 | { | 211 | { |
209 | otherlv_2=(Token)match(input,13,FOLLOW_5); | 212 | otherlv_2=(Token)match(input,14,FOLLOW_5); |
210 | 213 | ||
211 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | 214 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); |
212 | 215 | ||
@@ -222,7 +225,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
222 | int alt2=2; | 225 | int alt2=2; |
223 | int LA2_0 = input.LA(1); | 226 | int LA2_0 = input.LA(1); |
224 | 227 | ||
225 | if ( (LA2_0==14) ) { | 228 | if ( (LA2_0==15) ) { |
226 | alt2=1; | 229 | alt2=1; |
227 | } | 230 | } |
228 | 231 | ||
@@ -271,10 +274,10 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
271 | int alt3=3; | 274 | int alt3=3; |
272 | int LA3_0 = input.LA(1); | 275 | int LA3_0 = input.LA(1); |
273 | 276 | ||
274 | if ( (LA3_0==15) ) { | 277 | if ( (LA3_0==16) ) { |
275 | alt3=1; | 278 | alt3=1; |
276 | } | 279 | } |
277 | else if ( (LA3_0==25) ) { | 280 | else if ( (LA3_0==28) ) { |
278 | alt3=2; | 281 | alt3=2; |
279 | } | 282 | } |
280 | 283 | ||
@@ -438,7 +441,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
438 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | 441 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) |
439 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? | 442 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? |
440 | { | 443 | { |
441 | otherlv_0=(Token)match(input,14,FOLLOW_3); | 444 | otherlv_0=(Token)match(input,15,FOLLOW_3); |
442 | 445 | ||
443 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | 446 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); |
444 | 447 | ||
@@ -477,14 +480,14 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
477 | int alt4=2; | 480 | int alt4=2; |
478 | int LA4_0 = input.LA(1); | 481 | int LA4_0 = input.LA(1); |
479 | 482 | ||
480 | if ( (LA4_0==13) ) { | 483 | if ( (LA4_0==14) ) { |
481 | alt4=1; | 484 | alt4=1; |
482 | } | 485 | } |
483 | switch (alt4) { | 486 | switch (alt4) { |
484 | case 1 : | 487 | case 1 : |
485 | // InternalCftLanguage.g:211:4: otherlv_2= ';' | 488 | // InternalCftLanguage.g:211:4: otherlv_2= ';' |
486 | { | 489 | { |
487 | otherlv_2=(Token)match(input,13,FOLLOW_2); | 490 | otherlv_2=(Token)match(input,14,FOLLOW_2); |
488 | 491 | ||
489 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | 492 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); |
490 | 493 | ||
@@ -553,20 +556,20 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
553 | 556 | ||
554 | 557 | ||
555 | // $ANTLR start "ruleComponentDefinition" | 558 | // $ANTLR start "ruleComponentDefinition" |
556 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; | 559 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; |
557 | public final EObject ruleComponentDefinition() throws RecognitionException { | 560 | public final EObject ruleComponentDefinition() throws RecognitionException { |
558 | EObject current = null; | 561 | EObject current = null; |
559 | 562 | ||
560 | Token otherlv_0=null; | 563 | Token otherlv_0=null; |
561 | Token lv_name_1_0=null; | ||
562 | Token otherlv_2=null; | 564 | Token otherlv_2=null; |
563 | Token otherlv_4=null; | 565 | Token otherlv_4=null; |
564 | Token otherlv_6=null; | 566 | Token otherlv_6=null; |
565 | Token otherlv_7=null; | 567 | Token otherlv_7=null; |
566 | Token otherlv_8=null; | ||
567 | Token otherlv_9=null; | 568 | Token otherlv_9=null; |
568 | Token otherlv_11=null; | 569 | Token otherlv_11=null; |
569 | Token otherlv_12=null; | 570 | Token otherlv_12=null; |
571 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
572 | |||
570 | EObject lv_inputEvents_5_0 = null; | 573 | EObject lv_inputEvents_5_0 = null; |
571 | 574 | ||
572 | EObject lv_eventDefinitions_10_0 = null; | 575 | EObject lv_eventDefinitions_10_0 = null; |
@@ -576,35 +579,40 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
576 | enterRule(); | 579 | enterRule(); |
577 | 580 | ||
578 | try { | 581 | try { |
579 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) | 582 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) |
580 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | 583 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) |
581 | { | 584 | { |
582 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | 585 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) |
583 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' | 586 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' |
584 | { | 587 | { |
585 | otherlv_0=(Token)match(input,15,FOLLOW_3); | 588 | otherlv_0=(Token)match(input,16,FOLLOW_3); |
586 | 589 | ||
587 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | 590 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); |
588 | 591 | ||
589 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= RULE_ID ) ) | 592 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= ruleValidId ) ) |
590 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | 593 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) |
591 | { | 594 | { |
592 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | 595 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) |
593 | // InternalCftLanguage.g:241:5: lv_name_1_0= RULE_ID | 596 | // InternalCftLanguage.g:241:5: lv_name_1_0= ruleValidId |
594 | { | 597 | { |
595 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
596 | 598 | ||
597 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 599 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
598 | 600 | ||
601 | pushFollow(FOLLOW_8); | ||
602 | lv_name_1_0=ruleValidId(); | ||
603 | |||
604 | state._fsp--; | ||
605 | |||
599 | 606 | ||
600 | if (current==null) { | 607 | if (current==null) { |
601 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 608 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); |
602 | } | 609 | } |
603 | setWithLastConsumed( | 610 | set( |
604 | current, | 611 | current, |
605 | "name", | 612 | "name", |
606 | lv_name_1_0, | 613 | lv_name_1_0, |
607 | "org.eclipse.xtext.common.Terminals.ID"); | 614 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
615 | afterParserOrEnumRuleCall(); | ||
608 | 616 | ||
609 | 617 | ||
610 | } | 618 | } |
@@ -612,82 +620,82 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
612 | 620 | ||
613 | } | 621 | } |
614 | 622 | ||
615 | otherlv_2=(Token)match(input,16,FOLLOW_9); | 623 | otherlv_2=(Token)match(input,17,FOLLOW_9); |
616 | 624 | ||
617 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | 625 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); |
618 | 626 | ||
619 | // InternalCftLanguage.g:261:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) | 627 | // InternalCftLanguage.g:262:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) |
620 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | 628 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) |
621 | { | 629 | { |
622 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | 630 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) |
623 | // InternalCftLanguage.g:263:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | 631 | // InternalCftLanguage.g:264:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) |
624 | { | 632 | { |
625 | 633 | ||
626 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | 634 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); |
627 | 635 | ||
628 | // InternalCftLanguage.g:266:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | 636 | // InternalCftLanguage.g:267:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) |
629 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | 637 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* |
630 | { | 638 | { |
631 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | 639 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* |
632 | loop7: | 640 | loop7: |
633 | do { | 641 | do { |
634 | int alt7=3; | 642 | int alt7=3; |
635 | int LA7_0 = input.LA(1); | 643 | int LA7_0 = input.LA(1); |
636 | 644 | ||
637 | if ( LA7_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | 645 | if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { |
638 | alt7=1; | 646 | alt7=1; |
639 | } | 647 | } |
640 | else if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | 648 | else if ( LA7_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { |
641 | alt7=2; | 649 | alt7=2; |
642 | } | 650 | } |
643 | 651 | ||
644 | 652 | ||
645 | switch (alt7) { | 653 | switch (alt7) { |
646 | case 1 : | 654 | case 1 : |
647 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | 655 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) |
648 | { | 656 | { |
649 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | 657 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) |
650 | // InternalCftLanguage.g:269:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | 658 | // InternalCftLanguage.g:270:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) |
651 | { | 659 | { |
652 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | 660 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { |
653 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); | 661 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); |
654 | } | 662 | } |
655 | // InternalCftLanguage.g:269:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | 663 | // InternalCftLanguage.g:270:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) |
656 | // InternalCftLanguage.g:270:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | 664 | // InternalCftLanguage.g:271:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) |
657 | { | 665 | { |
658 | 666 | ||
659 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | 667 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); |
660 | 668 | ||
661 | // InternalCftLanguage.g:273:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | 669 | // InternalCftLanguage.g:274:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) |
662 | // InternalCftLanguage.g:273:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | 670 | // InternalCftLanguage.g:274:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) |
663 | { | 671 | { |
664 | if ( !((true)) ) { | 672 | if ( !((true)) ) { |
665 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | 673 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); |
666 | } | 674 | } |
667 | // InternalCftLanguage.g:273:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | 675 | // InternalCftLanguage.g:274:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) |
668 | // InternalCftLanguage.g:273:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' | 676 | // InternalCftLanguage.g:274:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' |
669 | { | 677 | { |
670 | otherlv_4=(Token)match(input,17,FOLLOW_10); | 678 | otherlv_4=(Token)match(input,18,FOLLOW_10); |
671 | 679 | ||
672 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | 680 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); |
673 | 681 | ||
674 | // InternalCftLanguage.g:277:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* | 682 | // InternalCftLanguage.g:278:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* |
675 | loop5: | 683 | loop5: |
676 | do { | 684 | do { |
677 | int alt5=2; | 685 | int alt5=2; |
678 | int LA5_0 = input.LA(1); | 686 | int LA5_0 = input.LA(1); |
679 | 687 | ||
680 | if ( (LA5_0==RULE_ID) ) { | 688 | if ( ((LA5_0>=RULE_OF_INT && LA5_0<=RULE_ID)) ) { |
681 | alt5=1; | 689 | alt5=1; |
682 | } | 690 | } |
683 | 691 | ||
684 | 692 | ||
685 | switch (alt5) { | 693 | switch (alt5) { |
686 | case 1 : | 694 | case 1 : |
687 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | 695 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) |
688 | { | 696 | { |
689 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | 697 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) |
690 | // InternalCftLanguage.g:279:11: lv_inputEvents_5_0= ruleInputEvent | 698 | // InternalCftLanguage.g:280:11: lv_inputEvents_5_0= ruleInputEvent |
691 | { | 699 | { |
692 | 700 | ||
693 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | 701 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); |
@@ -720,7 +728,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
720 | } | 728 | } |
721 | } while (true); | 729 | } while (true); |
722 | 730 | ||
723 | otherlv_6=(Token)match(input,13,FOLLOW_9); | 731 | otherlv_6=(Token)match(input,14,FOLLOW_9); |
724 | 732 | ||
725 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | 733 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); |
726 | 734 | ||
@@ -743,59 +751,66 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
743 | } | 751 | } |
744 | break; | 752 | break; |
745 | case 2 : | 753 | case 2 : |
746 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | 754 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) |
747 | { | 755 | { |
748 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | 756 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) |
749 | // InternalCftLanguage.g:307:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | 757 | // InternalCftLanguage.g:308:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) |
750 | { | 758 | { |
751 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | 759 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { |
752 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); | 760 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); |
753 | } | 761 | } |
754 | // InternalCftLanguage.g:307:116: ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | 762 | // InternalCftLanguage.g:308:116: ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) |
755 | // InternalCftLanguage.g:308:6: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | 763 | // InternalCftLanguage.g:309:6: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) |
756 | { | 764 | { |
757 | 765 | ||
758 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | 766 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); |
759 | 767 | ||
760 | // InternalCftLanguage.g:311:9: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | 768 | // InternalCftLanguage.g:312:9: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) |
761 | // InternalCftLanguage.g:311:10: {...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | 769 | // InternalCftLanguage.g:312:10: {...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) |
762 | { | 770 | { |
763 | if ( !((true)) ) { | 771 | if ( !((true)) ) { |
764 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | 772 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); |
765 | } | 773 | } |
766 | // InternalCftLanguage.g:311:19: (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | 774 | // InternalCftLanguage.g:312:19: (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) |
767 | // InternalCftLanguage.g:311:20: otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' | 775 | // InternalCftLanguage.g:312:20: otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' |
768 | { | 776 | { |
769 | otherlv_7=(Token)match(input,18,FOLLOW_10); | 777 | otherlv_7=(Token)match(input,19,FOLLOW_10); |
770 | 778 | ||
771 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | 779 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); |
772 | 780 | ||
773 | // InternalCftLanguage.g:315:9: ( (otherlv_8= RULE_ID ) )* | 781 | // InternalCftLanguage.g:316:9: ( ( ruleValidId ) )* |
774 | loop6: | 782 | loop6: |
775 | do { | 783 | do { |
776 | int alt6=2; | 784 | int alt6=2; |
777 | int LA6_0 = input.LA(1); | 785 | int LA6_0 = input.LA(1); |
778 | 786 | ||
779 | if ( (LA6_0==RULE_ID) ) { | 787 | if ( ((LA6_0>=RULE_OF_INT && LA6_0<=RULE_ID)) ) { |
780 | alt6=1; | 788 | alt6=1; |
781 | } | 789 | } |
782 | 790 | ||
783 | 791 | ||
784 | switch (alt6) { | 792 | switch (alt6) { |
785 | case 1 : | 793 | case 1 : |
786 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | 794 | // InternalCftLanguage.g:317:10: ( ruleValidId ) |
787 | { | 795 | { |
788 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | 796 | // InternalCftLanguage.g:317:10: ( ruleValidId ) |
789 | // InternalCftLanguage.g:317:11: otherlv_8= RULE_ID | 797 | // InternalCftLanguage.g:318:11: ruleValidId |
790 | { | 798 | { |
791 | 799 | ||
792 | if (current==null) { | 800 | if (current==null) { |
793 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 801 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); |
794 | } | 802 | } |
795 | 803 | ||
796 | otherlv_8=(Token)match(input,RULE_ID,FOLLOW_10); | ||
797 | 804 | ||
798 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | 805 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); |
806 | |||
807 | pushFollow(FOLLOW_10); | ||
808 | ruleValidId(); | ||
809 | |||
810 | state._fsp--; | ||
811 | |||
812 | |||
813 | afterParserOrEnumRuleCall(); | ||
799 | 814 | ||
800 | 815 | ||
801 | } | 816 | } |
@@ -809,7 +824,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
809 | } | 824 | } |
810 | } while (true); | 825 | } while (true); |
811 | 826 | ||
812 | otherlv_9=(Token)match(input,13,FOLLOW_9); | 827 | otherlv_9=(Token)match(input,14,FOLLOW_9); |
813 | 828 | ||
814 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | 829 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); |
815 | 830 | ||
@@ -849,26 +864,26 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
849 | 864 | ||
850 | } | 865 | } |
851 | 866 | ||
852 | // InternalCftLanguage.g:345:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* | 867 | // InternalCftLanguage.g:349:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* |
853 | loop8: | 868 | loop8: |
854 | do { | 869 | do { |
855 | int alt8=2; | 870 | int alt8=2; |
856 | int LA8_0 = input.LA(1); | 871 | int LA8_0 = input.LA(1); |
857 | 872 | ||
858 | if ( (LA8_0==RULE_ID) ) { | 873 | if ( ((LA8_0>=RULE_OF_INT && LA8_0<=RULE_ID)) ) { |
859 | alt8=1; | 874 | alt8=1; |
860 | } | 875 | } |
861 | 876 | ||
862 | 877 | ||
863 | switch (alt8) { | 878 | switch (alt8) { |
864 | case 1 : | 879 | case 1 : |
865 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' | 880 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' |
866 | { | 881 | { |
867 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) | 882 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) |
868 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | 883 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) |
869 | { | 884 | { |
870 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | 885 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) |
871 | // InternalCftLanguage.g:348:6: lv_eventDefinitions_10_0= ruleEventDefinition | 886 | // InternalCftLanguage.g:352:6: lv_eventDefinitions_10_0= ruleEventDefinition |
872 | { | 887 | { |
873 | 888 | ||
874 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | 889 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); |
@@ -895,7 +910,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
895 | 910 | ||
896 | } | 911 | } |
897 | 912 | ||
898 | otherlv_11=(Token)match(input,13,FOLLOW_12); | 913 | otherlv_11=(Token)match(input,14,FOLLOW_12); |
899 | 914 | ||
900 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | 915 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); |
901 | 916 | ||
@@ -908,7 +923,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
908 | } | 923 | } |
909 | } while (true); | 924 | } while (true); |
910 | 925 | ||
911 | otherlv_12=(Token)match(input,19,FOLLOW_2); | 926 | otherlv_12=(Token)match(input,20,FOLLOW_2); |
912 | 927 | ||
913 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | 928 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); |
914 | 929 | ||
@@ -935,7 +950,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
935 | 950 | ||
936 | 951 | ||
937 | // $ANTLR start "entryRuleInputEvent" | 952 | // $ANTLR start "entryRuleInputEvent" |
938 | // InternalCftLanguage.g:378:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; | 953 | // InternalCftLanguage.g:382:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; |
939 | public final EObject entryRuleInputEvent() throws RecognitionException { | 954 | public final EObject entryRuleInputEvent() throws RecognitionException { |
940 | EObject current = null; | 955 | EObject current = null; |
941 | 956 | ||
@@ -943,8 +958,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
943 | 958 | ||
944 | 959 | ||
945 | try { | 960 | try { |
946 | // InternalCftLanguage.g:378:51: (iv_ruleInputEvent= ruleInputEvent EOF ) | 961 | // InternalCftLanguage.g:382:51: (iv_ruleInputEvent= ruleInputEvent EOF ) |
947 | // InternalCftLanguage.g:379:2: iv_ruleInputEvent= ruleInputEvent EOF | 962 | // InternalCftLanguage.g:383:2: iv_ruleInputEvent= ruleInputEvent EOF |
948 | { | 963 | { |
949 | newCompositeNode(grammarAccess.getInputEventRule()); | 964 | newCompositeNode(grammarAccess.getInputEventRule()); |
950 | pushFollow(FOLLOW_1); | 965 | pushFollow(FOLLOW_1); |
@@ -971,42 +986,48 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
971 | 986 | ||
972 | 987 | ||
973 | // $ANTLR start "ruleInputEvent" | 988 | // $ANTLR start "ruleInputEvent" |
974 | // InternalCftLanguage.g:385:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; | 989 | // InternalCftLanguage.g:389:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; |
975 | public final EObject ruleInputEvent() throws RecognitionException { | 990 | public final EObject ruleInputEvent() throws RecognitionException { |
976 | EObject current = null; | 991 | EObject current = null; |
977 | 992 | ||
978 | Token lv_name_0_0=null; | ||
979 | Token lv_multiple_1_0=null; | 993 | Token lv_multiple_1_0=null; |
994 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
995 | |||
980 | 996 | ||
981 | 997 | ||
982 | enterRule(); | 998 | enterRule(); |
983 | 999 | ||
984 | try { | 1000 | try { |
985 | // InternalCftLanguage.g:391:2: ( ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) | 1001 | // InternalCftLanguage.g:395:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) |
986 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | 1002 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) |
987 | { | 1003 | { |
988 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | 1004 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) |
989 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? | 1005 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? |
990 | { | 1006 | { |
991 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) | 1007 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) |
992 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | 1008 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) |
993 | { | 1009 | { |
994 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | 1010 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) |
995 | // InternalCftLanguage.g:395:5: lv_name_0_0= RULE_ID | 1011 | // InternalCftLanguage.g:399:5: lv_name_0_0= ruleValidId |
996 | { | 1012 | { |
997 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_13); | ||
998 | 1013 | ||
999 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | 1014 | newCompositeNode(grammarAccess.getInputEventAccess().getNameValidIdParserRuleCall_0_0()); |
1000 | 1015 | ||
1016 | pushFollow(FOLLOW_13); | ||
1017 | lv_name_0_0=ruleValidId(); | ||
1018 | |||
1019 | state._fsp--; | ||
1020 | |||
1001 | 1021 | ||
1002 | if (current==null) { | 1022 | if (current==null) { |
1003 | current = createModelElement(grammarAccess.getInputEventRule()); | 1023 | current = createModelElementForParent(grammarAccess.getInputEventRule()); |
1004 | } | 1024 | } |
1005 | setWithLastConsumed( | 1025 | set( |
1006 | current, | 1026 | current, |
1007 | "name", | 1027 | "name", |
1008 | lv_name_0_0, | 1028 | lv_name_0_0, |
1009 | "org.eclipse.xtext.common.Terminals.ID"); | 1029 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1030 | afterParserOrEnumRuleCall(); | ||
1010 | 1031 | ||
1011 | 1032 | ||
1012 | } | 1033 | } |
@@ -1014,21 +1035,21 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1014 | 1035 | ||
1015 | } | 1036 | } |
1016 | 1037 | ||
1017 | // InternalCftLanguage.g:411:3: ( (lv_multiple_1_0= '[]' ) )? | 1038 | // InternalCftLanguage.g:416:3: ( (lv_multiple_1_0= '[]' ) )? |
1018 | int alt9=2; | 1039 | int alt9=2; |
1019 | int LA9_0 = input.LA(1); | 1040 | int LA9_0 = input.LA(1); |
1020 | 1041 | ||
1021 | if ( (LA9_0==20) ) { | 1042 | if ( (LA9_0==21) ) { |
1022 | alt9=1; | 1043 | alt9=1; |
1023 | } | 1044 | } |
1024 | switch (alt9) { | 1045 | switch (alt9) { |
1025 | case 1 : | 1046 | case 1 : |
1026 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | 1047 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) |
1027 | { | 1048 | { |
1028 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | 1049 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) |
1029 | // InternalCftLanguage.g:413:5: lv_multiple_1_0= '[]' | 1050 | // InternalCftLanguage.g:418:5: lv_multiple_1_0= '[]' |
1030 | { | 1051 | { |
1031 | lv_multiple_1_0=(Token)match(input,20,FOLLOW_2); | 1052 | lv_multiple_1_0=(Token)match(input,21,FOLLOW_2); |
1032 | 1053 | ||
1033 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | 1054 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); |
1034 | 1055 | ||
@@ -1070,7 +1091,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1070 | 1091 | ||
1071 | 1092 | ||
1072 | // $ANTLR start "entryRuleEventDefinition" | 1093 | // $ANTLR start "entryRuleEventDefinition" |
1073 | // InternalCftLanguage.g:429:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; | 1094 | // InternalCftLanguage.g:434:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; |
1074 | public final EObject entryRuleEventDefinition() throws RecognitionException { | 1095 | public final EObject entryRuleEventDefinition() throws RecognitionException { |
1075 | EObject current = null; | 1096 | EObject current = null; |
1076 | 1097 | ||
@@ -1078,8 +1099,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1078 | 1099 | ||
1079 | 1100 | ||
1080 | try { | 1101 | try { |
1081 | // InternalCftLanguage.g:429:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) | 1102 | // InternalCftLanguage.g:434:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) |
1082 | // InternalCftLanguage.g:430:2: iv_ruleEventDefinition= ruleEventDefinition EOF | 1103 | // InternalCftLanguage.g:435:2: iv_ruleEventDefinition= ruleEventDefinition EOF |
1083 | { | 1104 | { |
1084 | newCompositeNode(grammarAccess.getEventDefinitionRule()); | 1105 | newCompositeNode(grammarAccess.getEventDefinitionRule()); |
1085 | pushFollow(FOLLOW_1); | 1106 | pushFollow(FOLLOW_1); |
@@ -1106,7 +1127,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1106 | 1127 | ||
1107 | 1128 | ||
1108 | // $ANTLR start "ruleEventDefinition" | 1129 | // $ANTLR start "ruleEventDefinition" |
1109 | // InternalCftLanguage.g:436:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; | 1130 | // InternalCftLanguage.g:441:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; |
1110 | public final EObject ruleEventDefinition() throws RecognitionException { | 1131 | public final EObject ruleEventDefinition() throws RecognitionException { |
1111 | EObject current = null; | 1132 | EObject current = null; |
1112 | 1133 | ||
@@ -1119,20 +1140,20 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1119 | enterRule(); | 1140 | enterRule(); |
1120 | 1141 | ||
1121 | try { | 1142 | try { |
1122 | // InternalCftLanguage.g:442:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) | 1143 | // InternalCftLanguage.g:447:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) |
1123 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | 1144 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) |
1124 | { | 1145 | { |
1125 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | 1146 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) |
1126 | int alt10=2; | 1147 | int alt10=2; |
1127 | int LA10_0 = input.LA(1); | 1148 | int LA10_0 = input.LA(1); |
1128 | 1149 | ||
1129 | if ( (LA10_0==RULE_ID) ) { | 1150 | if ( (LA10_0==RULE_ID) ) { |
1130 | int LA10_1 = input.LA(2); | 1151 | int LA10_1 = input.LA(2); |
1131 | 1152 | ||
1132 | if ( ((LA10_1>=23 && LA10_1<=24)) ) { | 1153 | if ( (LA10_1==RULE_INT||(LA10_1>=25 && LA10_1<=26)) ) { |
1133 | alt10=2; | 1154 | alt10=2; |
1134 | } | 1155 | } |
1135 | else if ( (LA10_1==21) ) { | 1156 | else if ( (LA10_1==22||LA10_1==24) ) { |
1136 | alt10=1; | 1157 | alt10=1; |
1137 | } | 1158 | } |
1138 | else { | 1159 | else { |
@@ -1142,6 +1163,22 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1142 | throw nvae; | 1163 | throw nvae; |
1143 | } | 1164 | } |
1144 | } | 1165 | } |
1166 | else if ( (LA10_0==RULE_OF_INT) ) { | ||
1167 | int LA10_2 = input.LA(2); | ||
1168 | |||
1169 | if ( (LA10_2==22||LA10_2==24) ) { | ||
1170 | alt10=1; | ||
1171 | } | ||
1172 | else if ( (LA10_2==RULE_INT||(LA10_2>=25 && LA10_2<=26)) ) { | ||
1173 | alt10=2; | ||
1174 | } | ||
1175 | else { | ||
1176 | NoViableAltException nvae = | ||
1177 | new NoViableAltException("", 10, 2, input); | ||
1178 | |||
1179 | throw nvae; | ||
1180 | } | ||
1181 | } | ||
1145 | else { | 1182 | else { |
1146 | NoViableAltException nvae = | 1183 | NoViableAltException nvae = |
1147 | new NoViableAltException("", 10, 0, input); | 1184 | new NoViableAltException("", 10, 0, input); |
@@ -1150,7 +1187,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1150 | } | 1187 | } |
1151 | switch (alt10) { | 1188 | switch (alt10) { |
1152 | case 1 : | 1189 | case 1 : |
1153 | // InternalCftLanguage.g:444:3: this_BasicEventDefinition_0= ruleBasicEventDefinition | 1190 | // InternalCftLanguage.g:449:3: this_BasicEventDefinition_0= ruleBasicEventDefinition |
1154 | { | 1191 | { |
1155 | 1192 | ||
1156 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | 1193 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); |
@@ -1168,7 +1205,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1168 | } | 1205 | } |
1169 | break; | 1206 | break; |
1170 | case 2 : | 1207 | case 2 : |
1171 | // InternalCftLanguage.g:453:3: this_GateDefinition_1= ruleGateDefinition | 1208 | // InternalCftLanguage.g:458:3: this_GateDefinition_1= ruleGateDefinition |
1172 | { | 1209 | { |
1173 | 1210 | ||
1174 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | 1211 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); |
@@ -1208,7 +1245,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1208 | 1245 | ||
1209 | 1246 | ||
1210 | // $ANTLR start "entryRuleBasicEventDefinition" | 1247 | // $ANTLR start "entryRuleBasicEventDefinition" |
1211 | // InternalCftLanguage.g:465:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; | 1248 | // InternalCftLanguage.g:470:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; |
1212 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { | 1249 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { |
1213 | EObject current = null; | 1250 | EObject current = null; |
1214 | 1251 | ||
@@ -1216,8 +1253,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1216 | 1253 | ||
1217 | 1254 | ||
1218 | try { | 1255 | try { |
1219 | // InternalCftLanguage.g:465:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) | 1256 | // InternalCftLanguage.g:470:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) |
1220 | // InternalCftLanguage.g:466:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF | 1257 | // InternalCftLanguage.g:471:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF |
1221 | { | 1258 | { |
1222 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); | 1259 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); |
1223 | pushFollow(FOLLOW_1); | 1260 | pushFollow(FOLLOW_1); |
@@ -1244,44 +1281,325 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1244 | 1281 | ||
1245 | 1282 | ||
1246 | // $ANTLR start "ruleBasicEventDefinition" | 1283 | // $ANTLR start "ruleBasicEventDefinition" |
1247 | // InternalCftLanguage.g:472:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ; | 1284 | // InternalCftLanguage.g:477:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ; |
1248 | public final EObject ruleBasicEventDefinition() throws RecognitionException { | 1285 | public final EObject ruleBasicEventDefinition() throws RecognitionException { |
1249 | EObject current = null; | 1286 | EObject current = null; |
1250 | 1287 | ||
1251 | Token lv_name_0_0=null; | 1288 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
1252 | Token otherlv_1=null; | 1289 | |
1253 | Token otherlv_2=null; | 1290 | EObject lv_distribution_1_0 = null; |
1254 | Token lv_rate_3_0=null; | 1291 | |
1255 | 1292 | ||
1256 | 1293 | ||
1257 | enterRule(); | 1294 | enterRule(); |
1258 | 1295 | ||
1259 | try { | 1296 | try { |
1260 | // InternalCftLanguage.g:478:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ) | 1297 | // InternalCftLanguage.g:483:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ) |
1261 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | 1298 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) |
1262 | { | 1299 | { |
1263 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | 1300 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) |
1264 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) | 1301 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) |
1265 | { | 1302 | { |
1266 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) | 1303 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) |
1267 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | 1304 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) |
1268 | { | 1305 | { |
1269 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | 1306 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) |
1270 | // InternalCftLanguage.g:482:5: lv_name_0_0= RULE_ID | 1307 | // InternalCftLanguage.g:487:5: lv_name_0_0= ruleValidId |
1271 | { | 1308 | { |
1272 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_14); | ||
1273 | 1309 | ||
1274 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | 1310 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
1275 | 1311 | ||
1312 | pushFollow(FOLLOW_14); | ||
1313 | lv_name_0_0=ruleValidId(); | ||
1314 | |||
1315 | state._fsp--; | ||
1316 | |||
1276 | 1317 | ||
1277 | if (current==null) { | 1318 | if (current==null) { |
1278 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 1319 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); |
1279 | } | 1320 | } |
1280 | setWithLastConsumed( | 1321 | set( |
1281 | current, | 1322 | current, |
1282 | "name", | 1323 | "name", |
1283 | lv_name_0_0, | 1324 | lv_name_0_0, |
1284 | "org.eclipse.xtext.common.Terminals.ID"); | 1325 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1326 | afterParserOrEnumRuleCall(); | ||
1327 | |||
1328 | |||
1329 | } | ||
1330 | |||
1331 | |||
1332 | } | ||
1333 | |||
1334 | // InternalCftLanguage.g:504:3: ( (lv_distribution_1_0= ruleDistribution ) ) | ||
1335 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1336 | { | ||
1337 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1338 | // InternalCftLanguage.g:506:5: lv_distribution_1_0= ruleDistribution | ||
1339 | { | ||
1340 | |||
1341 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0()); | ||
1342 | |||
1343 | pushFollow(FOLLOW_2); | ||
1344 | lv_distribution_1_0=ruleDistribution(); | ||
1345 | |||
1346 | state._fsp--; | ||
1347 | |||
1348 | |||
1349 | if (current==null) { | ||
1350 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
1351 | } | ||
1352 | set( | ||
1353 | current, | ||
1354 | "distribution", | ||
1355 | lv_distribution_1_0, | ||
1356 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
1357 | afterParserOrEnumRuleCall(); | ||
1358 | |||
1359 | |||
1360 | } | ||
1361 | |||
1362 | |||
1363 | } | ||
1364 | |||
1365 | |||
1366 | } | ||
1367 | |||
1368 | |||
1369 | } | ||
1370 | |||
1371 | |||
1372 | leaveRule(); | ||
1373 | |||
1374 | } | ||
1375 | |||
1376 | catch (RecognitionException re) { | ||
1377 | recover(input,re); | ||
1378 | appendSkippedTokens(); | ||
1379 | } | ||
1380 | finally { | ||
1381 | } | ||
1382 | return current; | ||
1383 | } | ||
1384 | // $ANTLR end "ruleBasicEventDefinition" | ||
1385 | |||
1386 | |||
1387 | // $ANTLR start "entryRuleDistribution" | ||
1388 | // InternalCftLanguage.g:527:1: entryRuleDistribution returns [EObject current=null] : iv_ruleDistribution= ruleDistribution EOF ; | ||
1389 | public final EObject entryRuleDistribution() throws RecognitionException { | ||
1390 | EObject current = null; | ||
1391 | |||
1392 | EObject iv_ruleDistribution = null; | ||
1393 | |||
1394 | |||
1395 | try { | ||
1396 | // InternalCftLanguage.g:527:53: (iv_ruleDistribution= ruleDistribution EOF ) | ||
1397 | // InternalCftLanguage.g:528:2: iv_ruleDistribution= ruleDistribution EOF | ||
1398 | { | ||
1399 | newCompositeNode(grammarAccess.getDistributionRule()); | ||
1400 | pushFollow(FOLLOW_1); | ||
1401 | iv_ruleDistribution=ruleDistribution(); | ||
1402 | |||
1403 | state._fsp--; | ||
1404 | |||
1405 | current =iv_ruleDistribution; | ||
1406 | match(input,EOF,FOLLOW_2); | ||
1407 | |||
1408 | } | ||
1409 | |||
1410 | } | ||
1411 | |||
1412 | catch (RecognitionException re) { | ||
1413 | recover(input,re); | ||
1414 | appendSkippedTokens(); | ||
1415 | } | ||
1416 | finally { | ||
1417 | } | ||
1418 | return current; | ||
1419 | } | ||
1420 | // $ANTLR end "entryRuleDistribution" | ||
1421 | |||
1422 | |||
1423 | // $ANTLR start "ruleDistribution" | ||
1424 | // InternalCftLanguage.g:534:1: ruleDistribution returns [EObject current=null] : (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ; | ||
1425 | public final EObject ruleDistribution() throws RecognitionException { | ||
1426 | EObject current = null; | ||
1427 | |||
1428 | EObject this_ConstantDistribution_0 = null; | ||
1429 | |||
1430 | EObject this_ExponentialDistribution_1 = null; | ||
1431 | |||
1432 | |||
1433 | |||
1434 | enterRule(); | ||
1435 | |||
1436 | try { | ||
1437 | // InternalCftLanguage.g:540:2: ( (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ) | ||
1438 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1439 | { | ||
1440 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1441 | int alt11=2; | ||
1442 | int LA11_0 = input.LA(1); | ||
1443 | |||
1444 | if ( (LA11_0==22) ) { | ||
1445 | alt11=1; | ||
1446 | } | ||
1447 | else if ( (LA11_0==24) ) { | ||
1448 | alt11=2; | ||
1449 | } | ||
1450 | else { | ||
1451 | NoViableAltException nvae = | ||
1452 | new NoViableAltException("", 11, 0, input); | ||
1453 | |||
1454 | throw nvae; | ||
1455 | } | ||
1456 | switch (alt11) { | ||
1457 | case 1 : | ||
1458 | // InternalCftLanguage.g:542:3: this_ConstantDistribution_0= ruleConstantDistribution | ||
1459 | { | ||
1460 | |||
1461 | newCompositeNode(grammarAccess.getDistributionAccess().getConstantDistributionParserRuleCall_0()); | ||
1462 | |||
1463 | pushFollow(FOLLOW_2); | ||
1464 | this_ConstantDistribution_0=ruleConstantDistribution(); | ||
1465 | |||
1466 | state._fsp--; | ||
1467 | |||
1468 | |||
1469 | current = this_ConstantDistribution_0; | ||
1470 | afterParserOrEnumRuleCall(); | ||
1471 | |||
1472 | |||
1473 | } | ||
1474 | break; | ||
1475 | case 2 : | ||
1476 | // InternalCftLanguage.g:551:3: this_ExponentialDistribution_1= ruleExponentialDistribution | ||
1477 | { | ||
1478 | |||
1479 | newCompositeNode(grammarAccess.getDistributionAccess().getExponentialDistributionParserRuleCall_1()); | ||
1480 | |||
1481 | pushFollow(FOLLOW_2); | ||
1482 | this_ExponentialDistribution_1=ruleExponentialDistribution(); | ||
1483 | |||
1484 | state._fsp--; | ||
1485 | |||
1486 | |||
1487 | current = this_ExponentialDistribution_1; | ||
1488 | afterParserOrEnumRuleCall(); | ||
1489 | |||
1490 | |||
1491 | } | ||
1492 | break; | ||
1493 | |||
1494 | } | ||
1495 | |||
1496 | |||
1497 | } | ||
1498 | |||
1499 | |||
1500 | leaveRule(); | ||
1501 | |||
1502 | } | ||
1503 | |||
1504 | catch (RecognitionException re) { | ||
1505 | recover(input,re); | ||
1506 | appendSkippedTokens(); | ||
1507 | } | ||
1508 | finally { | ||
1509 | } | ||
1510 | return current; | ||
1511 | } | ||
1512 | // $ANTLR end "ruleDistribution" | ||
1513 | |||
1514 | |||
1515 | // $ANTLR start "entryRuleConstantDistribution" | ||
1516 | // InternalCftLanguage.g:563:1: entryRuleConstantDistribution returns [EObject current=null] : iv_ruleConstantDistribution= ruleConstantDistribution EOF ; | ||
1517 | public final EObject entryRuleConstantDistribution() throws RecognitionException { | ||
1518 | EObject current = null; | ||
1519 | |||
1520 | EObject iv_ruleConstantDistribution = null; | ||
1521 | |||
1522 | |||
1523 | try { | ||
1524 | // InternalCftLanguage.g:563:61: (iv_ruleConstantDistribution= ruleConstantDistribution EOF ) | ||
1525 | // InternalCftLanguage.g:564:2: iv_ruleConstantDistribution= ruleConstantDistribution EOF | ||
1526 | { | ||
1527 | newCompositeNode(grammarAccess.getConstantDistributionRule()); | ||
1528 | pushFollow(FOLLOW_1); | ||
1529 | iv_ruleConstantDistribution=ruleConstantDistribution(); | ||
1530 | |||
1531 | state._fsp--; | ||
1532 | |||
1533 | current =iv_ruleConstantDistribution; | ||
1534 | match(input,EOF,FOLLOW_2); | ||
1535 | |||
1536 | } | ||
1537 | |||
1538 | } | ||
1539 | |||
1540 | catch (RecognitionException re) { | ||
1541 | recover(input,re); | ||
1542 | appendSkippedTokens(); | ||
1543 | } | ||
1544 | finally { | ||
1545 | } | ||
1546 | return current; | ||
1547 | } | ||
1548 | // $ANTLR end "entryRuleConstantDistribution" | ||
1549 | |||
1550 | |||
1551 | // $ANTLR start "ruleConstantDistribution" | ||
1552 | // InternalCftLanguage.g:570:1: ruleConstantDistribution returns [EObject current=null] : (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ; | ||
1553 | public final EObject ruleConstantDistribution() throws RecognitionException { | ||
1554 | EObject current = null; | ||
1555 | |||
1556 | Token otherlv_0=null; | ||
1557 | Token otherlv_1=null; | ||
1558 | AntlrDatatypeRuleToken lv_p_2_0 = null; | ||
1559 | |||
1560 | |||
1561 | |||
1562 | enterRule(); | ||
1563 | |||
1564 | try { | ||
1565 | // InternalCftLanguage.g:576:2: ( (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ) | ||
1566 | // InternalCftLanguage.g:577:2: (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1567 | { | ||
1568 | // InternalCftLanguage.g:577:2: (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1569 | // InternalCftLanguage.g:578:3: otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) | ||
1570 | { | ||
1571 | otherlv_0=(Token)match(input,22,FOLLOW_15); | ||
1572 | |||
1573 | newLeafNode(otherlv_0, grammarAccess.getConstantDistributionAccess().getPKeyword_0()); | ||
1574 | |||
1575 | otherlv_1=(Token)match(input,23,FOLLOW_16); | ||
1576 | |||
1577 | newLeafNode(otherlv_1, grammarAccess.getConstantDistributionAccess().getEqualsSignKeyword_1()); | ||
1578 | |||
1579 | // InternalCftLanguage.g:586:3: ( (lv_p_2_0= ruleDouble ) ) | ||
1580 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1581 | { | ||
1582 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1583 | // InternalCftLanguage.g:588:5: lv_p_2_0= ruleDouble | ||
1584 | { | ||
1585 | |||
1586 | newCompositeNode(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0()); | ||
1587 | |||
1588 | pushFollow(FOLLOW_2); | ||
1589 | lv_p_2_0=ruleDouble(); | ||
1590 | |||
1591 | state._fsp--; | ||
1592 | |||
1593 | |||
1594 | if (current==null) { | ||
1595 | current = createModelElementForParent(grammarAccess.getConstantDistributionRule()); | ||
1596 | } | ||
1597 | set( | ||
1598 | current, | ||
1599 | "p", | ||
1600 | lv_p_2_0, | ||
1601 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
1602 | afterParserOrEnumRuleCall(); | ||
1285 | 1603 | ||
1286 | 1604 | ||
1287 | } | 1605 | } |
@@ -1289,33 +1607,116 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1289 | 1607 | ||
1290 | } | 1608 | } |
1291 | 1609 | ||
1292 | otherlv_1=(Token)match(input,21,FOLLOW_15); | ||
1293 | 1610 | ||
1294 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | 1611 | } |
1612 | |||
1613 | |||
1614 | } | ||
1615 | |||
1616 | |||
1617 | leaveRule(); | ||
1618 | |||
1619 | } | ||
1620 | |||
1621 | catch (RecognitionException re) { | ||
1622 | recover(input,re); | ||
1623 | appendSkippedTokens(); | ||
1624 | } | ||
1625 | finally { | ||
1626 | } | ||
1627 | return current; | ||
1628 | } | ||
1629 | // $ANTLR end "ruleConstantDistribution" | ||
1630 | |||
1631 | |||
1632 | // $ANTLR start "entryRuleExponentialDistribution" | ||
1633 | // InternalCftLanguage.g:609:1: entryRuleExponentialDistribution returns [EObject current=null] : iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ; | ||
1634 | public final EObject entryRuleExponentialDistribution() throws RecognitionException { | ||
1635 | EObject current = null; | ||
1636 | |||
1637 | EObject iv_ruleExponentialDistribution = null; | ||
1638 | |||
1639 | |||
1640 | try { | ||
1641 | // InternalCftLanguage.g:609:64: (iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ) | ||
1642 | // InternalCftLanguage.g:610:2: iv_ruleExponentialDistribution= ruleExponentialDistribution EOF | ||
1643 | { | ||
1644 | newCompositeNode(grammarAccess.getExponentialDistributionRule()); | ||
1645 | pushFollow(FOLLOW_1); | ||
1646 | iv_ruleExponentialDistribution=ruleExponentialDistribution(); | ||
1647 | |||
1648 | state._fsp--; | ||
1649 | |||
1650 | current =iv_ruleExponentialDistribution; | ||
1651 | match(input,EOF,FOLLOW_2); | ||
1652 | |||
1653 | } | ||
1654 | |||
1655 | } | ||
1656 | |||
1657 | catch (RecognitionException re) { | ||
1658 | recover(input,re); | ||
1659 | appendSkippedTokens(); | ||
1660 | } | ||
1661 | finally { | ||
1662 | } | ||
1663 | return current; | ||
1664 | } | ||
1665 | // $ANTLR end "entryRuleExponentialDistribution" | ||
1666 | |||
1667 | |||
1668 | // $ANTLR start "ruleExponentialDistribution" | ||
1669 | // InternalCftLanguage.g:616:1: ruleExponentialDistribution returns [EObject current=null] : (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ; | ||
1670 | public final EObject ruleExponentialDistribution() throws RecognitionException { | ||
1671 | EObject current = null; | ||
1672 | |||
1673 | Token otherlv_0=null; | ||
1674 | Token otherlv_1=null; | ||
1675 | AntlrDatatypeRuleToken lv_lambda_2_0 = null; | ||
1676 | |||
1677 | |||
1678 | |||
1679 | enterRule(); | ||
1680 | |||
1681 | try { | ||
1682 | // InternalCftLanguage.g:622:2: ( (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ) | ||
1683 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1684 | { | ||
1685 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1686 | // InternalCftLanguage.g:624:3: otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) | ||
1687 | { | ||
1688 | otherlv_0=(Token)match(input,24,FOLLOW_15); | ||
1689 | |||
1690 | newLeafNode(otherlv_0, grammarAccess.getExponentialDistributionAccess().getLambdaKeyword_0()); | ||
1295 | 1691 | ||
1296 | otherlv_2=(Token)match(input,22,FOLLOW_16); | 1692 | otherlv_1=(Token)match(input,23,FOLLOW_16); |
1297 | 1693 | ||
1298 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | 1694 | newLeafNode(otherlv_1, grammarAccess.getExponentialDistributionAccess().getEqualsSignKeyword_1()); |
1299 | 1695 | ||
1300 | // InternalCftLanguage.g:506:3: ( (lv_rate_3_0= RULE_DOULBE ) ) | 1696 | // InternalCftLanguage.g:632:3: ( (lv_lambda_2_0= ruleDouble ) ) |
1301 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | 1697 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) |
1302 | { | 1698 | { |
1303 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | 1699 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) |
1304 | // InternalCftLanguage.g:508:5: lv_rate_3_0= RULE_DOULBE | 1700 | // InternalCftLanguage.g:634:5: lv_lambda_2_0= ruleDouble |
1305 | { | 1701 | { |
1306 | lv_rate_3_0=(Token)match(input,RULE_DOULBE,FOLLOW_2); | ||
1307 | 1702 | ||
1308 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | 1703 | newCompositeNode(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0()); |
1309 | 1704 | ||
1705 | pushFollow(FOLLOW_2); | ||
1706 | lv_lambda_2_0=ruleDouble(); | ||
1707 | |||
1708 | state._fsp--; | ||
1709 | |||
1310 | 1710 | ||
1311 | if (current==null) { | 1711 | if (current==null) { |
1312 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 1712 | current = createModelElementForParent(grammarAccess.getExponentialDistributionRule()); |
1313 | } | 1713 | } |
1314 | setWithLastConsumed( | 1714 | set( |
1315 | current, | 1715 | current, |
1316 | "rate", | 1716 | "lambda", |
1317 | lv_rate_3_0, | 1717 | lv_lambda_2_0, |
1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | 1718 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); |
1719 | afterParserOrEnumRuleCall(); | ||
1319 | 1720 | ||
1320 | 1721 | ||
1321 | } | 1722 | } |
@@ -1342,11 +1743,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1342 | } | 1743 | } |
1343 | return current; | 1744 | return current; |
1344 | } | 1745 | } |
1345 | // $ANTLR end "ruleBasicEventDefinition" | 1746 | // $ANTLR end "ruleExponentialDistribution" |
1346 | 1747 | ||
1347 | 1748 | ||
1348 | // $ANTLR start "entryRuleGateDefinition" | 1749 | // $ANTLR start "entryRuleGateDefinition" |
1349 | // InternalCftLanguage.g:528:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; | 1750 | // InternalCftLanguage.g:655:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; |
1350 | public final EObject entryRuleGateDefinition() throws RecognitionException { | 1751 | public final EObject entryRuleGateDefinition() throws RecognitionException { |
1351 | EObject current = null; | 1752 | EObject current = null; |
1352 | 1753 | ||
@@ -1354,8 +1755,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1354 | 1755 | ||
1355 | 1756 | ||
1356 | try { | 1757 | try { |
1357 | // InternalCftLanguage.g:528:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) | 1758 | // InternalCftLanguage.g:655:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) |
1358 | // InternalCftLanguage.g:529:2: iv_ruleGateDefinition= ruleGateDefinition EOF | 1759 | // InternalCftLanguage.g:656:2: iv_ruleGateDefinition= ruleGateDefinition EOF |
1359 | { | 1760 | { |
1360 | newCompositeNode(grammarAccess.getGateDefinitionRule()); | 1761 | newCompositeNode(grammarAccess.getGateDefinitionRule()); |
1361 | pushFollow(FOLLOW_1); | 1762 | pushFollow(FOLLOW_1); |
@@ -1382,80 +1783,134 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1382 | 1783 | ||
1383 | 1784 | ||
1384 | // $ANTLR start "ruleGateDefinition" | 1785 | // $ANTLR start "ruleGateDefinition" |
1385 | // InternalCftLanguage.g:535:1: ruleGateDefinition returns [EObject current=null] : (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ; | 1786 | // InternalCftLanguage.g:662:1: ruleGateDefinition returns [EObject current=null] : (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ; |
1386 | public final EObject ruleGateDefinition() throws RecognitionException { | 1787 | public final EObject ruleGateDefinition() throws RecognitionException { |
1387 | EObject current = null; | 1788 | EObject current = null; |
1388 | 1789 | ||
1389 | EObject this_AndGate_0 = null; | 1790 | EObject this_AndGateDefinition_0 = null; |
1390 | 1791 | ||
1391 | EObject this_OrGate_1 = null; | 1792 | EObject this_OrGateDefinition_1 = null; |
1793 | |||
1794 | EObject this_KOfMGateDefinition_2 = null; | ||
1392 | 1795 | ||
1393 | 1796 | ||
1394 | 1797 | ||
1395 | enterRule(); | 1798 | enterRule(); |
1396 | 1799 | ||
1397 | try { | 1800 | try { |
1398 | // InternalCftLanguage.g:541:2: ( (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ) | 1801 | // InternalCftLanguage.g:668:2: ( (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ) |
1399 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | 1802 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) |
1400 | { | 1803 | { |
1401 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | 1804 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) |
1402 | int alt11=2; | 1805 | int alt12=3; |
1403 | int LA11_0 = input.LA(1); | 1806 | int LA12_0 = input.LA(1); |
1404 | 1807 | ||
1405 | if ( (LA11_0==RULE_ID) ) { | 1808 | if ( (LA12_0==RULE_ID) ) { |
1406 | int LA11_1 = input.LA(2); | 1809 | switch ( input.LA(2) ) { |
1810 | case RULE_INT: | ||
1811 | { | ||
1812 | alt12=3; | ||
1813 | } | ||
1814 | break; | ||
1815 | case 26: | ||
1816 | { | ||
1817 | alt12=2; | ||
1818 | } | ||
1819 | break; | ||
1820 | case 25: | ||
1821 | { | ||
1822 | alt12=1; | ||
1823 | } | ||
1824 | break; | ||
1825 | default: | ||
1826 | NoViableAltException nvae = | ||
1827 | new NoViableAltException("", 12, 1, input); | ||
1407 | 1828 | ||
1408 | if ( (LA11_1==24) ) { | 1829 | throw nvae; |
1409 | alt11=2; | ||
1410 | } | ||
1411 | else if ( (LA11_1==23) ) { | ||
1412 | alt11=1; | ||
1413 | } | 1830 | } |
1414 | else { | 1831 | |
1832 | } | ||
1833 | else if ( (LA12_0==RULE_OF_INT) ) { | ||
1834 | switch ( input.LA(2) ) { | ||
1835 | case RULE_INT: | ||
1836 | { | ||
1837 | alt12=3; | ||
1838 | } | ||
1839 | break; | ||
1840 | case 26: | ||
1841 | { | ||
1842 | alt12=2; | ||
1843 | } | ||
1844 | break; | ||
1845 | case 25: | ||
1846 | { | ||
1847 | alt12=1; | ||
1848 | } | ||
1849 | break; | ||
1850 | default: | ||
1415 | NoViableAltException nvae = | 1851 | NoViableAltException nvae = |
1416 | new NoViableAltException("", 11, 1, input); | 1852 | new NoViableAltException("", 12, 2, input); |
1417 | 1853 | ||
1418 | throw nvae; | 1854 | throw nvae; |
1419 | } | 1855 | } |
1856 | |||
1420 | } | 1857 | } |
1421 | else { | 1858 | else { |
1422 | NoViableAltException nvae = | 1859 | NoViableAltException nvae = |
1423 | new NoViableAltException("", 11, 0, input); | 1860 | new NoViableAltException("", 12, 0, input); |
1424 | 1861 | ||
1425 | throw nvae; | 1862 | throw nvae; |
1426 | } | 1863 | } |
1427 | switch (alt11) { | 1864 | switch (alt12) { |
1428 | case 1 : | 1865 | case 1 : |
1429 | // InternalCftLanguage.g:543:3: this_AndGate_0= ruleAndGate | 1866 | // InternalCftLanguage.g:670:3: this_AndGateDefinition_0= ruleAndGateDefinition |
1430 | { | 1867 | { |
1431 | 1868 | ||
1432 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | 1869 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateDefinitionParserRuleCall_0()); |
1433 | 1870 | ||
1434 | pushFollow(FOLLOW_2); | 1871 | pushFollow(FOLLOW_2); |
1435 | this_AndGate_0=ruleAndGate(); | 1872 | this_AndGateDefinition_0=ruleAndGateDefinition(); |
1436 | 1873 | ||
1437 | state._fsp--; | 1874 | state._fsp--; |
1438 | 1875 | ||
1439 | 1876 | ||
1440 | current = this_AndGate_0; | 1877 | current = this_AndGateDefinition_0; |
1441 | afterParserOrEnumRuleCall(); | 1878 | afterParserOrEnumRuleCall(); |
1442 | 1879 | ||
1443 | 1880 | ||
1444 | } | 1881 | } |
1445 | break; | 1882 | break; |
1446 | case 2 : | 1883 | case 2 : |
1447 | // InternalCftLanguage.g:552:3: this_OrGate_1= ruleOrGate | 1884 | // InternalCftLanguage.g:679:3: this_OrGateDefinition_1= ruleOrGateDefinition |
1448 | { | 1885 | { |
1449 | 1886 | ||
1450 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | 1887 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateDefinitionParserRuleCall_1()); |
1451 | 1888 | ||
1452 | pushFollow(FOLLOW_2); | 1889 | pushFollow(FOLLOW_2); |
1453 | this_OrGate_1=ruleOrGate(); | 1890 | this_OrGateDefinition_1=ruleOrGateDefinition(); |
1454 | 1891 | ||
1455 | state._fsp--; | 1892 | state._fsp--; |
1456 | 1893 | ||
1457 | 1894 | ||
1458 | current = this_OrGate_1; | 1895 | current = this_OrGateDefinition_1; |
1896 | afterParserOrEnumRuleCall(); | ||
1897 | |||
1898 | |||
1899 | } | ||
1900 | break; | ||
1901 | case 3 : | ||
1902 | // InternalCftLanguage.g:688:3: this_KOfMGateDefinition_2= ruleKOfMGateDefinition | ||
1903 | { | ||
1904 | |||
1905 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getKOfMGateDefinitionParserRuleCall_2()); | ||
1906 | |||
1907 | pushFollow(FOLLOW_2); | ||
1908 | this_KOfMGateDefinition_2=ruleKOfMGateDefinition(); | ||
1909 | |||
1910 | state._fsp--; | ||
1911 | |||
1912 | |||
1913 | current = this_KOfMGateDefinition_2; | ||
1459 | afterParserOrEnumRuleCall(); | 1914 | afterParserOrEnumRuleCall(); |
1460 | 1915 | ||
1461 | 1916 | ||
@@ -1483,25 +1938,25 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1483 | // $ANTLR end "ruleGateDefinition" | 1938 | // $ANTLR end "ruleGateDefinition" |
1484 | 1939 | ||
1485 | 1940 | ||
1486 | // $ANTLR start "entryRuleAndGate" | 1941 | // $ANTLR start "entryRuleAndGateDefinition" |
1487 | // InternalCftLanguage.g:564:1: entryRuleAndGate returns [EObject current=null] : iv_ruleAndGate= ruleAndGate EOF ; | 1942 | // InternalCftLanguage.g:700:1: entryRuleAndGateDefinition returns [EObject current=null] : iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ; |
1488 | public final EObject entryRuleAndGate() throws RecognitionException { | 1943 | public final EObject entryRuleAndGateDefinition() throws RecognitionException { |
1489 | EObject current = null; | 1944 | EObject current = null; |
1490 | 1945 | ||
1491 | EObject iv_ruleAndGate = null; | 1946 | EObject iv_ruleAndGateDefinition = null; |
1492 | 1947 | ||
1493 | 1948 | ||
1494 | try { | 1949 | try { |
1495 | // InternalCftLanguage.g:564:48: (iv_ruleAndGate= ruleAndGate EOF ) | 1950 | // InternalCftLanguage.g:700:58: (iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ) |
1496 | // InternalCftLanguage.g:565:2: iv_ruleAndGate= ruleAndGate EOF | 1951 | // InternalCftLanguage.g:701:2: iv_ruleAndGateDefinition= ruleAndGateDefinition EOF |
1497 | { | 1952 | { |
1498 | newCompositeNode(grammarAccess.getAndGateRule()); | 1953 | newCompositeNode(grammarAccess.getAndGateDefinitionRule()); |
1499 | pushFollow(FOLLOW_1); | 1954 | pushFollow(FOLLOW_1); |
1500 | iv_ruleAndGate=ruleAndGate(); | 1955 | iv_ruleAndGateDefinition=ruleAndGateDefinition(); |
1501 | 1956 | ||
1502 | state._fsp--; | 1957 | state._fsp--; |
1503 | 1958 | ||
1504 | current =iv_ruleAndGate; | 1959 | current =iv_ruleAndGateDefinition; |
1505 | match(input,EOF,FOLLOW_2); | 1960 | match(input,EOF,FOLLOW_2); |
1506 | 1961 | ||
1507 | } | 1962 | } |
@@ -1516,47 +1971,52 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1516 | } | 1971 | } |
1517 | return current; | 1972 | return current; |
1518 | } | 1973 | } |
1519 | // $ANTLR end "entryRuleAndGate" | 1974 | // $ANTLR end "entryRuleAndGateDefinition" |
1520 | 1975 | ||
1521 | 1976 | ||
1522 | // $ANTLR start "ruleAndGate" | 1977 | // $ANTLR start "ruleAndGateDefinition" |
1523 | // InternalCftLanguage.g:571:1: ruleAndGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ; | 1978 | // InternalCftLanguage.g:707:1: ruleAndGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ; |
1524 | public final EObject ruleAndGate() throws RecognitionException { | 1979 | public final EObject ruleAndGateDefinition() throws RecognitionException { |
1525 | EObject current = null; | 1980 | EObject current = null; |
1526 | 1981 | ||
1527 | Token lv_name_0_0=null; | ||
1528 | Token otherlv_1=null; | 1982 | Token otherlv_1=null; |
1529 | Token otherlv_2=null; | 1983 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
1984 | |||
1530 | 1985 | ||
1531 | 1986 | ||
1532 | enterRule(); | 1987 | enterRule(); |
1533 | 1988 | ||
1534 | try { | 1989 | try { |
1535 | // InternalCftLanguage.g:577:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ) | 1990 | // InternalCftLanguage.g:713:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ) |
1536 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | 1991 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) |
1537 | { | 1992 | { |
1538 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | 1993 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) |
1539 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* | 1994 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* |
1540 | { | 1995 | { |
1541 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) | 1996 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) |
1542 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | 1997 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) |
1543 | { | 1998 | { |
1544 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | 1999 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) |
1545 | // InternalCftLanguage.g:581:5: lv_name_0_0= RULE_ID | 2000 | // InternalCftLanguage.g:717:5: lv_name_0_0= ruleValidId |
1546 | { | 2001 | { |
1547 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_17); | ||
1548 | 2002 | ||
1549 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | 2003 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
1550 | 2004 | ||
2005 | pushFollow(FOLLOW_17); | ||
2006 | lv_name_0_0=ruleValidId(); | ||
2007 | |||
2008 | state._fsp--; | ||
2009 | |||
1551 | 2010 | ||
1552 | if (current==null) { | 2011 | if (current==null) { |
1553 | current = createModelElement(grammarAccess.getAndGateRule()); | 2012 | current = createModelElementForParent(grammarAccess.getAndGateDefinitionRule()); |
1554 | } | 2013 | } |
1555 | setWithLastConsumed( | 2014 | set( |
1556 | current, | 2015 | current, |
1557 | "name", | 2016 | "name", |
1558 | lv_name_0_0, | 2017 | lv_name_0_0, |
1559 | "org.eclipse.xtext.common.Terminals.ID"); | 2018 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
2019 | afterParserOrEnumRuleCall(); | ||
1560 | 2020 | ||
1561 | 2021 | ||
1562 | } | 2022 | } |
@@ -1564,36 +2024,43 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1564 | 2024 | ||
1565 | } | 2025 | } |
1566 | 2026 | ||
1567 | otherlv_1=(Token)match(input,23,FOLLOW_18); | 2027 | otherlv_1=(Token)match(input,25,FOLLOW_18); |
1568 | 2028 | ||
1569 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | 2029 | newLeafNode(otherlv_1, grammarAccess.getAndGateDefinitionAccess().getAndKeyword_1()); |
1570 | 2030 | ||
1571 | // InternalCftLanguage.g:601:3: ( (otherlv_2= RULE_ID ) )* | 2031 | // InternalCftLanguage.g:738:3: ( ( ruleValidId ) )* |
1572 | loop12: | 2032 | loop13: |
1573 | do { | 2033 | do { |
1574 | int alt12=2; | 2034 | int alt13=2; |
1575 | int LA12_0 = input.LA(1); | 2035 | int LA13_0 = input.LA(1); |
1576 | 2036 | ||
1577 | if ( (LA12_0==RULE_ID) ) { | 2037 | if ( ((LA13_0>=RULE_OF_INT && LA13_0<=RULE_ID)) ) { |
1578 | alt12=1; | 2038 | alt13=1; |
1579 | } | 2039 | } |
1580 | 2040 | ||
1581 | 2041 | ||
1582 | switch (alt12) { | 2042 | switch (alt13) { |
1583 | case 1 : | 2043 | case 1 : |
1584 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | 2044 | // InternalCftLanguage.g:739:4: ( ruleValidId ) |
1585 | { | 2045 | { |
1586 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | 2046 | // InternalCftLanguage.g:739:4: ( ruleValidId ) |
1587 | // InternalCftLanguage.g:603:5: otherlv_2= RULE_ID | 2047 | // InternalCftLanguage.g:740:5: ruleValidId |
1588 | { | 2048 | { |
1589 | 2049 | ||
1590 | if (current==null) { | 2050 | if (current==null) { |
1591 | current = createModelElement(grammarAccess.getAndGateRule()); | 2051 | current = createModelElement(grammarAccess.getAndGateDefinitionRule()); |
1592 | } | 2052 | } |
1593 | 2053 | ||
1594 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1595 | 2054 | ||
1596 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 2055 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
2056 | |||
2057 | pushFollow(FOLLOW_18); | ||
2058 | ruleValidId(); | ||
2059 | |||
2060 | state._fsp--; | ||
2061 | |||
2062 | |||
2063 | afterParserOrEnumRuleCall(); | ||
1597 | 2064 | ||
1598 | 2065 | ||
1599 | } | 2066 | } |
@@ -1603,7 +2070,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1603 | break; | 2070 | break; |
1604 | 2071 | ||
1605 | default : | 2072 | default : |
1606 | break loop12; | 2073 | break loop13; |
1607 | } | 2074 | } |
1608 | } while (true); | 2075 | } while (true); |
1609 | 2076 | ||
@@ -1626,28 +2093,28 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1626 | } | 2093 | } |
1627 | return current; | 2094 | return current; |
1628 | } | 2095 | } |
1629 | // $ANTLR end "ruleAndGate" | 2096 | // $ANTLR end "ruleAndGateDefinition" |
1630 | 2097 | ||
1631 | 2098 | ||
1632 | // $ANTLR start "entryRuleOrGate" | 2099 | // $ANTLR start "entryRuleOrGateDefinition" |
1633 | // InternalCftLanguage.g:618:1: entryRuleOrGate returns [EObject current=null] : iv_ruleOrGate= ruleOrGate EOF ; | 2100 | // InternalCftLanguage.g:758:1: entryRuleOrGateDefinition returns [EObject current=null] : iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ; |
1634 | public final EObject entryRuleOrGate() throws RecognitionException { | 2101 | public final EObject entryRuleOrGateDefinition() throws RecognitionException { |
1635 | EObject current = null; | 2102 | EObject current = null; |
1636 | 2103 | ||
1637 | EObject iv_ruleOrGate = null; | 2104 | EObject iv_ruleOrGateDefinition = null; |
1638 | 2105 | ||
1639 | 2106 | ||
1640 | try { | 2107 | try { |
1641 | // InternalCftLanguage.g:618:47: (iv_ruleOrGate= ruleOrGate EOF ) | 2108 | // InternalCftLanguage.g:758:57: (iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ) |
1642 | // InternalCftLanguage.g:619:2: iv_ruleOrGate= ruleOrGate EOF | 2109 | // InternalCftLanguage.g:759:2: iv_ruleOrGateDefinition= ruleOrGateDefinition EOF |
1643 | { | 2110 | { |
1644 | newCompositeNode(grammarAccess.getOrGateRule()); | 2111 | newCompositeNode(grammarAccess.getOrGateDefinitionRule()); |
1645 | pushFollow(FOLLOW_1); | 2112 | pushFollow(FOLLOW_1); |
1646 | iv_ruleOrGate=ruleOrGate(); | 2113 | iv_ruleOrGateDefinition=ruleOrGateDefinition(); |
1647 | 2114 | ||
1648 | state._fsp--; | 2115 | state._fsp--; |
1649 | 2116 | ||
1650 | current =iv_ruleOrGate; | 2117 | current =iv_ruleOrGateDefinition; |
1651 | match(input,EOF,FOLLOW_2); | 2118 | match(input,EOF,FOLLOW_2); |
1652 | 2119 | ||
1653 | } | 2120 | } |
@@ -1662,47 +2129,52 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1662 | } | 2129 | } |
1663 | return current; | 2130 | return current; |
1664 | } | 2131 | } |
1665 | // $ANTLR end "entryRuleOrGate" | 2132 | // $ANTLR end "entryRuleOrGateDefinition" |
1666 | 2133 | ||
1667 | 2134 | ||
1668 | // $ANTLR start "ruleOrGate" | 2135 | // $ANTLR start "ruleOrGateDefinition" |
1669 | // InternalCftLanguage.g:625:1: ruleOrGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ; | 2136 | // InternalCftLanguage.g:765:1: ruleOrGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ; |
1670 | public final EObject ruleOrGate() throws RecognitionException { | 2137 | public final EObject ruleOrGateDefinition() throws RecognitionException { |
1671 | EObject current = null; | 2138 | EObject current = null; |
1672 | 2139 | ||
1673 | Token lv_name_0_0=null; | ||
1674 | Token otherlv_1=null; | 2140 | Token otherlv_1=null; |
1675 | Token otherlv_2=null; | 2141 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
2142 | |||
1676 | 2143 | ||
1677 | 2144 | ||
1678 | enterRule(); | 2145 | enterRule(); |
1679 | 2146 | ||
1680 | try { | 2147 | try { |
1681 | // InternalCftLanguage.g:631:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ) | 2148 | // InternalCftLanguage.g:771:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ) |
1682 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | 2149 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) |
1683 | { | 2150 | { |
1684 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | 2151 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) |
1685 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* | 2152 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* |
1686 | { | 2153 | { |
1687 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) | 2154 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) |
1688 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | 2155 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) |
1689 | { | 2156 | { |
1690 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | 2157 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) |
1691 | // InternalCftLanguage.g:635:5: lv_name_0_0= RULE_ID | 2158 | // InternalCftLanguage.g:775:5: lv_name_0_0= ruleValidId |
1692 | { | 2159 | { |
1693 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_19); | ||
1694 | 2160 | ||
1695 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | 2161 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
1696 | 2162 | ||
2163 | pushFollow(FOLLOW_19); | ||
2164 | lv_name_0_0=ruleValidId(); | ||
2165 | |||
2166 | state._fsp--; | ||
2167 | |||
1697 | 2168 | ||
1698 | if (current==null) { | 2169 | if (current==null) { |
1699 | current = createModelElement(grammarAccess.getOrGateRule()); | 2170 | current = createModelElementForParent(grammarAccess.getOrGateDefinitionRule()); |
1700 | } | 2171 | } |
1701 | setWithLastConsumed( | 2172 | set( |
1702 | current, | 2173 | current, |
1703 | "name", | 2174 | "name", |
1704 | lv_name_0_0, | 2175 | lv_name_0_0, |
1705 | "org.eclipse.xtext.common.Terminals.ID"); | 2176 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
2177 | afterParserOrEnumRuleCall(); | ||
1706 | 2178 | ||
1707 | 2179 | ||
1708 | } | 2180 | } |
@@ -1710,36 +2182,43 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1710 | 2182 | ||
1711 | } | 2183 | } |
1712 | 2184 | ||
1713 | otherlv_1=(Token)match(input,24,FOLLOW_18); | 2185 | otherlv_1=(Token)match(input,26,FOLLOW_18); |
1714 | 2186 | ||
1715 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | 2187 | newLeafNode(otherlv_1, grammarAccess.getOrGateDefinitionAccess().getOrKeyword_1()); |
1716 | 2188 | ||
1717 | // InternalCftLanguage.g:655:3: ( (otherlv_2= RULE_ID ) )* | 2189 | // InternalCftLanguage.g:796:3: ( ( ruleValidId ) )* |
1718 | loop13: | 2190 | loop14: |
1719 | do { | 2191 | do { |
1720 | int alt13=2; | 2192 | int alt14=2; |
1721 | int LA13_0 = input.LA(1); | 2193 | int LA14_0 = input.LA(1); |
1722 | 2194 | ||
1723 | if ( (LA13_0==RULE_ID) ) { | 2195 | if ( ((LA14_0>=RULE_OF_INT && LA14_0<=RULE_ID)) ) { |
1724 | alt13=1; | 2196 | alt14=1; |
1725 | } | 2197 | } |
1726 | 2198 | ||
1727 | 2199 | ||
1728 | switch (alt13) { | 2200 | switch (alt14) { |
1729 | case 1 : | 2201 | case 1 : |
1730 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | 2202 | // InternalCftLanguage.g:797:4: ( ruleValidId ) |
1731 | { | 2203 | { |
1732 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | 2204 | // InternalCftLanguage.g:797:4: ( ruleValidId ) |
1733 | // InternalCftLanguage.g:657:5: otherlv_2= RULE_ID | 2205 | // InternalCftLanguage.g:798:5: ruleValidId |
1734 | { | 2206 | { |
1735 | 2207 | ||
1736 | if (current==null) { | 2208 | if (current==null) { |
1737 | current = createModelElement(grammarAccess.getOrGateRule()); | 2209 | current = createModelElement(grammarAccess.getOrGateDefinitionRule()); |
1738 | } | 2210 | } |
1739 | 2211 | ||
1740 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1741 | 2212 | ||
1742 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 2213 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
2214 | |||
2215 | pushFollow(FOLLOW_18); | ||
2216 | ruleValidId(); | ||
2217 | |||
2218 | state._fsp--; | ||
2219 | |||
2220 | |||
2221 | afterParserOrEnumRuleCall(); | ||
1743 | 2222 | ||
1744 | 2223 | ||
1745 | } | 2224 | } |
@@ -1749,7 +2228,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1749 | break; | 2228 | break; |
1750 | 2229 | ||
1751 | default : | 2230 | default : |
1752 | break loop13; | 2231 | break loop14; |
1753 | } | 2232 | } |
1754 | } while (true); | 2233 | } while (true); |
1755 | 2234 | ||
@@ -1772,11 +2251,288 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1772 | } | 2251 | } |
1773 | return current; | 2252 | return current; |
1774 | } | 2253 | } |
1775 | // $ANTLR end "ruleOrGate" | 2254 | // $ANTLR end "ruleOrGateDefinition" |
2255 | |||
2256 | |||
2257 | // $ANTLR start "entryRuleKOfMGateDefinition" | ||
2258 | // InternalCftLanguage.g:816:1: entryRuleKOfMGateDefinition returns [EObject current=null] : iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ; | ||
2259 | public final EObject entryRuleKOfMGateDefinition() throws RecognitionException { | ||
2260 | EObject current = null; | ||
2261 | |||
2262 | EObject iv_ruleKOfMGateDefinition = null; | ||
2263 | |||
2264 | |||
2265 | try { | ||
2266 | // InternalCftLanguage.g:816:59: (iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ) | ||
2267 | // InternalCftLanguage.g:817:2: iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF | ||
2268 | { | ||
2269 | newCompositeNode(grammarAccess.getKOfMGateDefinitionRule()); | ||
2270 | pushFollow(FOLLOW_1); | ||
2271 | iv_ruleKOfMGateDefinition=ruleKOfMGateDefinition(); | ||
2272 | |||
2273 | state._fsp--; | ||
2274 | |||
2275 | current =iv_ruleKOfMGateDefinition; | ||
2276 | match(input,EOF,FOLLOW_2); | ||
2277 | |||
2278 | } | ||
2279 | |||
2280 | } | ||
2281 | |||
2282 | catch (RecognitionException re) { | ||
2283 | recover(input,re); | ||
2284 | appendSkippedTokens(); | ||
2285 | } | ||
2286 | finally { | ||
2287 | } | ||
2288 | return current; | ||
2289 | } | ||
2290 | // $ANTLR end "entryRuleKOfMGateDefinition" | ||
2291 | |||
2292 | |||
2293 | // $ANTLR start "ruleKOfMGateDefinition" | ||
2294 | // InternalCftLanguage.g:823:1: ruleKOfMGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ; | ||
2295 | public final EObject ruleKOfMGateDefinition() throws RecognitionException { | ||
2296 | EObject current = null; | ||
2297 | |||
2298 | Token lv_k_1_0=null; | ||
2299 | Token otherlv_2=null; | ||
2300 | Token lv_m_3_0=null; | ||
2301 | Token lv_m_4_0=null; | ||
2302 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
2303 | |||
2304 | |||
2305 | |||
2306 | enterRule(); | ||
2307 | |||
2308 | try { | ||
2309 | // InternalCftLanguage.g:829:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ) | ||
2310 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2311 | { | ||
2312 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2313 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* | ||
2314 | { | ||
2315 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) | ||
2316 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2317 | { | ||
2318 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2319 | // InternalCftLanguage.g:833:5: lv_name_0_0= ruleValidId | ||
2320 | { | ||
2321 | |||
2322 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
2323 | |||
2324 | pushFollow(FOLLOW_20); | ||
2325 | lv_name_0_0=ruleValidId(); | ||
2326 | |||
2327 | state._fsp--; | ||
2328 | |||
2329 | |||
2330 | if (current==null) { | ||
2331 | current = createModelElementForParent(grammarAccess.getKOfMGateDefinitionRule()); | ||
2332 | } | ||
2333 | set( | ||
2334 | current, | ||
2335 | "name", | ||
2336 | lv_name_0_0, | ||
2337 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2338 | afterParserOrEnumRuleCall(); | ||
2339 | |||
2340 | |||
2341 | } | ||
2342 | |||
2343 | |||
2344 | } | ||
2345 | |||
2346 | // InternalCftLanguage.g:850:3: ( (lv_k_1_0= RULE_INT ) ) | ||
2347 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2348 | { | ||
2349 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2350 | // InternalCftLanguage.g:852:5: lv_k_1_0= RULE_INT | ||
2351 | { | ||
2352 | lv_k_1_0=(Token)match(input,RULE_INT,FOLLOW_21); | ||
2353 | |||
2354 | newLeafNode(lv_k_1_0, grammarAccess.getKOfMGateDefinitionAccess().getKINTTerminalRuleCall_1_0()); | ||
2355 | |||
2356 | |||
2357 | if (current==null) { | ||
2358 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2359 | } | ||
2360 | setWithLastConsumed( | ||
2361 | current, | ||
2362 | "k", | ||
2363 | lv_k_1_0, | ||
2364 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2365 | |||
2366 | |||
2367 | } | ||
2368 | |||
2369 | |||
2370 | } | ||
2371 | |||
2372 | // InternalCftLanguage.g:868:3: ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) | ||
2373 | int alt15=2; | ||
2374 | int LA15_0 = input.LA(1); | ||
2375 | |||
2376 | if ( (LA15_0==27) ) { | ||
2377 | alt15=1; | ||
2378 | } | ||
2379 | else if ( (LA15_0==RULE_OF_INT) ) { | ||
2380 | alt15=2; | ||
2381 | } | ||
2382 | else { | ||
2383 | NoViableAltException nvae = | ||
2384 | new NoViableAltException("", 15, 0, input); | ||
2385 | |||
2386 | throw nvae; | ||
2387 | } | ||
2388 | switch (alt15) { | ||
2389 | case 1 : | ||
2390 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2391 | { | ||
2392 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2393 | // InternalCftLanguage.g:870:5: otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) | ||
2394 | { | ||
2395 | otherlv_2=(Token)match(input,27,FOLLOW_20); | ||
2396 | |||
2397 | newLeafNode(otherlv_2, grammarAccess.getKOfMGateDefinitionAccess().getOfKeyword_2_0_0()); | ||
2398 | |||
2399 | // InternalCftLanguage.g:874:5: ( (lv_m_3_0= RULE_INT ) ) | ||
2400 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2401 | { | ||
2402 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2403 | // InternalCftLanguage.g:876:7: lv_m_3_0= RULE_INT | ||
2404 | { | ||
2405 | lv_m_3_0=(Token)match(input,RULE_INT,FOLLOW_18); | ||
2406 | |||
2407 | newLeafNode(lv_m_3_0, grammarAccess.getKOfMGateDefinitionAccess().getMINTTerminalRuleCall_2_0_1_0()); | ||
2408 | |||
2409 | |||
2410 | if (current==null) { | ||
2411 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2412 | } | ||
2413 | setWithLastConsumed( | ||
2414 | current, | ||
2415 | "m", | ||
2416 | lv_m_3_0, | ||
2417 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2418 | |||
2419 | |||
2420 | } | ||
2421 | |||
2422 | |||
2423 | } | ||
2424 | |||
2425 | |||
2426 | } | ||
2427 | |||
2428 | |||
2429 | } | ||
2430 | break; | ||
2431 | case 2 : | ||
2432 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2433 | { | ||
2434 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2435 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2436 | { | ||
2437 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2438 | // InternalCftLanguage.g:896:6: lv_m_4_0= RULE_OF_INT | ||
2439 | { | ||
2440 | lv_m_4_0=(Token)match(input,RULE_OF_INT,FOLLOW_18); | ||
2441 | |||
2442 | newLeafNode(lv_m_4_0, grammarAccess.getKOfMGateDefinitionAccess().getMOF_INTTerminalRuleCall_2_1_0()); | ||
2443 | |||
2444 | |||
2445 | if (current==null) { | ||
2446 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2447 | } | ||
2448 | setWithLastConsumed( | ||
2449 | current, | ||
2450 | "m", | ||
2451 | lv_m_4_0, | ||
2452 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
2453 | |||
2454 | |||
2455 | } | ||
2456 | |||
2457 | |||
2458 | } | ||
2459 | |||
2460 | |||
2461 | } | ||
2462 | break; | ||
2463 | |||
2464 | } | ||
2465 | |||
2466 | // InternalCftLanguage.g:913:3: ( ( ruleValidId ) )* | ||
2467 | loop16: | ||
2468 | do { | ||
2469 | int alt16=2; | ||
2470 | int LA16_0 = input.LA(1); | ||
2471 | |||
2472 | if ( ((LA16_0>=RULE_OF_INT && LA16_0<=RULE_ID)) ) { | ||
2473 | alt16=1; | ||
2474 | } | ||
2475 | |||
2476 | |||
2477 | switch (alt16) { | ||
2478 | case 1 : | ||
2479 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2480 | { | ||
2481 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2482 | // InternalCftLanguage.g:915:5: ruleValidId | ||
2483 | { | ||
2484 | |||
2485 | if (current==null) { | ||
2486 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2487 | } | ||
2488 | |||
2489 | |||
2490 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_3_0()); | ||
2491 | |||
2492 | pushFollow(FOLLOW_18); | ||
2493 | ruleValidId(); | ||
2494 | |||
2495 | state._fsp--; | ||
2496 | |||
2497 | |||
2498 | afterParserOrEnumRuleCall(); | ||
2499 | |||
2500 | |||
2501 | } | ||
2502 | |||
2503 | |||
2504 | } | ||
2505 | break; | ||
2506 | |||
2507 | default : | ||
2508 | break loop16; | ||
2509 | } | ||
2510 | } while (true); | ||
2511 | |||
2512 | |||
2513 | } | ||
2514 | |||
2515 | |||
2516 | } | ||
2517 | |||
2518 | |||
2519 | leaveRule(); | ||
2520 | |||
2521 | } | ||
2522 | |||
2523 | catch (RecognitionException re) { | ||
2524 | recover(input,re); | ||
2525 | appendSkippedTokens(); | ||
2526 | } | ||
2527 | finally { | ||
2528 | } | ||
2529 | return current; | ||
2530 | } | ||
2531 | // $ANTLR end "ruleKOfMGateDefinition" | ||
1776 | 2532 | ||
1777 | 2533 | ||
1778 | // $ANTLR start "entryRuleTransformationDefinition" | 2534 | // $ANTLR start "entryRuleTransformationDefinition" |
1779 | // InternalCftLanguage.g:672:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; | 2535 | // InternalCftLanguage.g:933:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; |
1780 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { | 2536 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { |
1781 | EObject current = null; | 2537 | EObject current = null; |
1782 | 2538 | ||
@@ -1784,8 +2540,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1784 | 2540 | ||
1785 | 2541 | ||
1786 | try { | 2542 | try { |
1787 | // InternalCftLanguage.g:672:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) | 2543 | // InternalCftLanguage.g:933:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) |
1788 | // InternalCftLanguage.g:673:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF | 2544 | // InternalCftLanguage.g:934:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF |
1789 | { | 2545 | { |
1790 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); | 2546 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); |
1791 | pushFollow(FOLLOW_1); | 2547 | pushFollow(FOLLOW_1); |
@@ -1812,14 +2568,15 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1812 | 2568 | ||
1813 | 2569 | ||
1814 | // $ANTLR start "ruleTransformationDefinition" | 2570 | // $ANTLR start "ruleTransformationDefinition" |
1815 | // InternalCftLanguage.g:679:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; | 2571 | // InternalCftLanguage.g:940:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; |
1816 | public final EObject ruleTransformationDefinition() throws RecognitionException { | 2572 | public final EObject ruleTransformationDefinition() throws RecognitionException { |
1817 | EObject current = null; | 2573 | EObject current = null; |
1818 | 2574 | ||
1819 | Token otherlv_0=null; | 2575 | Token otherlv_0=null; |
1820 | Token lv_name_1_0=null; | ||
1821 | Token otherlv_2=null; | 2576 | Token otherlv_2=null; |
1822 | Token otherlv_4=null; | 2577 | Token otherlv_4=null; |
2578 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
2579 | |||
1823 | EObject lv_mappingDefinitions_3_0 = null; | 2580 | EObject lv_mappingDefinitions_3_0 = null; |
1824 | 2581 | ||
1825 | 2582 | ||
@@ -1827,35 +2584,40 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1827 | enterRule(); | 2584 | enterRule(); |
1828 | 2585 | ||
1829 | try { | 2586 | try { |
1830 | // InternalCftLanguage.g:685:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) | 2587 | // InternalCftLanguage.g:946:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) |
1831 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | 2588 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) |
1832 | { | 2589 | { |
1833 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | 2590 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) |
1834 | // InternalCftLanguage.g:687:3: otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' | 2591 | // InternalCftLanguage.g:948:3: otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' |
1835 | { | 2592 | { |
1836 | otherlv_0=(Token)match(input,25,FOLLOW_3); | 2593 | otherlv_0=(Token)match(input,28,FOLLOW_3); |
1837 | 2594 | ||
1838 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | 2595 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); |
1839 | 2596 | ||
1840 | // InternalCftLanguage.g:691:3: ( (lv_name_1_0= RULE_ID ) ) | 2597 | // InternalCftLanguage.g:952:3: ( (lv_name_1_0= ruleValidId ) ) |
1841 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | 2598 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) |
1842 | { | 2599 | { |
1843 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | 2600 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) |
1844 | // InternalCftLanguage.g:693:5: lv_name_1_0= RULE_ID | 2601 | // InternalCftLanguage.g:954:5: lv_name_1_0= ruleValidId |
1845 | { | 2602 | { |
1846 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
1847 | 2603 | ||
1848 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 2604 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
1849 | 2605 | ||
2606 | pushFollow(FOLLOW_8); | ||
2607 | lv_name_1_0=ruleValidId(); | ||
2608 | |||
2609 | state._fsp--; | ||
2610 | |||
1850 | 2611 | ||
1851 | if (current==null) { | 2612 | if (current==null) { |
1852 | current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | 2613 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); |
1853 | } | 2614 | } |
1854 | setWithLastConsumed( | 2615 | set( |
1855 | current, | 2616 | current, |
1856 | "name", | 2617 | "name", |
1857 | lv_name_1_0, | 2618 | lv_name_1_0, |
1858 | "org.eclipse.xtext.common.Terminals.ID"); | 2619 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
2620 | afterParserOrEnumRuleCall(); | ||
1859 | 2621 | ||
1860 | 2622 | ||
1861 | } | 2623 | } |
@@ -1863,32 +2625,32 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1863 | 2625 | ||
1864 | } | 2626 | } |
1865 | 2627 | ||
1866 | otherlv_2=(Token)match(input,16,FOLLOW_20); | 2628 | otherlv_2=(Token)match(input,17,FOLLOW_22); |
1867 | 2629 | ||
1868 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | 2630 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); |
1869 | 2631 | ||
1870 | // InternalCftLanguage.g:713:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* | 2632 | // InternalCftLanguage.g:975:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* |
1871 | loop14: | 2633 | loop17: |
1872 | do { | 2634 | do { |
1873 | int alt14=2; | 2635 | int alt17=2; |
1874 | int LA14_0 = input.LA(1); | 2636 | int LA17_0 = input.LA(1); |
1875 | 2637 | ||
1876 | if ( ((LA14_0>=26 && LA14_0<=27)) ) { | 2638 | if ( ((LA17_0>=29 && LA17_0<=30)) ) { |
1877 | alt14=1; | 2639 | alt17=1; |
1878 | } | 2640 | } |
1879 | 2641 | ||
1880 | 2642 | ||
1881 | switch (alt14) { | 2643 | switch (alt17) { |
1882 | case 1 : | 2644 | case 1 : |
1883 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | 2645 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) |
1884 | { | 2646 | { |
1885 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | 2647 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) |
1886 | // InternalCftLanguage.g:715:5: lv_mappingDefinitions_3_0= ruleMappingDefinition | 2648 | // InternalCftLanguage.g:977:5: lv_mappingDefinitions_3_0= ruleMappingDefinition |
1887 | { | 2649 | { |
1888 | 2650 | ||
1889 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | 2651 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); |
1890 | 2652 | ||
1891 | pushFollow(FOLLOW_20); | 2653 | pushFollow(FOLLOW_22); |
1892 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); | 2654 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); |
1893 | 2655 | ||
1894 | state._fsp--; | 2656 | state._fsp--; |
@@ -1912,11 +2674,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1912 | break; | 2674 | break; |
1913 | 2675 | ||
1914 | default : | 2676 | default : |
1915 | break loop14; | 2677 | break loop17; |
1916 | } | 2678 | } |
1917 | } while (true); | 2679 | } while (true); |
1918 | 2680 | ||
1919 | otherlv_4=(Token)match(input,19,FOLLOW_2); | 2681 | otherlv_4=(Token)match(input,20,FOLLOW_2); |
1920 | 2682 | ||
1921 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | 2683 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); |
1922 | 2684 | ||
@@ -1943,7 +2705,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1943 | 2705 | ||
1944 | 2706 | ||
1945 | // $ANTLR start "entryRuleMappingDefinition" | 2707 | // $ANTLR start "entryRuleMappingDefinition" |
1946 | // InternalCftLanguage.g:740:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; | 2708 | // InternalCftLanguage.g:1002:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; |
1947 | public final EObject entryRuleMappingDefinition() throws RecognitionException { | 2709 | public final EObject entryRuleMappingDefinition() throws RecognitionException { |
1948 | EObject current = null; | 2710 | EObject current = null; |
1949 | 2711 | ||
@@ -1951,8 +2713,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1951 | 2713 | ||
1952 | 2714 | ||
1953 | try { | 2715 | try { |
1954 | // InternalCftLanguage.g:740:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) | 2716 | // InternalCftLanguage.g:1002:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) |
1955 | // InternalCftLanguage.g:741:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF | 2717 | // InternalCftLanguage.g:1003:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF |
1956 | { | 2718 | { |
1957 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); | 2719 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); |
1958 | pushFollow(FOLLOW_1); | 2720 | pushFollow(FOLLOW_1); |
@@ -1979,7 +2741,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1979 | 2741 | ||
1980 | 2742 | ||
1981 | // $ANTLR start "ruleMappingDefinition" | 2743 | // $ANTLR start "ruleMappingDefinition" |
1982 | // InternalCftLanguage.g:747:1: ruleMappingDefinition returns [EObject current=null] : ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ; | 2744 | // InternalCftLanguage.g:1009:1: ruleMappingDefinition returns [EObject current=null] : ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ; |
1983 | public final EObject ruleMappingDefinition() throws RecognitionException { | 2745 | public final EObject ruleMappingDefinition() throws RecognitionException { |
1984 | EObject current = null; | 2746 | EObject current = null; |
1985 | 2747 | ||
@@ -2006,27 +2768,27 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2006 | enterRule(); | 2768 | enterRule(); |
2007 | 2769 | ||
2008 | try { | 2770 | try { |
2009 | // InternalCftLanguage.g:753:2: ( ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ) | 2771 | // InternalCftLanguage.g:1015:2: ( ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ) |
2010 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | 2772 | // InternalCftLanguage.g:1016:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) |
2011 | { | 2773 | { |
2012 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | 2774 | // InternalCftLanguage.g:1016:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) |
2013 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | 2775 | // InternalCftLanguage.g:1017:3: ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? |
2014 | { | 2776 | { |
2015 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? | 2777 | // InternalCftLanguage.g:1017:3: ( (lv_topLevel_0_0= 'toplevel' ) )? |
2016 | int alt15=2; | 2778 | int alt18=2; |
2017 | int LA15_0 = input.LA(1); | 2779 | int LA18_0 = input.LA(1); |
2018 | 2780 | ||
2019 | if ( (LA15_0==26) ) { | 2781 | if ( (LA18_0==29) ) { |
2020 | alt15=1; | 2782 | alt18=1; |
2021 | } | 2783 | } |
2022 | switch (alt15) { | 2784 | switch (alt18) { |
2023 | case 1 : | 2785 | case 1 : |
2024 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | 2786 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) |
2025 | { | 2787 | { |
2026 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | 2788 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) |
2027 | // InternalCftLanguage.g:757:5: lv_topLevel_0_0= 'toplevel' | 2789 | // InternalCftLanguage.g:1019:5: lv_topLevel_0_0= 'toplevel' |
2028 | { | 2790 | { |
2029 | lv_topLevel_0_0=(Token)match(input,26,FOLLOW_21); | 2791 | lv_topLevel_0_0=(Token)match(input,29,FOLLOW_23); |
2030 | 2792 | ||
2031 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | 2793 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); |
2032 | 2794 | ||
@@ -2045,15 +2807,15 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2045 | 2807 | ||
2046 | } | 2808 | } |
2047 | 2809 | ||
2048 | otherlv_1=(Token)match(input,27,FOLLOW_3); | 2810 | otherlv_1=(Token)match(input,30,FOLLOW_3); |
2049 | 2811 | ||
2050 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | 2812 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); |
2051 | 2813 | ||
2052 | // InternalCftLanguage.g:773:3: ( ( ruleQualifiedName ) ) | 2814 | // InternalCftLanguage.g:1035:3: ( ( ruleQualifiedName ) ) |
2053 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | 2815 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) |
2054 | { | 2816 | { |
2055 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | 2817 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) |
2056 | // InternalCftLanguage.g:775:5: ruleQualifiedName | 2818 | // InternalCftLanguage.g:1037:5: ruleQualifiedName |
2057 | { | 2819 | { |
2058 | 2820 | ||
2059 | if (current==null) { | 2821 | if (current==null) { |
@@ -2063,7 +2825,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2063 | 2825 | ||
2064 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | 2826 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); |
2065 | 2827 | ||
2066 | pushFollow(FOLLOW_22); | 2828 | pushFollow(FOLLOW_24); |
2067 | ruleQualifiedName(); | 2829 | ruleQualifiedName(); |
2068 | 2830 | ||
2069 | state._fsp--; | 2831 | state._fsp--; |
@@ -2077,20 +2839,20 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2077 | 2839 | ||
2078 | } | 2840 | } |
2079 | 2841 | ||
2080 | otherlv_3=(Token)match(input,28,FOLLOW_3); | 2842 | otherlv_3=(Token)match(input,31,FOLLOW_3); |
2081 | 2843 | ||
2082 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | 2844 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); |
2083 | 2845 | ||
2084 | // InternalCftLanguage.g:793:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) | 2846 | // InternalCftLanguage.g:1055:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) |
2085 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | 2847 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) |
2086 | { | 2848 | { |
2087 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | 2849 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) |
2088 | // InternalCftLanguage.g:795:5: lv_parameters_4_0= ruleMappingParameter | 2850 | // InternalCftLanguage.g:1057:5: lv_parameters_4_0= ruleMappingParameter |
2089 | { | 2851 | { |
2090 | 2852 | ||
2091 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | 2853 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); |
2092 | 2854 | ||
2093 | pushFollow(FOLLOW_23); | 2855 | pushFollow(FOLLOW_25); |
2094 | lv_parameters_4_0=ruleMappingParameter(); | 2856 | lv_parameters_4_0=ruleMappingParameter(); |
2095 | 2857 | ||
2096 | state._fsp--; | 2858 | state._fsp--; |
@@ -2112,35 +2874,35 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2112 | 2874 | ||
2113 | } | 2875 | } |
2114 | 2876 | ||
2115 | // InternalCftLanguage.g:812:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* | 2877 | // InternalCftLanguage.g:1074:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* |
2116 | loop16: | 2878 | loop19: |
2117 | do { | 2879 | do { |
2118 | int alt16=2; | 2880 | int alt19=2; |
2119 | int LA16_0 = input.LA(1); | 2881 | int LA19_0 = input.LA(1); |
2120 | 2882 | ||
2121 | if ( (LA16_0==29) ) { | 2883 | if ( (LA19_0==32) ) { |
2122 | alt16=1; | 2884 | alt19=1; |
2123 | } | 2885 | } |
2124 | 2886 | ||
2125 | 2887 | ||
2126 | switch (alt16) { | 2888 | switch (alt19) { |
2127 | case 1 : | 2889 | case 1 : |
2128 | // InternalCftLanguage.g:813:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) | 2890 | // InternalCftLanguage.g:1075:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) |
2129 | { | 2891 | { |
2130 | otherlv_5=(Token)match(input,29,FOLLOW_3); | 2892 | otherlv_5=(Token)match(input,32,FOLLOW_3); |
2131 | 2893 | ||
2132 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | 2894 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); |
2133 | 2895 | ||
2134 | // InternalCftLanguage.g:817:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) | 2896 | // InternalCftLanguage.g:1079:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) |
2135 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | 2897 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) |
2136 | { | 2898 | { |
2137 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | 2899 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) |
2138 | // InternalCftLanguage.g:819:6: lv_parameters_6_0= ruleMappingParameter | 2900 | // InternalCftLanguage.g:1081:6: lv_parameters_6_0= ruleMappingParameter |
2139 | { | 2901 | { |
2140 | 2902 | ||
2141 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | 2903 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); |
2142 | 2904 | ||
2143 | pushFollow(FOLLOW_23); | 2905 | pushFollow(FOLLOW_25); |
2144 | lv_parameters_6_0=ruleMappingParameter(); | 2906 | lv_parameters_6_0=ruleMappingParameter(); |
2145 | 2907 | ||
2146 | state._fsp--; | 2908 | state._fsp--; |
@@ -2167,32 +2929,32 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2167 | break; | 2929 | break; |
2168 | 2930 | ||
2169 | default : | 2931 | default : |
2170 | break loop16; | 2932 | break loop19; |
2171 | } | 2933 | } |
2172 | } while (true); | 2934 | } while (true); |
2173 | 2935 | ||
2174 | otherlv_7=(Token)match(input,30,FOLLOW_24); | 2936 | otherlv_7=(Token)match(input,33,FOLLOW_26); |
2175 | 2937 | ||
2176 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | 2938 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); |
2177 | 2939 | ||
2178 | // InternalCftLanguage.g:841:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? | 2940 | // InternalCftLanguage.g:1103:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? |
2179 | int alt17=2; | 2941 | int alt20=2; |
2180 | int LA17_0 = input.LA(1); | 2942 | int LA20_0 = input.LA(1); |
2181 | 2943 | ||
2182 | if ( (LA17_0==36) ) { | 2944 | if ( (LA20_0==39) ) { |
2183 | alt17=1; | 2945 | alt20=1; |
2184 | } | 2946 | } |
2185 | switch (alt17) { | 2947 | switch (alt20) { |
2186 | case 1 : | 2948 | case 1 : |
2187 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | 2949 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) |
2188 | { | 2950 | { |
2189 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | 2951 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) |
2190 | // InternalCftLanguage.g:843:5: lv_componentInstance_8_0= ruleComponentInstance | 2952 | // InternalCftLanguage.g:1105:5: lv_componentInstance_8_0= ruleComponentInstance |
2191 | { | 2953 | { |
2192 | 2954 | ||
2193 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | 2955 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); |
2194 | 2956 | ||
2195 | pushFollow(FOLLOW_25); | 2957 | pushFollow(FOLLOW_27); |
2196 | lv_componentInstance_8_0=ruleComponentInstance(); | 2958 | lv_componentInstance_8_0=ruleComponentInstance(); |
2197 | 2959 | ||
2198 | state._fsp--; | 2960 | state._fsp--; |
@@ -2217,61 +2979,61 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2217 | 2979 | ||
2218 | } | 2980 | } |
2219 | 2981 | ||
2220 | // InternalCftLanguage.g:860:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | 2982 | // InternalCftLanguage.g:1122:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? |
2221 | int alt20=2; | 2983 | int alt23=2; |
2222 | int LA20_0 = input.LA(1); | 2984 | int LA23_0 = input.LA(1); |
2223 | 2985 | ||
2224 | if ( (LA20_0==16) ) { | 2986 | if ( (LA23_0==17) ) { |
2225 | alt20=1; | 2987 | alt23=1; |
2226 | } | 2988 | } |
2227 | switch (alt20) { | 2989 | switch (alt23) { |
2228 | case 1 : | 2990 | case 1 : |
2229 | // InternalCftLanguage.g:861:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' | 2991 | // InternalCftLanguage.g:1123:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' |
2230 | { | 2992 | { |
2231 | otherlv_9=(Token)match(input,16,FOLLOW_26); | 2993 | otherlv_9=(Token)match(input,17,FOLLOW_28); |
2232 | 2994 | ||
2233 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | 2995 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); |
2234 | 2996 | ||
2235 | // InternalCftLanguage.g:865:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* | 2997 | // InternalCftLanguage.g:1127:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* |
2236 | loop19: | 2998 | loop22: |
2237 | do { | 2999 | do { |
2238 | int alt19=2; | 3000 | int alt22=2; |
2239 | int LA19_0 = input.LA(1); | 3001 | int LA22_0 = input.LA(1); |
2240 | 3002 | ||
2241 | if ( (LA19_0==RULE_ID||LA19_0==31) ) { | 3003 | if ( ((LA22_0>=RULE_OF_INT && LA22_0<=RULE_ID)||LA22_0==34) ) { |
2242 | alt19=1; | 3004 | alt22=1; |
2243 | } | 3005 | } |
2244 | 3006 | ||
2245 | 3007 | ||
2246 | switch (alt19) { | 3008 | switch (alt22) { |
2247 | case 1 : | 3009 | case 1 : |
2248 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' | 3010 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' |
2249 | { | 3011 | { |
2250 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) | 3012 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) |
2251 | int alt18=2; | 3013 | int alt21=2; |
2252 | int LA18_0 = input.LA(1); | 3014 | int LA21_0 = input.LA(1); |
2253 | 3015 | ||
2254 | if ( (LA18_0==31) ) { | 3016 | if ( (LA21_0==34) ) { |
2255 | alt18=1; | 3017 | alt21=1; |
2256 | } | 3018 | } |
2257 | else if ( (LA18_0==RULE_ID) ) { | 3019 | else if ( ((LA21_0>=RULE_OF_INT && LA21_0<=RULE_ID)) ) { |
2258 | alt18=2; | 3020 | alt21=2; |
2259 | } | 3021 | } |
2260 | else { | 3022 | else { |
2261 | NoViableAltException nvae = | 3023 | NoViableAltException nvae = |
2262 | new NoViableAltException("", 18, 0, input); | 3024 | new NoViableAltException("", 21, 0, input); |
2263 | 3025 | ||
2264 | throw nvae; | 3026 | throw nvae; |
2265 | } | 3027 | } |
2266 | switch (alt18) { | 3028 | switch (alt21) { |
2267 | case 1 : | 3029 | case 1 : |
2268 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | 3030 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) |
2269 | { | 3031 | { |
2270 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | 3032 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) |
2271 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | 3033 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) |
2272 | { | 3034 | { |
2273 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | 3035 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) |
2274 | // InternalCftLanguage.g:869:8: lv_lookupDefinitions_10_0= ruleLookupDefinition | 3036 | // InternalCftLanguage.g:1131:8: lv_lookupDefinitions_10_0= ruleLookupDefinition |
2275 | { | 3037 | { |
2276 | 3038 | ||
2277 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | 3039 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); |
@@ -2302,13 +3064,13 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2302 | } | 3064 | } |
2303 | break; | 3065 | break; |
2304 | case 2 : | 3066 | case 2 : |
2305 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | 3067 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) |
2306 | { | 3068 | { |
2307 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | 3069 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) |
2308 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | 3070 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) |
2309 | { | 3071 | { |
2310 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | 3072 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) |
2311 | // InternalCftLanguage.g:889:8: lv_assignments_11_0= ruleAssignment | 3073 | // InternalCftLanguage.g:1151:8: lv_assignments_11_0= ruleAssignment |
2312 | { | 3074 | { |
2313 | 3075 | ||
2314 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | 3076 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); |
@@ -2341,7 +3103,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2341 | 3103 | ||
2342 | } | 3104 | } |
2343 | 3105 | ||
2344 | otherlv_12=(Token)match(input,13,FOLLOW_26); | 3106 | otherlv_12=(Token)match(input,14,FOLLOW_28); |
2345 | 3107 | ||
2346 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | 3108 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); |
2347 | 3109 | ||
@@ -2350,11 +3112,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2350 | break; | 3112 | break; |
2351 | 3113 | ||
2352 | default : | 3114 | default : |
2353 | break loop19; | 3115 | break loop22; |
2354 | } | 3116 | } |
2355 | } while (true); | 3117 | } while (true); |
2356 | 3118 | ||
2357 | otherlv_13=(Token)match(input,19,FOLLOW_2); | 3119 | otherlv_13=(Token)match(input,20,FOLLOW_2); |
2358 | 3120 | ||
2359 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | 3121 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); |
2360 | 3122 | ||
@@ -2387,7 +3149,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2387 | 3149 | ||
2388 | 3150 | ||
2389 | // $ANTLR start "entryRuleMappingParameter" | 3151 | // $ANTLR start "entryRuleMappingParameter" |
2390 | // InternalCftLanguage.g:921:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; | 3152 | // InternalCftLanguage.g:1183:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; |
2391 | public final EObject entryRuleMappingParameter() throws RecognitionException { | 3153 | public final EObject entryRuleMappingParameter() throws RecognitionException { |
2392 | EObject current = null; | 3154 | EObject current = null; |
2393 | 3155 | ||
@@ -2395,8 +3157,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2395 | 3157 | ||
2396 | 3158 | ||
2397 | try { | 3159 | try { |
2398 | // InternalCftLanguage.g:921:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) | 3160 | // InternalCftLanguage.g:1183:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) |
2399 | // InternalCftLanguage.g:922:2: iv_ruleMappingParameter= ruleMappingParameter EOF | 3161 | // InternalCftLanguage.g:1184:2: iv_ruleMappingParameter= ruleMappingParameter EOF |
2400 | { | 3162 | { |
2401 | newCompositeNode(grammarAccess.getMappingParameterRule()); | 3163 | newCompositeNode(grammarAccess.getMappingParameterRule()); |
2402 | pushFollow(FOLLOW_1); | 3164 | pushFollow(FOLLOW_1); |
@@ -2423,38 +3185,44 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2423 | 3185 | ||
2424 | 3186 | ||
2425 | // $ANTLR start "ruleMappingParameter" | 3187 | // $ANTLR start "ruleMappingParameter" |
2426 | // InternalCftLanguage.g:928:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= RULE_ID ) ) ; | 3188 | // InternalCftLanguage.g:1190:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= ruleValidId ) ) ; |
2427 | public final EObject ruleMappingParameter() throws RecognitionException { | 3189 | public final EObject ruleMappingParameter() throws RecognitionException { |
2428 | EObject current = null; | 3190 | EObject current = null; |
2429 | 3191 | ||
2430 | Token lv_name_0_0=null; | 3192 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
3193 | |||
2431 | 3194 | ||
2432 | 3195 | ||
2433 | enterRule(); | 3196 | enterRule(); |
2434 | 3197 | ||
2435 | try { | 3198 | try { |
2436 | // InternalCftLanguage.g:934:2: ( ( (lv_name_0_0= RULE_ID ) ) ) | 3199 | // InternalCftLanguage.g:1196:2: ( ( (lv_name_0_0= ruleValidId ) ) ) |
2437 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | 3200 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) |
2438 | { | 3201 | { |
2439 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | 3202 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) |
2440 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | 3203 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) |
2441 | { | 3204 | { |
2442 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | 3205 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) |
2443 | // InternalCftLanguage.g:937:4: lv_name_0_0= RULE_ID | 3206 | // InternalCftLanguage.g:1199:4: lv_name_0_0= ruleValidId |
2444 | { | 3207 | { |
2445 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2446 | 3208 | ||
2447 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | 3209 | newCompositeNode(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0()); |
2448 | 3210 | ||
3211 | pushFollow(FOLLOW_2); | ||
3212 | lv_name_0_0=ruleValidId(); | ||
3213 | |||
3214 | state._fsp--; | ||
3215 | |||
2449 | 3216 | ||
2450 | if (current==null) { | 3217 | if (current==null) { |
2451 | current = createModelElement(grammarAccess.getMappingParameterRule()); | 3218 | current = createModelElementForParent(grammarAccess.getMappingParameterRule()); |
2452 | } | 3219 | } |
2453 | setWithLastConsumed( | 3220 | set( |
2454 | current, | 3221 | current, |
2455 | "name", | 3222 | "name", |
2456 | lv_name_0_0, | 3223 | lv_name_0_0, |
2457 | "org.eclipse.xtext.common.Terminals.ID"); | 3224 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
3225 | afterParserOrEnumRuleCall(); | ||
2458 | 3226 | ||
2459 | 3227 | ||
2460 | } | 3228 | } |
@@ -2482,7 +3250,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2482 | 3250 | ||
2483 | 3251 | ||
2484 | // $ANTLR start "entryRuleLookupDefinition" | 3252 | // $ANTLR start "entryRuleLookupDefinition" |
2485 | // InternalCftLanguage.g:956:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; | 3253 | // InternalCftLanguage.g:1219:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; |
2486 | public final EObject entryRuleLookupDefinition() throws RecognitionException { | 3254 | public final EObject entryRuleLookupDefinition() throws RecognitionException { |
2487 | EObject current = null; | 3255 | EObject current = null; |
2488 | 3256 | ||
@@ -2490,8 +3258,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2490 | 3258 | ||
2491 | 3259 | ||
2492 | try { | 3260 | try { |
2493 | // InternalCftLanguage.g:956:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) | 3261 | // InternalCftLanguage.g:1219:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) |
2494 | // InternalCftLanguage.g:957:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF | 3262 | // InternalCftLanguage.g:1220:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF |
2495 | { | 3263 | { |
2496 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); | 3264 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); |
2497 | pushFollow(FOLLOW_1); | 3265 | pushFollow(FOLLOW_1); |
@@ -2518,48 +3286,53 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2518 | 3286 | ||
2519 | 3287 | ||
2520 | // $ANTLR start "ruleLookupDefinition" | 3288 | // $ANTLR start "ruleLookupDefinition" |
2521 | // InternalCftLanguage.g:963:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ; | 3289 | // InternalCftLanguage.g:1226:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ; |
2522 | public final EObject ruleLookupDefinition() throws RecognitionException { | 3290 | public final EObject ruleLookupDefinition() throws RecognitionException { |
2523 | EObject current = null; | 3291 | EObject current = null; |
2524 | 3292 | ||
2525 | Token otherlv_0=null; | 3293 | Token otherlv_0=null; |
2526 | Token otherlv_1=null; | ||
2527 | Token otherlv_2=null; | 3294 | Token otherlv_2=null; |
2528 | Token otherlv_3=null; | ||
2529 | Token otherlv_4=null; | 3295 | Token otherlv_4=null; |
2530 | Token otherlv_5=null; | ||
2531 | Token otherlv_6=null; | 3296 | Token otherlv_6=null; |
2532 | Token otherlv_7=null; | 3297 | Token otherlv_7=null; |
2533 | Token lv_name_8_0=null; | 3298 | AntlrDatatypeRuleToken lv_name_8_0 = null; |
3299 | |||
2534 | 3300 | ||
2535 | 3301 | ||
2536 | enterRule(); | 3302 | enterRule(); |
2537 | 3303 | ||
2538 | try { | 3304 | try { |
2539 | // InternalCftLanguage.g:969:2: ( (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ) | 3305 | // InternalCftLanguage.g:1232:2: ( (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ) |
2540 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | 3306 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) |
2541 | { | 3307 | { |
2542 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | 3308 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) |
2543 | // InternalCftLanguage.g:971:3: otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) | 3309 | // InternalCftLanguage.g:1234:3: otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) |
2544 | { | 3310 | { |
2545 | otherlv_0=(Token)match(input,31,FOLLOW_3); | 3311 | otherlv_0=(Token)match(input,34,FOLLOW_3); |
2546 | 3312 | ||
2547 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | 3313 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); |
2548 | 3314 | ||
2549 | // InternalCftLanguage.g:975:3: ( (otherlv_1= RULE_ID ) ) | 3315 | // InternalCftLanguage.g:1238:3: ( ( ruleQualifiedName ) ) |
2550 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | 3316 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) |
2551 | { | 3317 | { |
2552 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | 3318 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) |
2553 | // InternalCftLanguage.g:977:5: otherlv_1= RULE_ID | 3319 | // InternalCftLanguage.g:1240:5: ruleQualifiedName |
2554 | { | 3320 | { |
2555 | 3321 | ||
2556 | if (current==null) { | 3322 | if (current==null) { |
2557 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3323 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
2558 | } | 3324 | } |
2559 | 3325 | ||
2560 | otherlv_1=(Token)match(input,RULE_ID,FOLLOW_22); | ||
2561 | 3326 | ||
2562 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | 3327 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); |
3328 | |||
3329 | pushFollow(FOLLOW_24); | ||
3330 | ruleQualifiedName(); | ||
3331 | |||
3332 | state._fsp--; | ||
3333 | |||
3334 | |||
3335 | afterParserOrEnumRuleCall(); | ||
2563 | 3336 | ||
2564 | 3337 | ||
2565 | } | 3338 | } |
@@ -2567,24 +3340,31 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2567 | 3340 | ||
2568 | } | 3341 | } |
2569 | 3342 | ||
2570 | otherlv_2=(Token)match(input,28,FOLLOW_3); | 3343 | otherlv_2=(Token)match(input,31,FOLLOW_3); |
2571 | 3344 | ||
2572 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | 3345 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); |
2573 | 3346 | ||
2574 | // InternalCftLanguage.g:992:3: ( (otherlv_3= RULE_ID ) ) | 3347 | // InternalCftLanguage.g:1258:3: ( ( ruleValidId ) ) |
2575 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | 3348 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) |
2576 | { | 3349 | { |
2577 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | 3350 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) |
2578 | // InternalCftLanguage.g:994:5: otherlv_3= RULE_ID | 3351 | // InternalCftLanguage.g:1260:5: ruleValidId |
2579 | { | 3352 | { |
2580 | 3353 | ||
2581 | if (current==null) { | 3354 | if (current==null) { |
2582 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3355 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
2583 | } | 3356 | } |
2584 | 3357 | ||
2585 | otherlv_3=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2586 | 3358 | ||
2587 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | 3359 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); |
3360 | |||
3361 | pushFollow(FOLLOW_25); | ||
3362 | ruleValidId(); | ||
3363 | |||
3364 | state._fsp--; | ||
3365 | |||
3366 | |||
3367 | afterParserOrEnumRuleCall(); | ||
2588 | 3368 | ||
2589 | 3369 | ||
2590 | } | 3370 | } |
@@ -2592,39 +3372,46 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2592 | 3372 | ||
2593 | } | 3373 | } |
2594 | 3374 | ||
2595 | // InternalCftLanguage.g:1005:3: (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* | 3375 | // InternalCftLanguage.g:1274:3: (otherlv_4= ',' ( ( ruleValidId ) ) )* |
2596 | loop21: | 3376 | loop24: |
2597 | do { | 3377 | do { |
2598 | int alt21=2; | 3378 | int alt24=2; |
2599 | int LA21_0 = input.LA(1); | 3379 | int LA24_0 = input.LA(1); |
2600 | 3380 | ||
2601 | if ( (LA21_0==29) ) { | 3381 | if ( (LA24_0==32) ) { |
2602 | alt21=1; | 3382 | alt24=1; |
2603 | } | 3383 | } |
2604 | 3384 | ||
2605 | 3385 | ||
2606 | switch (alt21) { | 3386 | switch (alt24) { |
2607 | case 1 : | 3387 | case 1 : |
2608 | // InternalCftLanguage.g:1006:4: otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) | 3388 | // InternalCftLanguage.g:1275:4: otherlv_4= ',' ( ( ruleValidId ) ) |
2609 | { | 3389 | { |
2610 | otherlv_4=(Token)match(input,29,FOLLOW_3); | 3390 | otherlv_4=(Token)match(input,32,FOLLOW_3); |
2611 | 3391 | ||
2612 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | 3392 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); |
2613 | 3393 | ||
2614 | // InternalCftLanguage.g:1010:4: ( (otherlv_5= RULE_ID ) ) | 3394 | // InternalCftLanguage.g:1279:4: ( ( ruleValidId ) ) |
2615 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | 3395 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) |
2616 | { | 3396 | { |
2617 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | 3397 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) |
2618 | // InternalCftLanguage.g:1012:6: otherlv_5= RULE_ID | 3398 | // InternalCftLanguage.g:1281:6: ruleValidId |
2619 | { | 3399 | { |
2620 | 3400 | ||
2621 | if (current==null) { | 3401 | if (current==null) { |
2622 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3402 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
2623 | } | 3403 | } |
2624 | 3404 | ||
2625 | otherlv_5=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2626 | 3405 | ||
2627 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | 3406 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); |
3407 | |||
3408 | pushFollow(FOLLOW_25); | ||
3409 | ruleValidId(); | ||
3410 | |||
3411 | state._fsp--; | ||
3412 | |||
3413 | |||
3414 | afterParserOrEnumRuleCall(); | ||
2628 | 3415 | ||
2629 | 3416 | ||
2630 | } | 3417 | } |
@@ -2637,37 +3424,42 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2637 | break; | 3424 | break; |
2638 | 3425 | ||
2639 | default : | 3426 | default : |
2640 | break loop21; | 3427 | break loop24; |
2641 | } | 3428 | } |
2642 | } while (true); | 3429 | } while (true); |
2643 | 3430 | ||
2644 | otherlv_6=(Token)match(input,30,FOLLOW_27); | 3431 | otherlv_6=(Token)match(input,33,FOLLOW_29); |
2645 | 3432 | ||
2646 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | 3433 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); |
2647 | 3434 | ||
2648 | otherlv_7=(Token)match(input,32,FOLLOW_3); | 3435 | otherlv_7=(Token)match(input,35,FOLLOW_3); |
2649 | 3436 | ||
2650 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | 3437 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); |
2651 | 3438 | ||
2652 | // InternalCftLanguage.g:1032:3: ( (lv_name_8_0= RULE_ID ) ) | 3439 | // InternalCftLanguage.g:1304:3: ( (lv_name_8_0= ruleValidId ) ) |
2653 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | 3440 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) |
2654 | { | 3441 | { |
2655 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | 3442 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) |
2656 | // InternalCftLanguage.g:1034:5: lv_name_8_0= RULE_ID | 3443 | // InternalCftLanguage.g:1306:5: lv_name_8_0= ruleValidId |
2657 | { | 3444 | { |
2658 | lv_name_8_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2659 | 3445 | ||
2660 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | 3446 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getNameValidIdParserRuleCall_7_0()); |
2661 | 3447 | ||
3448 | pushFollow(FOLLOW_2); | ||
3449 | lv_name_8_0=ruleValidId(); | ||
3450 | |||
3451 | state._fsp--; | ||
3452 | |||
2662 | 3453 | ||
2663 | if (current==null) { | 3454 | if (current==null) { |
2664 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3455 | current = createModelElementForParent(grammarAccess.getLookupDefinitionRule()); |
2665 | } | 3456 | } |
2666 | setWithLastConsumed( | 3457 | set( |
2667 | current, | 3458 | current, |
2668 | "name", | 3459 | "name", |
2669 | lv_name_8_0, | 3460 | lv_name_8_0, |
2670 | "org.eclipse.xtext.common.Terminals.ID"); | 3461 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
3462 | afterParserOrEnumRuleCall(); | ||
2671 | 3463 | ||
2672 | 3464 | ||
2673 | } | 3465 | } |
@@ -2698,7 +3490,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2698 | 3490 | ||
2699 | 3491 | ||
2700 | // $ANTLR start "entryRuleAssignment" | 3492 | // $ANTLR start "entryRuleAssignment" |
2701 | // InternalCftLanguage.g:1054:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; | 3493 | // InternalCftLanguage.g:1327:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; |
2702 | public final EObject entryRuleAssignment() throws RecognitionException { | 3494 | public final EObject entryRuleAssignment() throws RecognitionException { |
2703 | EObject current = null; | 3495 | EObject current = null; |
2704 | 3496 | ||
@@ -2706,8 +3498,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2706 | 3498 | ||
2707 | 3499 | ||
2708 | try { | 3500 | try { |
2709 | // InternalCftLanguage.g:1054:51: (iv_ruleAssignment= ruleAssignment EOF ) | 3501 | // InternalCftLanguage.g:1327:51: (iv_ruleAssignment= ruleAssignment EOF ) |
2710 | // InternalCftLanguage.g:1055:2: iv_ruleAssignment= ruleAssignment EOF | 3502 | // InternalCftLanguage.g:1328:2: iv_ruleAssignment= ruleAssignment EOF |
2711 | { | 3503 | { |
2712 | newCompositeNode(grammarAccess.getAssignmentRule()); | 3504 | newCompositeNode(grammarAccess.getAssignmentRule()); |
2713 | pushFollow(FOLLOW_1); | 3505 | pushFollow(FOLLOW_1); |
@@ -2734,7 +3526,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2734 | 3526 | ||
2735 | 3527 | ||
2736 | // $ANTLR start "ruleAssignment" | 3528 | // $ANTLR start "ruleAssignment" |
2737 | // InternalCftLanguage.g:1061:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; | 3529 | // InternalCftLanguage.g:1334:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; |
2738 | public final EObject ruleAssignment() throws RecognitionException { | 3530 | public final EObject ruleAssignment() throws RecognitionException { |
2739 | EObject current = null; | 3531 | EObject current = null; |
2740 | 3532 | ||
@@ -2749,22 +3541,22 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2749 | enterRule(); | 3541 | enterRule(); |
2750 | 3542 | ||
2751 | try { | 3543 | try { |
2752 | // InternalCftLanguage.g:1067:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) | 3544 | // InternalCftLanguage.g:1340:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) |
2753 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | 3545 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) |
2754 | { | 3546 | { |
2755 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | 3547 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) |
2756 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) | 3548 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) |
2757 | { | 3549 | { |
2758 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) | 3550 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) |
2759 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | 3551 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) |
2760 | { | 3552 | { |
2761 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | 3553 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) |
2762 | // InternalCftLanguage.g:1071:5: lv_input_0_0= ruleEventReference | 3554 | // InternalCftLanguage.g:1344:5: lv_input_0_0= ruleEventReference |
2763 | { | 3555 | { |
2764 | 3556 | ||
2765 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | 3557 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); |
2766 | 3558 | ||
2767 | pushFollow(FOLLOW_28); | 3559 | pushFollow(FOLLOW_30); |
2768 | lv_input_0_0=ruleEventReference(); | 3560 | lv_input_0_0=ruleEventReference(); |
2769 | 3561 | ||
2770 | state._fsp--; | 3562 | state._fsp--; |
@@ -2786,33 +3578,33 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2786 | 3578 | ||
2787 | } | 3579 | } |
2788 | 3580 | ||
2789 | // InternalCftLanguage.g:1088:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) | 3581 | // InternalCftLanguage.g:1361:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) |
2790 | int alt22=2; | 3582 | int alt25=2; |
2791 | int LA22_0 = input.LA(1); | 3583 | int LA25_0 = input.LA(1); |
2792 | 3584 | ||
2793 | if ( (LA22_0==33) ) { | 3585 | if ( (LA25_0==36) ) { |
2794 | alt22=1; | 3586 | alt25=1; |
2795 | } | 3587 | } |
2796 | else if ( (LA22_0==34) ) { | 3588 | else if ( (LA25_0==37) ) { |
2797 | alt22=2; | 3589 | alt25=2; |
2798 | } | 3590 | } |
2799 | else { | 3591 | else { |
2800 | NoViableAltException nvae = | 3592 | NoViableAltException nvae = |
2801 | new NoViableAltException("", 22, 0, input); | 3593 | new NoViableAltException("", 25, 0, input); |
2802 | 3594 | ||
2803 | throw nvae; | 3595 | throw nvae; |
2804 | } | 3596 | } |
2805 | switch (alt22) { | 3597 | switch (alt25) { |
2806 | case 1 : | 3598 | case 1 : |
2807 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | 3599 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) |
2808 | { | 3600 | { |
2809 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | 3601 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) |
2810 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | 3602 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) |
2811 | { | 3603 | { |
2812 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | 3604 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) |
2813 | // InternalCftLanguage.g:1091:6: lv_multiple_1_0= '+=' | 3605 | // InternalCftLanguage.g:1364:6: lv_multiple_1_0= '+=' |
2814 | { | 3606 | { |
2815 | lv_multiple_1_0=(Token)match(input,33,FOLLOW_29); | 3607 | lv_multiple_1_0=(Token)match(input,36,FOLLOW_31); |
2816 | 3608 | ||
2817 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | 3609 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); |
2818 | 3610 | ||
@@ -2832,9 +3624,9 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2832 | } | 3624 | } |
2833 | break; | 3625 | break; |
2834 | case 2 : | 3626 | case 2 : |
2835 | // InternalCftLanguage.g:1104:4: otherlv_2= ':=' | 3627 | // InternalCftLanguage.g:1377:4: otherlv_2= ':=' |
2836 | { | 3628 | { |
2837 | otherlv_2=(Token)match(input,34,FOLLOW_29); | 3629 | otherlv_2=(Token)match(input,37,FOLLOW_31); |
2838 | 3630 | ||
2839 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | 3631 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); |
2840 | 3632 | ||
@@ -2844,11 +3636,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2844 | 3636 | ||
2845 | } | 3637 | } |
2846 | 3638 | ||
2847 | // InternalCftLanguage.g:1109:3: ( (lv_output_3_0= ruleEventReference ) ) | 3639 | // InternalCftLanguage.g:1382:3: ( (lv_output_3_0= ruleEventReference ) ) |
2848 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | 3640 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) |
2849 | { | 3641 | { |
2850 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | 3642 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) |
2851 | // InternalCftLanguage.g:1111:5: lv_output_3_0= ruleEventReference | 3643 | // InternalCftLanguage.g:1384:5: lv_output_3_0= ruleEventReference |
2852 | { | 3644 | { |
2853 | 3645 | ||
2854 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | 3646 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); |
@@ -2898,7 +3690,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2898 | 3690 | ||
2899 | 3691 | ||
2900 | // $ANTLR start "entryRuleEventReference" | 3692 | // $ANTLR start "entryRuleEventReference" |
2901 | // InternalCftLanguage.g:1132:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; | 3693 | // InternalCftLanguage.g:1405:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; |
2902 | public final EObject entryRuleEventReference() throws RecognitionException { | 3694 | public final EObject entryRuleEventReference() throws RecognitionException { |
2903 | EObject current = null; | 3695 | EObject current = null; |
2904 | 3696 | ||
@@ -2906,8 +3698,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2906 | 3698 | ||
2907 | 3699 | ||
2908 | try { | 3700 | try { |
2909 | // InternalCftLanguage.g:1132:55: (iv_ruleEventReference= ruleEventReference EOF ) | 3701 | // InternalCftLanguage.g:1405:55: (iv_ruleEventReference= ruleEventReference EOF ) |
2910 | // InternalCftLanguage.g:1133:2: iv_ruleEventReference= ruleEventReference EOF | 3702 | // InternalCftLanguage.g:1406:2: iv_ruleEventReference= ruleEventReference EOF |
2911 | { | 3703 | { |
2912 | newCompositeNode(grammarAccess.getEventReferenceRule()); | 3704 | newCompositeNode(grammarAccess.getEventReferenceRule()); |
2913 | pushFollow(FOLLOW_1); | 3705 | pushFollow(FOLLOW_1); |
@@ -2934,38 +3726,43 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2934 | 3726 | ||
2935 | 3727 | ||
2936 | // $ANTLR start "ruleEventReference" | 3728 | // $ANTLR start "ruleEventReference" |
2937 | // InternalCftLanguage.g:1139:1: ruleEventReference returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ; | 3729 | // InternalCftLanguage.g:1412:1: ruleEventReference returns [EObject current=null] : ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ; |
2938 | public final EObject ruleEventReference() throws RecognitionException { | 3730 | public final EObject ruleEventReference() throws RecognitionException { |
2939 | EObject current = null; | 3731 | EObject current = null; |
2940 | 3732 | ||
2941 | Token otherlv_0=null; | ||
2942 | Token otherlv_1=null; | 3733 | Token otherlv_1=null; |
2943 | Token otherlv_2=null; | ||
2944 | 3734 | ||
2945 | 3735 | ||
2946 | enterRule(); | 3736 | enterRule(); |
2947 | 3737 | ||
2948 | try { | 3738 | try { |
2949 | // InternalCftLanguage.g:1145:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ) | 3739 | // InternalCftLanguage.g:1418:2: ( ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ) |
2950 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | 3740 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) |
2951 | { | 3741 | { |
2952 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | 3742 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) |
2953 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) | 3743 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) |
2954 | { | 3744 | { |
2955 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) | 3745 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) |
2956 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | 3746 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) |
2957 | { | 3747 | { |
2958 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | 3748 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) |
2959 | // InternalCftLanguage.g:1149:5: otherlv_0= RULE_ID | 3749 | // InternalCftLanguage.g:1422:5: ruleValidId |
2960 | { | 3750 | { |
2961 | 3751 | ||
2962 | if (current==null) { | 3752 | if (current==null) { |
2963 | current = createModelElement(grammarAccess.getEventReferenceRule()); | 3753 | current = createModelElement(grammarAccess.getEventReferenceRule()); |
2964 | } | 3754 | } |
2965 | 3755 | ||
2966 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_30); | ||
2967 | 3756 | ||
2968 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | 3757 | newCompositeNode(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); |
3758 | |||
3759 | pushFollow(FOLLOW_32); | ||
3760 | ruleValidId(); | ||
3761 | |||
3762 | state._fsp--; | ||
3763 | |||
3764 | |||
3765 | afterParserOrEnumRuleCall(); | ||
2969 | 3766 | ||
2970 | 3767 | ||
2971 | } | 3768 | } |
@@ -2973,24 +3770,31 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2973 | 3770 | ||
2974 | } | 3771 | } |
2975 | 3772 | ||
2976 | otherlv_1=(Token)match(input,35,FOLLOW_3); | 3773 | otherlv_1=(Token)match(input,38,FOLLOW_3); |
2977 | 3774 | ||
2978 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | 3775 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); |
2979 | 3776 | ||
2980 | // InternalCftLanguage.g:1164:3: ( (otherlv_2= RULE_ID ) ) | 3777 | // InternalCftLanguage.g:1440:3: ( ( ruleValidId ) ) |
2981 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | 3778 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) |
2982 | { | 3779 | { |
2983 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | 3780 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) |
2984 | // InternalCftLanguage.g:1166:5: otherlv_2= RULE_ID | 3781 | // InternalCftLanguage.g:1442:5: ruleValidId |
2985 | { | 3782 | { |
2986 | 3783 | ||
2987 | if (current==null) { | 3784 | if (current==null) { |
2988 | current = createModelElement(grammarAccess.getEventReferenceRule()); | 3785 | current = createModelElement(grammarAccess.getEventReferenceRule()); |
2989 | } | 3786 | } |
2990 | 3787 | ||
2991 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2992 | 3788 | ||
2993 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | 3789 | newCompositeNode(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); |
3790 | |||
3791 | pushFollow(FOLLOW_2); | ||
3792 | ruleValidId(); | ||
3793 | |||
3794 | state._fsp--; | ||
3795 | |||
3796 | |||
3797 | afterParserOrEnumRuleCall(); | ||
2994 | 3798 | ||
2995 | 3799 | ||
2996 | } | 3800 | } |
@@ -3021,7 +3825,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3021 | 3825 | ||
3022 | 3826 | ||
3023 | // $ANTLR start "entryRuleComponentInstance" | 3827 | // $ANTLR start "entryRuleComponentInstance" |
3024 | // InternalCftLanguage.g:1181:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; | 3828 | // InternalCftLanguage.g:1460:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; |
3025 | public final EObject entryRuleComponentInstance() throws RecognitionException { | 3829 | public final EObject entryRuleComponentInstance() throws RecognitionException { |
3026 | EObject current = null; | 3830 | EObject current = null; |
3027 | 3831 | ||
@@ -3029,8 +3833,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3029 | 3833 | ||
3030 | 3834 | ||
3031 | try { | 3835 | try { |
3032 | // InternalCftLanguage.g:1181:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) | 3836 | // InternalCftLanguage.g:1460:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) |
3033 | // InternalCftLanguage.g:1182:2: iv_ruleComponentInstance= ruleComponentInstance EOF | 3837 | // InternalCftLanguage.g:1461:2: iv_ruleComponentInstance= ruleComponentInstance EOF |
3034 | { | 3838 | { |
3035 | newCompositeNode(grammarAccess.getComponentInstanceRule()); | 3839 | newCompositeNode(grammarAccess.getComponentInstanceRule()); |
3036 | pushFollow(FOLLOW_1); | 3840 | pushFollow(FOLLOW_1); |
@@ -3057,7 +3861,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3057 | 3861 | ||
3058 | 3862 | ||
3059 | // $ANTLR start "ruleComponentInstance" | 3863 | // $ANTLR start "ruleComponentInstance" |
3060 | // InternalCftLanguage.g:1188:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ; | 3864 | // InternalCftLanguage.g:1467:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ; |
3061 | public final EObject ruleComponentInstance() throws RecognitionException { | 3865 | public final EObject ruleComponentInstance() throws RecognitionException { |
3062 | EObject current = null; | 3866 | EObject current = null; |
3063 | 3867 | ||
@@ -3068,21 +3872,21 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3068 | enterRule(); | 3872 | enterRule(); |
3069 | 3873 | ||
3070 | try { | 3874 | try { |
3071 | // InternalCftLanguage.g:1194:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ) | 3875 | // InternalCftLanguage.g:1473:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ) |
3072 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | 3876 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) |
3073 | { | 3877 | { |
3074 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | 3878 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) |
3075 | // InternalCftLanguage.g:1196:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? | 3879 | // InternalCftLanguage.g:1475:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? |
3076 | { | 3880 | { |
3077 | otherlv_0=(Token)match(input,36,FOLLOW_3); | 3881 | otherlv_0=(Token)match(input,39,FOLLOW_3); |
3078 | 3882 | ||
3079 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | 3883 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); |
3080 | 3884 | ||
3081 | // InternalCftLanguage.g:1200:3: ( ( ruleQualifiedName ) ) | 3885 | // InternalCftLanguage.g:1479:3: ( ( ruleQualifiedName ) ) |
3082 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | 3886 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) |
3083 | { | 3887 | { |
3084 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | 3888 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) |
3085 | // InternalCftLanguage.g:1202:5: ruleQualifiedName | 3889 | // InternalCftLanguage.g:1481:5: ruleQualifiedName |
3086 | { | 3890 | { |
3087 | 3891 | ||
3088 | if (current==null) { | 3892 | if (current==null) { |
@@ -3092,7 +3896,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3092 | 3896 | ||
3093 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | 3897 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); |
3094 | 3898 | ||
3095 | pushFollow(FOLLOW_18); | 3899 | pushFollow(FOLLOW_33); |
3096 | ruleQualifiedName(); | 3900 | ruleQualifiedName(); |
3097 | 3901 | ||
3098 | state._fsp--; | 3902 | state._fsp--; |
@@ -3106,19 +3910,19 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3106 | 3910 | ||
3107 | } | 3911 | } |
3108 | 3912 | ||
3109 | // InternalCftLanguage.g:1216:3: ( (lv_name_2_0= RULE_ID ) )? | 3913 | // InternalCftLanguage.g:1495:3: ( (lv_name_2_0= RULE_ID ) )? |
3110 | int alt23=2; | 3914 | int alt26=2; |
3111 | int LA23_0 = input.LA(1); | 3915 | int LA26_0 = input.LA(1); |
3112 | 3916 | ||
3113 | if ( (LA23_0==RULE_ID) ) { | 3917 | if ( (LA26_0==RULE_ID) ) { |
3114 | alt23=1; | 3918 | alt26=1; |
3115 | } | 3919 | } |
3116 | switch (alt23) { | 3920 | switch (alt26) { |
3117 | case 1 : | 3921 | case 1 : |
3118 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | 3922 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= RULE_ID ) |
3119 | { | 3923 | { |
3120 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | 3924 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= RULE_ID ) |
3121 | // InternalCftLanguage.g:1218:5: lv_name_2_0= RULE_ID | 3925 | // InternalCftLanguage.g:1497:5: lv_name_2_0= RULE_ID |
3122 | { | 3926 | { |
3123 | lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_2); | 3927 | lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_2); |
3124 | 3928 | ||
@@ -3166,7 +3970,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3166 | 3970 | ||
3167 | 3971 | ||
3168 | // $ANTLR start "entryRuleQualifiedName" | 3972 | // $ANTLR start "entryRuleQualifiedName" |
3169 | // InternalCftLanguage.g:1238:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; | 3973 | // InternalCftLanguage.g:1517:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
3170 | public final String entryRuleQualifiedName() throws RecognitionException { | 3974 | public final String entryRuleQualifiedName() throws RecognitionException { |
3171 | String current = null; | 3975 | String current = null; |
3172 | 3976 | ||
@@ -3174,8 +3978,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3174 | 3978 | ||
3175 | 3979 | ||
3176 | try { | 3980 | try { |
3177 | // InternalCftLanguage.g:1238:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) | 3981 | // InternalCftLanguage.g:1517:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
3178 | // InternalCftLanguage.g:1239:2: iv_ruleQualifiedName= ruleQualifiedName EOF | 3982 | // InternalCftLanguage.g:1518:2: iv_ruleQualifiedName= ruleQualifiedName EOF |
3179 | { | 3983 | { |
3180 | newCompositeNode(grammarAccess.getQualifiedNameRule()); | 3984 | newCompositeNode(grammarAccess.getQualifiedNameRule()); |
3181 | pushFollow(FOLLOW_1); | 3985 | pushFollow(FOLLOW_1); |
@@ -3202,70 +4006,86 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3202 | 4006 | ||
3203 | 4007 | ||
3204 | // $ANTLR start "ruleQualifiedName" | 4008 | // $ANTLR start "ruleQualifiedName" |
3205 | // InternalCftLanguage.g:1245:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; | 4009 | // InternalCftLanguage.g:1524:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ; |
3206 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { | 4010 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { |
3207 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | 4011 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
3208 | 4012 | ||
3209 | Token this_ID_0=null; | ||
3210 | Token kw=null; | 4013 | Token kw=null; |
3211 | Token this_ID_2=null; | 4014 | AntlrDatatypeRuleToken this_ValidId_0 = null; |
4015 | |||
4016 | AntlrDatatypeRuleToken this_ValidId_2 = null; | ||
4017 | |||
3212 | 4018 | ||
3213 | 4019 | ||
3214 | enterRule(); | 4020 | enterRule(); |
3215 | 4021 | ||
3216 | try { | 4022 | try { |
3217 | // InternalCftLanguage.g:1251:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) | 4023 | // InternalCftLanguage.g:1530:2: ( (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ) |
3218 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | 4024 | // InternalCftLanguage.g:1531:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) |
3219 | { | 4025 | { |
3220 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | 4026 | // InternalCftLanguage.g:1531:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) |
3221 | // InternalCftLanguage.g:1253:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* | 4027 | // InternalCftLanguage.g:1532:3: this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* |
3222 | { | 4028 | { |
3223 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3224 | 4029 | ||
3225 | current.merge(this_ID_0); | 4030 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_0()); |
3226 | 4031 | ||
4032 | pushFollow(FOLLOW_34); | ||
4033 | this_ValidId_0=ruleValidId(); | ||
4034 | |||
4035 | state._fsp--; | ||
4036 | |||
3227 | 4037 | ||
3228 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | 4038 | current.merge(this_ValidId_0); |
3229 | 4039 | ||
3230 | // InternalCftLanguage.g:1260:3: (kw= '.' this_ID_2= RULE_ID )* | 4040 | |
3231 | loop24: | 4041 | afterParserOrEnumRuleCall(); |
4042 | |||
4043 | // InternalCftLanguage.g:1542:3: (kw= '.' this_ValidId_2= ruleValidId )* | ||
4044 | loop27: | ||
3232 | do { | 4045 | do { |
3233 | int alt24=2; | 4046 | int alt27=2; |
3234 | int LA24_0 = input.LA(1); | 4047 | int LA27_0 = input.LA(1); |
3235 | 4048 | ||
3236 | if ( (LA24_0==35) ) { | 4049 | if ( (LA27_0==38) ) { |
3237 | int LA24_2 = input.LA(2); | 4050 | int LA27_2 = input.LA(2); |
3238 | 4051 | ||
3239 | if ( (LA24_2==RULE_ID) ) { | 4052 | if ( ((LA27_2>=RULE_OF_INT && LA27_2<=RULE_ID)) ) { |
3240 | alt24=1; | 4053 | alt27=1; |
3241 | } | 4054 | } |
3242 | 4055 | ||
3243 | 4056 | ||
3244 | } | 4057 | } |
3245 | 4058 | ||
3246 | 4059 | ||
3247 | switch (alt24) { | 4060 | switch (alt27) { |
3248 | case 1 : | 4061 | case 1 : |
3249 | // InternalCftLanguage.g:1261:4: kw= '.' this_ID_2= RULE_ID | 4062 | // InternalCftLanguage.g:1543:4: kw= '.' this_ValidId_2= ruleValidId |
3250 | { | 4063 | { |
3251 | kw=(Token)match(input,35,FOLLOW_3); | 4064 | kw=(Token)match(input,38,FOLLOW_3); |
3252 | 4065 | ||
3253 | current.merge(kw); | 4066 | current.merge(kw); |
3254 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | 4067 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
3255 | 4068 | ||
3256 | this_ID_2=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3257 | 4069 | ||
3258 | current.merge(this_ID_2); | 4070 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_1_1()); |
3259 | 4071 | ||
4072 | pushFollow(FOLLOW_34); | ||
4073 | this_ValidId_2=ruleValidId(); | ||
4074 | |||
4075 | state._fsp--; | ||
4076 | |||
3260 | 4077 | ||
3261 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | 4078 | current.merge(this_ValidId_2); |
4079 | |||
4080 | |||
4081 | afterParserOrEnumRuleCall(); | ||
3262 | 4082 | ||
3263 | 4083 | ||
3264 | } | 4084 | } |
3265 | break; | 4085 | break; |
3266 | 4086 | ||
3267 | default : | 4087 | default : |
3268 | break loop24; | 4088 | break loop27; |
3269 | } | 4089 | } |
3270 | } while (true); | 4090 | } while (true); |
3271 | 4091 | ||
@@ -3292,7 +4112,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3292 | 4112 | ||
3293 | 4113 | ||
3294 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" | 4114 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" |
3295 | // InternalCftLanguage.g:1278:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; | 4115 | // InternalCftLanguage.g:1563:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
3296 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { | 4116 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
3297 | String current = null; | 4117 | String current = null; |
3298 | 4118 | ||
@@ -3300,8 +4120,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3300 | 4120 | ||
3301 | 4121 | ||
3302 | try { | 4122 | try { |
3303 | // InternalCftLanguage.g:1278:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) | 4123 | // InternalCftLanguage.g:1563:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
3304 | // InternalCftLanguage.g:1279:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF | 4124 | // InternalCftLanguage.g:1564:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF |
3305 | { | 4125 | { |
3306 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); | 4126 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); |
3307 | pushFollow(FOLLOW_1); | 4127 | pushFollow(FOLLOW_1); |
@@ -3328,7 +4148,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3328 | 4148 | ||
3329 | 4149 | ||
3330 | // $ANTLR start "ruleQualifiedNameWithWildcard" | 4150 | // $ANTLR start "ruleQualifiedNameWithWildcard" |
3331 | // InternalCftLanguage.g:1285:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; | 4151 | // InternalCftLanguage.g:1570:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; |
3332 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { | 4152 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { |
3333 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | 4153 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
3334 | 4154 | ||
@@ -3340,16 +4160,16 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3340 | enterRule(); | 4160 | enterRule(); |
3341 | 4161 | ||
3342 | try { | 4162 | try { |
3343 | // InternalCftLanguage.g:1291:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) | 4163 | // InternalCftLanguage.g:1576:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) |
3344 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | 4164 | // InternalCftLanguage.g:1577:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) |
3345 | { | 4165 | { |
3346 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | 4166 | // InternalCftLanguage.g:1577:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) |
3347 | // InternalCftLanguage.g:1293:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? | 4167 | // InternalCftLanguage.g:1578:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? |
3348 | { | 4168 | { |
3349 | 4169 | ||
3350 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | 4170 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
3351 | 4171 | ||
3352 | pushFollow(FOLLOW_31); | 4172 | pushFollow(FOLLOW_34); |
3353 | this_QualifiedName_0=ruleQualifiedName(); | 4173 | this_QualifiedName_0=ruleQualifiedName(); |
3354 | 4174 | ||
3355 | state._fsp--; | 4175 | state._fsp--; |
@@ -3360,23 +4180,23 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3360 | 4180 | ||
3361 | afterParserOrEnumRuleCall(); | 4181 | afterParserOrEnumRuleCall(); |
3362 | 4182 | ||
3363 | // InternalCftLanguage.g:1303:3: (kw= '.' kw= '*' )? | 4183 | // InternalCftLanguage.g:1588:3: (kw= '.' kw= '*' )? |
3364 | int alt25=2; | 4184 | int alt28=2; |
3365 | int LA25_0 = input.LA(1); | 4185 | int LA28_0 = input.LA(1); |
3366 | 4186 | ||
3367 | if ( (LA25_0==35) ) { | 4187 | if ( (LA28_0==38) ) { |
3368 | alt25=1; | 4188 | alt28=1; |
3369 | } | 4189 | } |
3370 | switch (alt25) { | 4190 | switch (alt28) { |
3371 | case 1 : | 4191 | case 1 : |
3372 | // InternalCftLanguage.g:1304:4: kw= '.' kw= '*' | 4192 | // InternalCftLanguage.g:1589:4: kw= '.' kw= '*' |
3373 | { | 4193 | { |
3374 | kw=(Token)match(input,35,FOLLOW_32); | 4194 | kw=(Token)match(input,38,FOLLOW_35); |
3375 | 4195 | ||
3376 | current.merge(kw); | 4196 | current.merge(kw); |
3377 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | 4197 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); |
3378 | 4198 | ||
3379 | kw=(Token)match(input,37,FOLLOW_2); | 4199 | kw=(Token)match(input,40,FOLLOW_2); |
3380 | 4200 | ||
3381 | current.merge(kw); | 4201 | current.merge(kw); |
3382 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | 4202 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); |
@@ -3408,6 +4228,238 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3408 | } | 4228 | } |
3409 | // $ANTLR end "ruleQualifiedNameWithWildcard" | 4229 | // $ANTLR end "ruleQualifiedNameWithWildcard" |
3410 | 4230 | ||
4231 | |||
4232 | // $ANTLR start "entryRuleValidId" | ||
4233 | // InternalCftLanguage.g:1604:1: entryRuleValidId returns [String current=null] : iv_ruleValidId= ruleValidId EOF ; | ||
4234 | public final String entryRuleValidId() throws RecognitionException { | ||
4235 | String current = null; | ||
4236 | |||
4237 | AntlrDatatypeRuleToken iv_ruleValidId = null; | ||
4238 | |||
4239 | |||
4240 | try { | ||
4241 | // InternalCftLanguage.g:1604:47: (iv_ruleValidId= ruleValidId EOF ) | ||
4242 | // InternalCftLanguage.g:1605:2: iv_ruleValidId= ruleValidId EOF | ||
4243 | { | ||
4244 | newCompositeNode(grammarAccess.getValidIdRule()); | ||
4245 | pushFollow(FOLLOW_1); | ||
4246 | iv_ruleValidId=ruleValidId(); | ||
4247 | |||
4248 | state._fsp--; | ||
4249 | |||
4250 | current =iv_ruleValidId.getText(); | ||
4251 | match(input,EOF,FOLLOW_2); | ||
4252 | |||
4253 | } | ||
4254 | |||
4255 | } | ||
4256 | |||
4257 | catch (RecognitionException re) { | ||
4258 | recover(input,re); | ||
4259 | appendSkippedTokens(); | ||
4260 | } | ||
4261 | finally { | ||
4262 | } | ||
4263 | return current; | ||
4264 | } | ||
4265 | // $ANTLR end "entryRuleValidId" | ||
4266 | |||
4267 | |||
4268 | // $ANTLR start "ruleValidId" | ||
4269 | // InternalCftLanguage.g:1611:1: ruleValidId returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ; | ||
4270 | public final AntlrDatatypeRuleToken ruleValidId() throws RecognitionException { | ||
4271 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4272 | |||
4273 | Token this_ID_0=null; | ||
4274 | Token this_OF_INT_1=null; | ||
4275 | |||
4276 | |||
4277 | enterRule(); | ||
4278 | |||
4279 | try { | ||
4280 | // InternalCftLanguage.g:1617:2: ( (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ) | ||
4281 | // InternalCftLanguage.g:1618:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4282 | { | ||
4283 | // InternalCftLanguage.g:1618:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4284 | int alt29=2; | ||
4285 | int LA29_0 = input.LA(1); | ||
4286 | |||
4287 | if ( (LA29_0==RULE_ID) ) { | ||
4288 | alt29=1; | ||
4289 | } | ||
4290 | else if ( (LA29_0==RULE_OF_INT) ) { | ||
4291 | alt29=2; | ||
4292 | } | ||
4293 | else { | ||
4294 | NoViableAltException nvae = | ||
4295 | new NoViableAltException("", 29, 0, input); | ||
4296 | |||
4297 | throw nvae; | ||
4298 | } | ||
4299 | switch (alt29) { | ||
4300 | case 1 : | ||
4301 | // InternalCftLanguage.g:1619:3: this_ID_0= RULE_ID | ||
4302 | { | ||
4303 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
4304 | |||
4305 | current.merge(this_ID_0); | ||
4306 | |||
4307 | |||
4308 | newLeafNode(this_ID_0, grammarAccess.getValidIdAccess().getIDTerminalRuleCall_0()); | ||
4309 | |||
4310 | |||
4311 | } | ||
4312 | break; | ||
4313 | case 2 : | ||
4314 | // InternalCftLanguage.g:1627:3: this_OF_INT_1= RULE_OF_INT | ||
4315 | { | ||
4316 | this_OF_INT_1=(Token)match(input,RULE_OF_INT,FOLLOW_2); | ||
4317 | |||
4318 | current.merge(this_OF_INT_1); | ||
4319 | |||
4320 | |||
4321 | newLeafNode(this_OF_INT_1, grammarAccess.getValidIdAccess().getOF_INTTerminalRuleCall_1()); | ||
4322 | |||
4323 | |||
4324 | } | ||
4325 | break; | ||
4326 | |||
4327 | } | ||
4328 | |||
4329 | |||
4330 | } | ||
4331 | |||
4332 | |||
4333 | leaveRule(); | ||
4334 | |||
4335 | } | ||
4336 | |||
4337 | catch (RecognitionException re) { | ||
4338 | recover(input,re); | ||
4339 | appendSkippedTokens(); | ||
4340 | } | ||
4341 | finally { | ||
4342 | } | ||
4343 | return current; | ||
4344 | } | ||
4345 | // $ANTLR end "ruleValidId" | ||
4346 | |||
4347 | |||
4348 | // $ANTLR start "entryRuleDouble" | ||
4349 | // InternalCftLanguage.g:1638:1: entryRuleDouble returns [String current=null] : iv_ruleDouble= ruleDouble EOF ; | ||
4350 | public final String entryRuleDouble() throws RecognitionException { | ||
4351 | String current = null; | ||
4352 | |||
4353 | AntlrDatatypeRuleToken iv_ruleDouble = null; | ||
4354 | |||
4355 | |||
4356 | try { | ||
4357 | // InternalCftLanguage.g:1638:46: (iv_ruleDouble= ruleDouble EOF ) | ||
4358 | // InternalCftLanguage.g:1639:2: iv_ruleDouble= ruleDouble EOF | ||
4359 | { | ||
4360 | newCompositeNode(grammarAccess.getDoubleRule()); | ||
4361 | pushFollow(FOLLOW_1); | ||
4362 | iv_ruleDouble=ruleDouble(); | ||
4363 | |||
4364 | state._fsp--; | ||
4365 | |||
4366 | current =iv_ruleDouble.getText(); | ||
4367 | match(input,EOF,FOLLOW_2); | ||
4368 | |||
4369 | } | ||
4370 | |||
4371 | } | ||
4372 | |||
4373 | catch (RecognitionException re) { | ||
4374 | recover(input,re); | ||
4375 | appendSkippedTokens(); | ||
4376 | } | ||
4377 | finally { | ||
4378 | } | ||
4379 | return current; | ||
4380 | } | ||
4381 | // $ANTLR end "entryRuleDouble" | ||
4382 | |||
4383 | |||
4384 | // $ANTLR start "ruleDouble" | ||
4385 | // InternalCftLanguage.g:1645:1: ruleDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ; | ||
4386 | public final AntlrDatatypeRuleToken ruleDouble() throws RecognitionException { | ||
4387 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4388 | |||
4389 | Token this_INT_0=null; | ||
4390 | Token this_T_DOUBLE_1=null; | ||
4391 | |||
4392 | |||
4393 | enterRule(); | ||
4394 | |||
4395 | try { | ||
4396 | // InternalCftLanguage.g:1651:2: ( (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ) | ||
4397 | // InternalCftLanguage.g:1652:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4398 | { | ||
4399 | // InternalCftLanguage.g:1652:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4400 | int alt30=2; | ||
4401 | int LA30_0 = input.LA(1); | ||
4402 | |||
4403 | if ( (LA30_0==RULE_INT) ) { | ||
4404 | alt30=1; | ||
4405 | } | ||
4406 | else if ( (LA30_0==RULE_T_DOUBLE) ) { | ||
4407 | alt30=2; | ||
4408 | } | ||
4409 | else { | ||
4410 | NoViableAltException nvae = | ||
4411 | new NoViableAltException("", 30, 0, input); | ||
4412 | |||
4413 | throw nvae; | ||
4414 | } | ||
4415 | switch (alt30) { | ||
4416 | case 1 : | ||
4417 | // InternalCftLanguage.g:1653:3: this_INT_0= RULE_INT | ||
4418 | { | ||
4419 | this_INT_0=(Token)match(input,RULE_INT,FOLLOW_2); | ||
4420 | |||
4421 | current.merge(this_INT_0); | ||
4422 | |||
4423 | |||
4424 | newLeafNode(this_INT_0, grammarAccess.getDoubleAccess().getINTTerminalRuleCall_0()); | ||
4425 | |||
4426 | |||
4427 | } | ||
4428 | break; | ||
4429 | case 2 : | ||
4430 | // InternalCftLanguage.g:1661:3: this_T_DOUBLE_1= RULE_T_DOUBLE | ||
4431 | { | ||
4432 | this_T_DOUBLE_1=(Token)match(input,RULE_T_DOUBLE,FOLLOW_2); | ||
4433 | |||
4434 | current.merge(this_T_DOUBLE_1); | ||
4435 | |||
4436 | |||
4437 | newLeafNode(this_T_DOUBLE_1, grammarAccess.getDoubleAccess().getT_DOUBLETerminalRuleCall_1()); | ||
4438 | |||
4439 | |||
4440 | } | ||
4441 | break; | ||
4442 | |||
4443 | } | ||
4444 | |||
4445 | |||
4446 | } | ||
4447 | |||
4448 | |||
4449 | leaveRule(); | ||
4450 | |||
4451 | } | ||
4452 | |||
4453 | catch (RecognitionException re) { | ||
4454 | recover(input,re); | ||
4455 | appendSkippedTokens(); | ||
4456 | } | ||
4457 | finally { | ||
4458 | } | ||
4459 | return current; | ||
4460 | } | ||
4461 | // $ANTLR end "ruleDouble" | ||
4462 | |||
3411 | // Delegated rules | 4463 | // Delegated rules |
3412 | 4464 | ||
3413 | 4465 | ||
@@ -3415,35 +4467,38 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3415 | 4467 | ||
3416 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | 4468 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); |
3417 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | 4469 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); |
3418 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000010L}); | 4470 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000060L}); |
3419 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000000200E002L}); | 4471 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000001001C002L}); |
3420 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x000000000200C002L}); | 4472 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000010018002L}); |
3421 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000002008002L}); | 4473 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000010010002L}); |
3422 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000002002L}); | 4474 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000004002L}); |
3423 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000010000L}); | 4475 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000020000L}); |
3424 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000000E0010L}); | 4476 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000001C0060L}); |
3425 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000002010L}); | 4477 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000004060L}); |
3426 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000002000L}); | 4478 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000004000L}); |
3427 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000080010L}); | 4479 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000100060L}); |
3428 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000100002L}); | 4480 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000200002L}); |
3429 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000200000L}); | 4481 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000001400000L}); |
3430 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000400000L}); | 4482 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000800000L}); |
3431 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000020L}); | 4483 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000090L}); |
3432 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000800000L}); | 4484 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000002000000L}); |
3433 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000012L}); | 4485 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000062L}); |
3434 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000001000000L}); | 4486 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000004000000L}); |
3435 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x000000000C080000L}); | 4487 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000000000010L}); |
3436 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000000L}); | 4488 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000020L}); |
3437 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000010000000L}); | 4489 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000060100000L}); |
3438 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000060000000L}); | 4490 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000040000000L}); |
3439 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000001000010002L}); | 4491 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000080000000L}); |
3440 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000010002L}); | 4492 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000300000000L}); |
3441 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000080080010L}); | 4493 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000008000020002L}); |
3442 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000100000000L}); | 4494 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000020002L}); |
3443 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000600000000L}); | 4495 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000400100060L}); |
3444 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000080000010L}); | 4496 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000800000000L}); |
3445 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000800000000L}); | 4497 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000003000000000L}); |
3446 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000800000002L}); | 4498 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000400000060L}); |
3447 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000002000000000L}); | 4499 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000004000000000L}); |
4500 | public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000000000042L}); | ||
4501 | public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000004000000002L}); | ||
4502 | public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000010000000000L}); | ||
3448 | 4503 | ||
3449 | } | 4504 | } |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java index 18682f69..835bb8cc 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSemanticSequencer.java | |||
@@ -4,22 +4,27 @@ | |||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.serializer; | 4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.serializer; |
5 | 5 | ||
6 | import com.google.inject.Inject; | 6 | import com.google.inject.Inject; |
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.AndGate; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; | 7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.Assignment; |
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.BasicEventDefinition; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; | 8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage; |
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; | 9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftModel; |
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentDefinition; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; | 10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ComponentInstance; |
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; | 11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.EventReference; |
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; | 12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.ImportDeclaration; |
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.InputEvent; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; | 13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.LookupDefinition; |
18 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; | 14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingDefinition; |
19 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; | 15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.MappingParameter; |
20 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.OrGate; | ||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; | 16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.TransformationDefinition; |
22 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | 17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; |
18 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.AndGateDefinition; | ||
19 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.BasicEventDefinition; | ||
20 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.CftPackage; | ||
21 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.ComponentDefinition; | ||
22 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.IntputEvent; | ||
23 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.KOfMGateDefinition; | ||
24 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.OrGateDefinition; | ||
25 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ConstantDistribution; | ||
26 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.ExponentialDistribution; | ||
27 | import hu.bme.mit.inf.dslreasoner.faulttree.model.ft.FtPackage; | ||
23 | import java.util.Set; | 28 | import java.util.Set; |
24 | import org.eclipse.emf.ecore.EObject; | 29 | import org.eclipse.emf.ecore.EObject; |
25 | import org.eclipse.emf.ecore.EPackage; | 30 | import org.eclipse.emf.ecore.EPackage; |
@@ -43,23 +48,35 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
43 | ParserRule rule = context.getParserRule(); | 48 | ParserRule rule = context.getParserRule(); |
44 | Action action = context.getAssignedAction(); | 49 | Action action = context.getAssignedAction(); |
45 | Set<Parameter> parameters = context.getEnabledBooleanParameters(); | 50 | Set<Parameter> parameters = context.getEnabledBooleanParameters(); |
46 | if (epackage == CftLanguagePackage.eINSTANCE) | 51 | if (epackage == CftPackage.eINSTANCE) |
47 | switch (semanticObject.eClass().getClassifierID()) { | 52 | switch (semanticObject.eClass().getClassifierID()) { |
48 | case CftLanguagePackage.AND_GATE: | 53 | case CftPackage.AND_GATE_DEFINITION: |
49 | sequence_AndGate(context, (AndGate) semanticObject); | 54 | sequence_AndGateDefinition(context, (AndGateDefinition) semanticObject); |
50 | return; | 55 | return; |
56 | case CftPackage.BASIC_EVENT_DEFINITION: | ||
57 | sequence_BasicEventDefinition(context, (BasicEventDefinition) semanticObject); | ||
58 | return; | ||
59 | case CftPackage.COMPONENT_DEFINITION: | ||
60 | sequence_ComponentDefinition(context, (ComponentDefinition) semanticObject); | ||
61 | return; | ||
62 | case CftPackage.INTPUT_EVENT: | ||
63 | sequence_InputEvent(context, (IntputEvent) semanticObject); | ||
64 | return; | ||
65 | case CftPackage.KOF_MGATE_DEFINITION: | ||
66 | sequence_KOfMGateDefinition(context, (KOfMGateDefinition) semanticObject); | ||
67 | return; | ||
68 | case CftPackage.OR_GATE_DEFINITION: | ||
69 | sequence_OrGateDefinition(context, (OrGateDefinition) semanticObject); | ||
70 | return; | ||
71 | } | ||
72 | else if (epackage == CftLanguagePackage.eINSTANCE) | ||
73 | switch (semanticObject.eClass().getClassifierID()) { | ||
51 | case CftLanguagePackage.ASSIGNMENT: | 74 | case CftLanguagePackage.ASSIGNMENT: |
52 | sequence_Assignment(context, (Assignment) semanticObject); | 75 | sequence_Assignment(context, (Assignment) semanticObject); |
53 | return; | 76 | return; |
54 | case CftLanguagePackage.BASIC_EVENT_DEFINITION: | ||
55 | sequence_BasicEventDefinition(context, (BasicEventDefinition) semanticObject); | ||
56 | return; | ||
57 | case CftLanguagePackage.CFT_MODEL: | 77 | case CftLanguagePackage.CFT_MODEL: |
58 | sequence_CftModel(context, (CftModel) semanticObject); | 78 | sequence_CftModel(context, (CftModel) semanticObject); |
59 | return; | 79 | return; |
60 | case CftLanguagePackage.COMPONENT_DEFINITION: | ||
61 | sequence_ComponentDefinition(context, (ComponentDefinition) semanticObject); | ||
62 | return; | ||
63 | case CftLanguagePackage.COMPONENT_INSTANCE: | 80 | case CftLanguagePackage.COMPONENT_INSTANCE: |
64 | sequence_ComponentInstance(context, (ComponentInstance) semanticObject); | 81 | sequence_ComponentInstance(context, (ComponentInstance) semanticObject); |
65 | return; | 82 | return; |
@@ -69,9 +86,6 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
69 | case CftLanguagePackage.IMPORT_DECLARATION: | 86 | case CftLanguagePackage.IMPORT_DECLARATION: |
70 | sequence_ImportDeclaration(context, (ImportDeclaration) semanticObject); | 87 | sequence_ImportDeclaration(context, (ImportDeclaration) semanticObject); |
71 | return; | 88 | return; |
72 | case CftLanguagePackage.INPUT_EVENT: | ||
73 | sequence_InputEvent(context, (InputEvent) semanticObject); | ||
74 | return; | ||
75 | case CftLanguagePackage.LOOKUP_DEFINITION: | 89 | case CftLanguagePackage.LOOKUP_DEFINITION: |
76 | sequence_LookupDefinition(context, (LookupDefinition) semanticObject); | 90 | sequence_LookupDefinition(context, (LookupDefinition) semanticObject); |
77 | return; | 91 | return; |
@@ -81,28 +95,33 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
81 | case CftLanguagePackage.MAPPING_PARAMETER: | 95 | case CftLanguagePackage.MAPPING_PARAMETER: |
82 | sequence_MappingParameter(context, (MappingParameter) semanticObject); | 96 | sequence_MappingParameter(context, (MappingParameter) semanticObject); |
83 | return; | 97 | return; |
84 | case CftLanguagePackage.OR_GATE: | ||
85 | sequence_OrGate(context, (OrGate) semanticObject); | ||
86 | return; | ||
87 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: | 98 | case CftLanguagePackage.TRANSFORMATION_DEFINITION: |
88 | sequence_TransformationDefinition(context, (TransformationDefinition) semanticObject); | 99 | sequence_TransformationDefinition(context, (TransformationDefinition) semanticObject); |
89 | return; | 100 | return; |
90 | } | 101 | } |
102 | else if (epackage == FtPackage.eINSTANCE) | ||
103 | switch (semanticObject.eClass().getClassifierID()) { | ||
104 | case FtPackage.CONSTANT_DISTRIBUTION: | ||
105 | sequence_ConstantDistribution(context, (ConstantDistribution) semanticObject); | ||
106 | return; | ||
107 | case FtPackage.EXPONENTIAL_DISTRIBUTION: | ||
108 | sequence_ExponentialDistribution(context, (ExponentialDistribution) semanticObject); | ||
109 | return; | ||
110 | } | ||
91 | if (errorAcceptor != null) | 111 | if (errorAcceptor != null) |
92 | errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); | 112 | errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); |
93 | } | 113 | } |
94 | 114 | ||
95 | /** | 115 | /** |
96 | * Contexts: | 116 | * Contexts: |
97 | * EventDeclaration returns AndGate | 117 | * EventDefinition returns AndGateDefinition |
98 | * EventDefinition returns AndGate | 118 | * GateDefinition returns AndGateDefinition |
99 | * GateDefinition returns AndGate | 119 | * AndGateDefinition returns AndGateDefinition |
100 | * AndGate returns AndGate | ||
101 | * | 120 | * |
102 | * Constraint: | 121 | * Constraint: |
103 | * (name=ID inputEvents+=[EventDeclaration|ID]*) | 122 | * (name=ValidId inputEvents+=[EventDeclaration|ValidId]*) |
104 | */ | 123 | */ |
105 | protected void sequence_AndGate(ISerializationContext context, AndGate semanticObject) { | 124 | protected void sequence_AndGateDefinition(ISerializationContext context, AndGateDefinition semanticObject) { |
106 | genericSequencer.createSequence(context, semanticObject); | 125 | genericSequencer.createSequence(context, semanticObject); |
107 | } | 126 | } |
108 | 127 | ||
@@ -121,23 +140,22 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
121 | 140 | ||
122 | /** | 141 | /** |
123 | * Contexts: | 142 | * Contexts: |
124 | * EventDeclaration returns BasicEventDefinition | ||
125 | * EventDefinition returns BasicEventDefinition | 143 | * EventDefinition returns BasicEventDefinition |
126 | * BasicEventDefinition returns BasicEventDefinition | 144 | * BasicEventDefinition returns BasicEventDefinition |
127 | * | 145 | * |
128 | * Constraint: | 146 | * Constraint: |
129 | * (name=ID rate=DOULBE) | 147 | * (name=ValidId distribution=Distribution) |
130 | */ | 148 | */ |
131 | protected void sequence_BasicEventDefinition(ISerializationContext context, BasicEventDefinition semanticObject) { | 149 | protected void sequence_BasicEventDefinition(ISerializationContext context, BasicEventDefinition semanticObject) { |
132 | if (errorAcceptor != null) { | 150 | if (errorAcceptor != null) { |
133 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.EVENT_DECLARATION__NAME) == ValueTransient.YES) | 151 | if (transientValues.isValueTransient(semanticObject, CftPackage.Literals.EVENT_DECLARATION__NAME) == ValueTransient.YES) |
134 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_DECLARATION__NAME)); | 152 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftPackage.Literals.EVENT_DECLARATION__NAME)); |
135 | if (transientValues.isValueTransient(semanticObject, CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION__RATE) == ValueTransient.YES) | 153 | if (transientValues.isValueTransient(semanticObject, CftPackage.Literals.BASIC_EVENT_DEFINITION__DISTRIBUTION) == ValueTransient.YES) |
136 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.BASIC_EVENT_DEFINITION__RATE)); | 154 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftPackage.Literals.BASIC_EVENT_DEFINITION__DISTRIBUTION)); |
137 | } | 155 | } |
138 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | 156 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); |
139 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName()); | 157 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0(), semanticObject.getName()); |
140 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0(), semanticObject.getRate()); | 158 | feeder.accept(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0(), semanticObject.getDistribution()); |
141 | feeder.finish(); | 159 | feeder.finish(); |
142 | } | 160 | } |
143 | 161 | ||
@@ -163,7 +181,7 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
163 | * ComponentDefinition returns ComponentDefinition | 181 | * ComponentDefinition returns ComponentDefinition |
164 | * | 182 | * |
165 | * Constraint: | 183 | * Constraint: |
166 | * (name=ID (inputEvents+=InputEvent | outputEvents+=[EventDeclaration|ID])* eventDefinitions+=EventDefinition*) | 184 | * (name=ValidId (inputEvents+=InputEvent | outputEvents+=[EventDeclaration|ValidId])* eventDefinitions+=EventDefinition*) |
167 | */ | 185 | */ |
168 | protected void sequence_ComponentDefinition(ISerializationContext context, ComponentDefinition semanticObject) { | 186 | protected void sequence_ComponentDefinition(ISerializationContext context, ComponentDefinition semanticObject) { |
169 | genericSequencer.createSequence(context, semanticObject); | 187 | genericSequencer.createSequence(context, semanticObject); |
@@ -185,10 +203,29 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
185 | 203 | ||
186 | /** | 204 | /** |
187 | * Contexts: | 205 | * Contexts: |
206 | * Distribution returns ConstantDistribution | ||
207 | * ConstantDistribution returns ConstantDistribution | ||
208 | * | ||
209 | * Constraint: | ||
210 | * p=Double | ||
211 | */ | ||
212 | protected void sequence_ConstantDistribution(ISerializationContext context, ConstantDistribution semanticObject) { | ||
213 | if (errorAcceptor != null) { | ||
214 | if (transientValues.isValueTransient(semanticObject, FtPackage.Literals.CONSTANT_DISTRIBUTION__P) == ValueTransient.YES) | ||
215 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FtPackage.Literals.CONSTANT_DISTRIBUTION__P)); | ||
216 | } | ||
217 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
218 | feeder.accept(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0(), semanticObject.getP()); | ||
219 | feeder.finish(); | ||
220 | } | ||
221 | |||
222 | |||
223 | /** | ||
224 | * Contexts: | ||
188 | * EventReference returns EventReference | 225 | * EventReference returns EventReference |
189 | * | 226 | * |
190 | * Constraint: | 227 | * Constraint: |
191 | * (component=[Variable|ID] event=[EventDeclaration|ID]) | 228 | * (component=[Variable|ValidId] event=[EventDeclaration|ValidId]) |
192 | */ | 229 | */ |
193 | protected void sequence_EventReference(ISerializationContext context, EventReference semanticObject) { | 230 | protected void sequence_EventReference(ISerializationContext context, EventReference semanticObject) { |
194 | if (errorAcceptor != null) { | 231 | if (errorAcceptor != null) { |
@@ -198,8 +235,27 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
198 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT)); | 235 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT)); |
199 | } | 236 | } |
200 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | 237 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); |
201 | feeder.accept(grammarAccess.getEventReferenceAccess().getComponentVariableIDTerminalRuleCall_0_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT, false)); | 238 | feeder.accept(grammarAccess.getEventReferenceAccess().getComponentVariableValidIdParserRuleCall_0_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__COMPONENT, false)); |
202 | feeder.accept(grammarAccess.getEventReferenceAccess().getEventEventDeclarationIDTerminalRuleCall_2_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT, false)); | 239 | feeder.accept(grammarAccess.getEventReferenceAccess().getEventEventDeclarationValidIdParserRuleCall_2_0_1(), semanticObject.eGet(CftLanguagePackage.Literals.EVENT_REFERENCE__EVENT, false)); |
240 | feeder.finish(); | ||
241 | } | ||
242 | |||
243 | |||
244 | /** | ||
245 | * Contexts: | ||
246 | * Distribution returns ExponentialDistribution | ||
247 | * ExponentialDistribution returns ExponentialDistribution | ||
248 | * | ||
249 | * Constraint: | ||
250 | * lambda=Double | ||
251 | */ | ||
252 | protected void sequence_ExponentialDistribution(ISerializationContext context, ExponentialDistribution semanticObject) { | ||
253 | if (errorAcceptor != null) { | ||
254 | if (transientValues.isValueTransient(semanticObject, FtPackage.Literals.EXPONENTIAL_DISTRIBUTION__LAMBDA) == ValueTransient.YES) | ||
255 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FtPackage.Literals.EXPONENTIAL_DISTRIBUTION__LAMBDA)); | ||
256 | } | ||
257 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
258 | feeder.accept(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0(), semanticObject.getLambda()); | ||
203 | feeder.finish(); | 259 | feeder.finish(); |
204 | } | 260 | } |
205 | 261 | ||
@@ -224,13 +280,26 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
224 | 280 | ||
225 | /** | 281 | /** |
226 | * Contexts: | 282 | * Contexts: |
227 | * EventDeclaration returns InputEvent | 283 | * InputEvent returns IntputEvent |
228 | * InputEvent returns InputEvent | 284 | * |
285 | * Constraint: | ||
286 | * (name=ValidId multiple?='[]'?) | ||
287 | */ | ||
288 | protected void sequence_InputEvent(ISerializationContext context, IntputEvent semanticObject) { | ||
289 | genericSequencer.createSequence(context, semanticObject); | ||
290 | } | ||
291 | |||
292 | |||
293 | /** | ||
294 | * Contexts: | ||
295 | * EventDefinition returns KOfMGateDefinition | ||
296 | * GateDefinition returns KOfMGateDefinition | ||
297 | * KOfMGateDefinition returns KOfMGateDefinition | ||
229 | * | 298 | * |
230 | * Constraint: | 299 | * Constraint: |
231 | * (name=ID multiple?='[]'?) | 300 | * (name=ValidId k=INT (m=INT | m=OF_INT) inputEvents+=[EventDeclaration|ValidId]*) |
232 | */ | 301 | */ |
233 | protected void sequence_InputEvent(ISerializationContext context, InputEvent semanticObject) { | 302 | protected void sequence_KOfMGateDefinition(ISerializationContext context, KOfMGateDefinition semanticObject) { |
234 | genericSequencer.createSequence(context, semanticObject); | 303 | genericSequencer.createSequence(context, semanticObject); |
235 | } | 304 | } |
236 | 305 | ||
@@ -241,7 +310,7 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
241 | * Variable returns LookupDefinition | 310 | * Variable returns LookupDefinition |
242 | * | 311 | * |
243 | * Constraint: | 312 | * Constraint: |
244 | * (mapping=[MappingDefinition|ID] arguments+=[MappingParameter|ID] arguments+=[MappingParameter|ID]* name=ID) | 313 | * (mapping=[MappingDefinition|QualifiedName] arguments+=[MappingParameter|ValidId] arguments+=[MappingParameter|ValidId]* name=ValidId) |
245 | */ | 314 | */ |
246 | protected void sequence_LookupDefinition(ISerializationContext context, LookupDefinition semanticObject) { | 315 | protected void sequence_LookupDefinition(ISerializationContext context, LookupDefinition semanticObject) { |
247 | genericSequencer.createSequence(context, semanticObject); | 316 | genericSequencer.createSequence(context, semanticObject); |
@@ -272,7 +341,7 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
272 | * MappingParameter returns MappingParameter | 341 | * MappingParameter returns MappingParameter |
273 | * | 342 | * |
274 | * Constraint: | 343 | * Constraint: |
275 | * name=ID | 344 | * name=ValidId |
276 | */ | 345 | */ |
277 | protected void sequence_MappingParameter(ISerializationContext context, MappingParameter semanticObject) { | 346 | protected void sequence_MappingParameter(ISerializationContext context, MappingParameter semanticObject) { |
278 | if (errorAcceptor != null) { | 347 | if (errorAcceptor != null) { |
@@ -280,22 +349,21 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
280 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME)); | 349 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CftLanguagePackage.Literals.MAPPING_PARAMETER__NAME)); |
281 | } | 350 | } |
282 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | 351 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); |
283 | feeder.accept(grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0(), semanticObject.getName()); | 352 | feeder.accept(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0(), semanticObject.getName()); |
284 | feeder.finish(); | 353 | feeder.finish(); |
285 | } | 354 | } |
286 | 355 | ||
287 | 356 | ||
288 | /** | 357 | /** |
289 | * Contexts: | 358 | * Contexts: |
290 | * EventDeclaration returns OrGate | 359 | * EventDefinition returns OrGateDefinition |
291 | * EventDefinition returns OrGate | 360 | * GateDefinition returns OrGateDefinition |
292 | * GateDefinition returns OrGate | 361 | * OrGateDefinition returns OrGateDefinition |
293 | * OrGate returns OrGate | ||
294 | * | 362 | * |
295 | * Constraint: | 363 | * Constraint: |
296 | * (name=ID inputEvents+=[EventDeclaration|ID]*) | 364 | * (name=ValidId inputEvents+=[EventDeclaration|ValidId]*) |
297 | */ | 365 | */ |
298 | protected void sequence_OrGate(ISerializationContext context, OrGate semanticObject) { | 366 | protected void sequence_OrGateDefinition(ISerializationContext context, OrGateDefinition semanticObject) { |
299 | genericSequencer.createSequence(context, semanticObject); | 367 | genericSequencer.createSequence(context, semanticObject); |
300 | } | 368 | } |
301 | 369 | ||
@@ -305,7 +373,7 @@ public class CftLanguageSemanticSequencer extends AbstractDelegatingSemanticSequ | |||
305 | * TransformationDefinition returns TransformationDefinition | 373 | * TransformationDefinition returns TransformationDefinition |
306 | * | 374 | * |
307 | * Constraint: | 375 | * Constraint: |
308 | * (name=ID mappingDefinitions+=MappingDefinition*) | 376 | * (name=ValidId mappingDefinitions+=MappingDefinition*) |
309 | */ | 377 | */ |
310 | protected void sequence_TransformationDefinition(ISerializationContext context, TransformationDefinition semanticObject) { | 378 | protected void sequence_TransformationDefinition(ISerializationContext context, TransformationDefinition semanticObject) { |
311 | genericSequencer.createSequence(context, semanticObject); | 379 | genericSequencer.createSequence(context, semanticObject); |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java index 65b39fb2..62a80a00 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/serializer/CftLanguageSyntacticSequencer.java | |||
@@ -123,10 +123,10 @@ public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | |||
123 | * ('in' ';')* | 123 | * ('in' ';')* |
124 | * | 124 | * |
125 | * This ambiguous syntax occurs at: | 125 | * This ambiguous syntax occurs at: |
126 | * inputEvents+=InputEvent ';' (ambiguity) (('out' ';')? ('out' ';' 'in' ';')?)+ 'out' outputEvents+=[EventDeclaration|ID] | 126 | * inputEvents+=InputEvent ';' (ambiguity) (('out' ';')? ('out' ';' 'in' ';')?)+ 'out' outputEvents+=[EventDeclaration|ValidId] |
127 | * name=ID '{' (ambiguity) 'out' (';' (ambiguity) 'out')* outputEvents+=[EventDeclaration|ID] | 127 | * name=ValidId '{' (ambiguity) 'out' (';' (ambiguity) 'out')* outputEvents+=[EventDeclaration|ValidId] |
128 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) ('out' ';' (ambiguity))* '}' (rule end) | 128 | * outputEvents+=[EventDeclaration|ValidId] ';' (ambiguity) ('out' ';' (ambiguity))* '}' (rule end) |
129 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) ('out' ';' (ambiguity))* eventDefinitions+=EventDefinition | 129 | * outputEvents+=[EventDeclaration|ValidId] ';' (ambiguity) ('out' ';' (ambiguity))* eventDefinitions+=EventDefinition |
130 | */ | 130 | */ |
131 | protected void emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | 131 | protected void emit_ComponentDefinition___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { |
132 | acceptNodes(transition, nodes); | 132 | acceptNodes(transition, nodes); |
@@ -137,8 +137,8 @@ public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | |||
137 | * ('out' ';' ('in' ';')*)* | 137 | * ('out' ';' ('in' ';')*)* |
138 | * | 138 | * |
139 | * This ambiguous syntax occurs at: | 139 | * This ambiguous syntax occurs at: |
140 | * outputEvents+=[EventDeclaration|ID] ';' ('in' ';')* (ambiguity) '}' (rule end) | 140 | * outputEvents+=[EventDeclaration|ValidId] ';' ('in' ';')* (ambiguity) '}' (rule end) |
141 | * outputEvents+=[EventDeclaration|ID] ';' ('in' ';')* (ambiguity) eventDefinitions+=EventDefinition | 141 | * outputEvents+=[EventDeclaration|ValidId] ';' ('in' ';')* (ambiguity) eventDefinitions+=EventDefinition |
142 | */ | 142 | */ |
143 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | 143 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { |
144 | acceptNodes(transition, nodes); | 144 | acceptNodes(transition, nodes); |
@@ -151,8 +151,8 @@ public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | |||
151 | * This ambiguous syntax occurs at: | 151 | * This ambiguous syntax occurs at: |
152 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* '}' (rule end) | 152 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* '}' (rule end) |
153 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* eventDefinitions+=EventDefinition | 153 | * inputEvents+=InputEvent ';' (ambiguity) ('in' ';' (ambiguity))* eventDefinitions+=EventDefinition |
154 | * name=ID '{' (ambiguity) 'in' (';' (ambiguity) 'in')* inputEvents+=InputEvent | 154 | * name=ValidId '{' (ambiguity) 'in' (';' (ambiguity) 'in')* inputEvents+=InputEvent |
155 | * outputEvents+=[EventDeclaration|ID] ';' (ambiguity) (('in' ';')? ('in' ';' 'out' ';')?)+ 'in' inputEvents+=InputEvent | 155 | * outputEvents+=[EventDeclaration|ValidId] ';' (ambiguity) (('in' ';')? ('in' ';' 'out' ';')?)+ 'in' inputEvents+=InputEvent |
156 | */ | 156 | */ |
157 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | 157 | protected void emit_ComponentDefinition___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { |
158 | acceptNodes(transition, nodes); | 158 | acceptNodes(transition, nodes); |
@@ -164,7 +164,7 @@ public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | |||
164 | * | 164 | * |
165 | * This ambiguous syntax occurs at: | 165 | * This ambiguous syntax occurs at: |
166 | * inputEvents+=InputEvent (ambiguity) inputEvents+=InputEvent | 166 | * inputEvents+=InputEvent (ambiguity) inputEvents+=InputEvent |
167 | * name=ID '{' ('out' ';')* 'in' (ambiguity) inputEvents+=InputEvent | 167 | * name=ValidId '{' ('out' ';')* 'in' (ambiguity) inputEvents+=InputEvent |
168 | */ | 168 | */ |
169 | protected void emit_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | 169 | protected void emit_ComponentDefinition___SemicolonKeyword_3_0_2___OutKeyword_3_1_0_SemicolonKeyword_3_1_2__a_InKeyword_3_0_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { |
170 | acceptNodes(transition, nodes); | 170 | acceptNodes(transition, nodes); |
@@ -175,8 +175,8 @@ public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | |||
175 | * (';' ('in' ';')* 'out')* | 175 | * (';' ('in' ';')* 'out')* |
176 | * | 176 | * |
177 | * This ambiguous syntax occurs at: | 177 | * This ambiguous syntax occurs at: |
178 | * name=ID '{' ('in' ';')* 'out' (ambiguity) outputEvents+=[EventDeclaration|ID] | 178 | * name=ValidId '{' ('in' ';')* 'out' (ambiguity) outputEvents+=[EventDeclaration|ValidId] |
179 | * outputEvents+=[EventDeclaration|ID] (ambiguity) outputEvents+=[EventDeclaration|ID] | 179 | * outputEvents+=[EventDeclaration|ValidId] (ambiguity) outputEvents+=[EventDeclaration|ValidId] |
180 | */ | 180 | */ |
181 | protected void emit_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | 181 | protected void emit_ComponentDefinition___SemicolonKeyword_3_1_2___InKeyword_3_0_0_SemicolonKeyword_3_0_2__a_OutKeyword_3_1_0__a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { |
182 | acceptNodes(transition, nodes); | 182 | acceptNodes(transition, nodes); |
@@ -187,8 +187,8 @@ public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | |||
187 | * (('in' ';') | ('out' ';'))* | 187 | * (('in' ';') | ('out' ';'))* |
188 | * | 188 | * |
189 | * This ambiguous syntax occurs at: | 189 | * This ambiguous syntax occurs at: |
190 | * name=ID '{' (ambiguity) '}' (rule end) | 190 | * name=ValidId '{' (ambiguity) '}' (rule end) |
191 | * name=ID '{' (ambiguity) eventDefinitions+=EventDefinition | 191 | * name=ValidId '{' (ambiguity) eventDefinitions+=EventDefinition |
192 | */ | 192 | */ |
193 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | 193 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2___or___OutKeyword_3_1_0_SemicolonKeyword_3_1_2____a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { |
194 | acceptNodes(transition, nodes); | 194 | acceptNodes(transition, nodes); |
@@ -199,7 +199,7 @@ public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | |||
199 | * (('in' ';')? ('in' ';' 'out' ';')?)+ | 199 | * (('in' ';')? ('in' ';' 'out' ';')?)+ |
200 | * | 200 | * |
201 | * This ambiguous syntax occurs at: | 201 | * This ambiguous syntax occurs at: |
202 | * outputEvents+=[EventDeclaration|ID] ';' ('out' ';')* (ambiguity) 'in' inputEvents+=InputEvent | 202 | * outputEvents+=[EventDeclaration|ValidId] ';' ('out' ';')* (ambiguity) 'in' inputEvents+=InputEvent |
203 | */ | 203 | */ |
204 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | 204 | protected void emit_ComponentDefinition_____InKeyword_3_0_0_SemicolonKeyword_3_0_2__q___InKeyword_3_0_0_SemicolonKeyword_3_0_2_OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { |
205 | acceptNodes(transition, nodes); | 205 | acceptNodes(transition, nodes); |
@@ -210,7 +210,7 @@ public class CftLanguageSyntacticSequencer extends AbstractSyntacticSequencer { | |||
210 | * (('out' ';')? ('out' ';' 'in' ';')?)+ | 210 | * (('out' ';')? ('out' ';' 'in' ';')?)+ |
211 | * | 211 | * |
212 | * This ambiguous syntax occurs at: | 212 | * This ambiguous syntax occurs at: |
213 | * inputEvents+=InputEvent ';' ('in' ';')* (ambiguity) 'out' outputEvents+=[EventDeclaration|ID] | 213 | * inputEvents+=InputEvent ';' ('in' ';')* (ambiguity) 'out' outputEvents+=[EventDeclaration|ValidId] |
214 | */ | 214 | */ |
215 | protected void emit_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { | 215 | protected void emit_ComponentDefinition_____OutKeyword_3_1_0_SemicolonKeyword_3_1_2__q___OutKeyword_3_1_0_SemicolonKeyword_3_1_2_InKeyword_3_0_0_SemicolonKeyword_3_0_2__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { |
216 | acceptNodes(transition, nodes); | 216 | acceptNodes(transition, nodes); |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java index 1ca0cf8e..69f00bb3 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java | |||
@@ -114,7 +114,7 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
114 | private final Group cGroup = (Group)rule.eContents().get(1); | 114 | private final Group cGroup = (Group)rule.eContents().get(1); |
115 | private final Keyword cCftKeyword_0 = (Keyword)cGroup.eContents().get(0); | 115 | private final Keyword cCftKeyword_0 = (Keyword)cGroup.eContents().get(0); |
116 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | 116 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); |
117 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | 117 | private final RuleCall cNameValidIdParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); |
118 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); | 118 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); |
119 | private final UnorderedGroup cUnorderedGroup_3 = (UnorderedGroup)cGroup.eContents().get(3); | 119 | private final UnorderedGroup cUnorderedGroup_3 = (UnorderedGroup)cGroup.eContents().get(3); |
120 | private final Group cGroup_3_0 = (Group)cUnorderedGroup_3.eContents().get(0); | 120 | private final Group cGroup_3_0 = (Group)cUnorderedGroup_3.eContents().get(0); |
@@ -126,7 +126,7 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
126 | private final Keyword cOutKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0); | 126 | private final Keyword cOutKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0); |
127 | private final Assignment cOutputEventsAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1); | 127 | private final Assignment cOutputEventsAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1); |
128 | private final CrossReference cOutputEventsEventDeclarationCrossReference_3_1_1_0 = (CrossReference)cOutputEventsAssignment_3_1_1.eContents().get(0); | 128 | private final CrossReference cOutputEventsEventDeclarationCrossReference_3_1_1_0 = (CrossReference)cOutputEventsAssignment_3_1_1.eContents().get(0); |
129 | private final RuleCall cOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1 = (RuleCall)cOutputEventsEventDeclarationCrossReference_3_1_1_0.eContents().get(1); | 129 | private final RuleCall cOutputEventsEventDeclarationValidIdParserRuleCall_3_1_1_0_1 = (RuleCall)cOutputEventsEventDeclarationCrossReference_3_1_1_0.eContents().get(1); |
130 | private final Keyword cSemicolonKeyword_3_1_2 = (Keyword)cGroup_3_1.eContents().get(2); | 130 | private final Keyword cSemicolonKeyword_3_1_2 = (Keyword)cGroup_3_1.eContents().get(2); |
131 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); | 131 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); |
132 | private final Assignment cEventDefinitionsAssignment_4_0 = (Assignment)cGroup_4.eContents().get(0); | 132 | private final Assignment cEventDefinitionsAssignment_4_0 = (Assignment)cGroup_4.eContents().get(0); |
@@ -134,29 +134,29 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
134 | private final Keyword cSemicolonKeyword_4_1 = (Keyword)cGroup_4.eContents().get(1); | 134 | private final Keyword cSemicolonKeyword_4_1 = (Keyword)cGroup_4.eContents().get(1); |
135 | private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); | 135 | private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); |
136 | 136 | ||
137 | //ComponentDefinition: | 137 | //ComponentDefinition cft::ComponentDefinition: |
138 | // "cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | 138 | // "cft" name=ValidId "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[cft::EventDeclaration|ValidId]* |
139 | // (eventDefinitions+=EventDefinition ";")* | 139 | // ";")?) (eventDefinitions+=EventDefinition ";")* |
140 | // "}"; | 140 | // "}"; |
141 | @Override public ParserRule getRule() { return rule; } | 141 | @Override public ParserRule getRule() { return rule; } |
142 | 142 | ||
143 | //"cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | 143 | //"cft" name=ValidId "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[cft::EventDeclaration|ValidId]* |
144 | //(eventDefinitions+=EventDefinition ";")* "}" | 144 | //";")?) (eventDefinitions+=EventDefinition ";")* "}" |
145 | public Group getGroup() { return cGroup; } | 145 | public Group getGroup() { return cGroup; } |
146 | 146 | ||
147 | //"cft" | 147 | //"cft" |
148 | public Keyword getCftKeyword_0() { return cCftKeyword_0; } | 148 | public Keyword getCftKeyword_0() { return cCftKeyword_0; } |
149 | 149 | ||
150 | //name=ID | 150 | //name=ValidId |
151 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | 151 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } |
152 | 152 | ||
153 | //ID | 153 | //ValidId |
154 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | 154 | public RuleCall getNameValidIdParserRuleCall_1_0() { return cNameValidIdParserRuleCall_1_0; } |
155 | 155 | ||
156 | //"{" | 156 | //"{" |
157 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | 157 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } |
158 | 158 | ||
159 | //("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")? | 159 | //("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[cft::EventDeclaration|ValidId]* ";")? |
160 | public UnorderedGroup getUnorderedGroup_3() { return cUnorderedGroup_3; } | 160 | public UnorderedGroup getUnorderedGroup_3() { return cUnorderedGroup_3; } |
161 | 161 | ||
162 | //("in" inputEvents+=InputEvent* ";")? | 162 | //("in" inputEvents+=InputEvent* ";")? |
@@ -174,20 +174,20 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
174 | //";" | 174 | //";" |
175 | public Keyword getSemicolonKeyword_3_0_2() { return cSemicolonKeyword_3_0_2; } | 175 | public Keyword getSemicolonKeyword_3_0_2() { return cSemicolonKeyword_3_0_2; } |
176 | 176 | ||
177 | //("out" outputEvents+=[EventDeclaration]* ";")? | 177 | //("out" outputEvents+=[cft::EventDeclaration|ValidId]* ";")? |
178 | public Group getGroup_3_1() { return cGroup_3_1; } | 178 | public Group getGroup_3_1() { return cGroup_3_1; } |
179 | 179 | ||
180 | //"out" | 180 | //"out" |
181 | public Keyword getOutKeyword_3_1_0() { return cOutKeyword_3_1_0; } | 181 | public Keyword getOutKeyword_3_1_0() { return cOutKeyword_3_1_0; } |
182 | 182 | ||
183 | //outputEvents+=[EventDeclaration]* | 183 | //outputEvents+=[cft::EventDeclaration|ValidId]* |
184 | public Assignment getOutputEventsAssignment_3_1_1() { return cOutputEventsAssignment_3_1_1; } | 184 | public Assignment getOutputEventsAssignment_3_1_1() { return cOutputEventsAssignment_3_1_1; } |
185 | 185 | ||
186 | //[EventDeclaration] | 186 | //[cft::EventDeclaration|ValidId] |
187 | public CrossReference getOutputEventsEventDeclarationCrossReference_3_1_1_0() { return cOutputEventsEventDeclarationCrossReference_3_1_1_0; } | 187 | public CrossReference getOutputEventsEventDeclarationCrossReference_3_1_1_0() { return cOutputEventsEventDeclarationCrossReference_3_1_1_0; } |
188 | 188 | ||
189 | //ID | 189 | //ValidId |
190 | public RuleCall getOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1() { return cOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1; } | 190 | public RuleCall getOutputEventsEventDeclarationValidIdParserRuleCall_3_1_1_0_1() { return cOutputEventsEventDeclarationValidIdParserRuleCall_3_1_1_0_1; } |
191 | 191 | ||
192 | //";" | 192 | //";" |
193 | public Keyword getSemicolonKeyword_3_1_2() { return cSemicolonKeyword_3_1_2; } | 193 | public Keyword getSemicolonKeyword_3_1_2() { return cSemicolonKeyword_3_1_2; } |
@@ -207,45 +207,26 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
207 | //"}" | 207 | //"}" |
208 | public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; } | 208 | public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; } |
209 | } | 209 | } |
210 | public class EventDeclarationElements extends AbstractParserRuleElementFinder { | ||
211 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDeclaration"); | ||
212 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
213 | private final RuleCall cInputEventParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
214 | private final RuleCall cEventDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
215 | |||
216 | //EventDeclaration: | ||
217 | // InputEvent | EventDefinition; | ||
218 | @Override public ParserRule getRule() { return rule; } | ||
219 | |||
220 | //InputEvent | EventDefinition | ||
221 | public Alternatives getAlternatives() { return cAlternatives; } | ||
222 | |||
223 | //InputEvent | ||
224 | public RuleCall getInputEventParserRuleCall_0() { return cInputEventParserRuleCall_0; } | ||
225 | |||
226 | //EventDefinition | ||
227 | public RuleCall getEventDefinitionParserRuleCall_1() { return cEventDefinitionParserRuleCall_1; } | ||
228 | } | ||
229 | public class InputEventElements extends AbstractParserRuleElementFinder { | 210 | public class InputEventElements extends AbstractParserRuleElementFinder { |
230 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | 211 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); |
231 | private final Group cGroup = (Group)rule.eContents().get(1); | 212 | private final Group cGroup = (Group)rule.eContents().get(1); |
232 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | 213 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); |
233 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | 214 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); |
234 | private final Assignment cMultipleAssignment_1 = (Assignment)cGroup.eContents().get(1); | 215 | private final Assignment cMultipleAssignment_1 = (Assignment)cGroup.eContents().get(1); |
235 | private final Keyword cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0 = (Keyword)cMultipleAssignment_1.eContents().get(0); | 216 | private final Keyword cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0 = (Keyword)cMultipleAssignment_1.eContents().get(0); |
236 | 217 | ||
237 | //InputEvent: | 218 | //InputEvent cft::IntputEvent: |
238 | // name=ID multiple?="[]"?; | 219 | // name=ValidId multiple?="[]"?; |
239 | @Override public ParserRule getRule() { return rule; } | 220 | @Override public ParserRule getRule() { return rule; } |
240 | 221 | ||
241 | //name=ID multiple?="[]"? | 222 | //name=ValidId multiple?="[]"? |
242 | public Group getGroup() { return cGroup; } | 223 | public Group getGroup() { return cGroup; } |
243 | 224 | ||
244 | //name=ID | 225 | //name=ValidId |
245 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | 226 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } |
246 | 227 | ||
247 | //ID | 228 | //ValidId |
248 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | 229 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } |
249 | 230 | ||
250 | //multiple?="[]"? | 231 | //multiple?="[]"? |
251 | public Assignment getMultipleAssignment_1() { return cMultipleAssignment_1; } | 232 | public Assignment getMultipleAssignment_1() { return cMultipleAssignment_1; } |
@@ -259,7 +240,7 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
259 | private final RuleCall cBasicEventDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | 240 | private final RuleCall cBasicEventDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); |
260 | private final RuleCall cGateDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | 241 | private final RuleCall cGateDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); |
261 | 242 | ||
262 | //EventDefinition: | 243 | //EventDefinition cft::EventDefinition: |
263 | // BasicEventDefinition | GateDefinition; | 244 | // BasicEventDefinition | GateDefinition; |
264 | @Override public ParserRule getRule() { return rule; } | 245 | @Override public ParserRule getRule() { return rule; } |
265 | 246 | ||
@@ -276,154 +257,290 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
276 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.BasicEventDefinition"); | 257 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.BasicEventDefinition"); |
277 | private final Group cGroup = (Group)rule.eContents().get(1); | 258 | private final Group cGroup = (Group)rule.eContents().get(1); |
278 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | 259 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); |
279 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | 260 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); |
280 | private final Keyword cLambdaKeyword_1 = (Keyword)cGroup.eContents().get(1); | 261 | private final Assignment cDistributionAssignment_1 = (Assignment)cGroup.eContents().get(1); |
281 | private final Keyword cEqualsSignKeyword_2 = (Keyword)cGroup.eContents().get(2); | 262 | private final RuleCall cDistributionDistributionParserRuleCall_1_0 = (RuleCall)cDistributionAssignment_1.eContents().get(0); |
282 | private final Assignment cRateAssignment_3 = (Assignment)cGroup.eContents().get(3); | 263 | |
283 | private final RuleCall cRateDOULBETerminalRuleCall_3_0 = (RuleCall)cRateAssignment_3.eContents().get(0); | 264 | //BasicEventDefinition cft::BasicEventDefinition: |
284 | 265 | // name=ValidId distribution=Distribution; | |
285 | //BasicEventDefinition: | ||
286 | // name=ID "lambda" "=" rate=DOULBE; | ||
287 | @Override public ParserRule getRule() { return rule; } | 266 | @Override public ParserRule getRule() { return rule; } |
288 | 267 | ||
289 | //name=ID "lambda" "=" rate=DOULBE | 268 | //name=ValidId distribution=Distribution |
290 | public Group getGroup() { return cGroup; } | 269 | public Group getGroup() { return cGroup; } |
291 | 270 | ||
292 | //name=ID | 271 | //name=ValidId |
293 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | 272 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } |
294 | 273 | ||
295 | //ID | 274 | //ValidId |
296 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | 275 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } |
276 | |||
277 | //distribution=Distribution | ||
278 | public Assignment getDistributionAssignment_1() { return cDistributionAssignment_1; } | ||
279 | |||
280 | //Distribution | ||
281 | public RuleCall getDistributionDistributionParserRuleCall_1_0() { return cDistributionDistributionParserRuleCall_1_0; } | ||
282 | } | ||
283 | public class DistributionElements extends AbstractParserRuleElementFinder { | ||
284 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
285 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
286 | private final RuleCall cConstantDistributionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
287 | private final RuleCall cExponentialDistributionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
288 | |||
289 | //Distribution ft::Distribution: | ||
290 | // ConstantDistribution | ExponentialDistribution; | ||
291 | @Override public ParserRule getRule() { return rule; } | ||
292 | |||
293 | //ConstantDistribution | ExponentialDistribution | ||
294 | public Alternatives getAlternatives() { return cAlternatives; } | ||
295 | |||
296 | //ConstantDistribution | ||
297 | public RuleCall getConstantDistributionParserRuleCall_0() { return cConstantDistributionParserRuleCall_0; } | ||
298 | |||
299 | //ExponentialDistribution | ||
300 | public RuleCall getExponentialDistributionParserRuleCall_1() { return cExponentialDistributionParserRuleCall_1; } | ||
301 | } | ||
302 | public class ConstantDistributionElements extends AbstractParserRuleElementFinder { | ||
303 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ConstantDistribution"); | ||
304 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
305 | private final Keyword cPKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
306 | private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
307 | private final Assignment cPAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
308 | private final RuleCall cPDoubleParserRuleCall_2_0 = (RuleCall)cPAssignment_2.eContents().get(0); | ||
309 | |||
310 | //ConstantDistribution ft::ConstantDistribution: | ||
311 | // "p" "=" p=Double; | ||
312 | @Override public ParserRule getRule() { return rule; } | ||
313 | |||
314 | //"p" "=" p=Double | ||
315 | public Group getGroup() { return cGroup; } | ||
316 | |||
317 | //"p" | ||
318 | public Keyword getPKeyword_0() { return cPKeyword_0; } | ||
319 | |||
320 | //"=" | ||
321 | public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; } | ||
322 | |||
323 | //p=Double | ||
324 | public Assignment getPAssignment_2() { return cPAssignment_2; } | ||
325 | |||
326 | //Double | ||
327 | public RuleCall getPDoubleParserRuleCall_2_0() { return cPDoubleParserRuleCall_2_0; } | ||
328 | } | ||
329 | public class ExponentialDistributionElements extends AbstractParserRuleElementFinder { | ||
330 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ExponentialDistribution"); | ||
331 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
332 | private final Keyword cLambdaKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
333 | private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
334 | private final Assignment cLambdaAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
335 | private final RuleCall cLambdaDoubleParserRuleCall_2_0 = (RuleCall)cLambdaAssignment_2.eContents().get(0); | ||
336 | |||
337 | //ExponentialDistribution ft::ExponentialDistribution: | ||
338 | // "lambda" "=" lambda=Double; | ||
339 | @Override public ParserRule getRule() { return rule; } | ||
340 | |||
341 | //"lambda" "=" lambda=Double | ||
342 | public Group getGroup() { return cGroup; } | ||
297 | 343 | ||
298 | //"lambda" | 344 | //"lambda" |
299 | public Keyword getLambdaKeyword_1() { return cLambdaKeyword_1; } | 345 | public Keyword getLambdaKeyword_0() { return cLambdaKeyword_0; } |
300 | 346 | ||
301 | //"=" | 347 | //"=" |
302 | public Keyword getEqualsSignKeyword_2() { return cEqualsSignKeyword_2; } | 348 | public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; } |
303 | 349 | ||
304 | //rate=DOULBE | 350 | //lambda=Double |
305 | public Assignment getRateAssignment_3() { return cRateAssignment_3; } | 351 | public Assignment getLambdaAssignment_2() { return cLambdaAssignment_2; } |
306 | 352 | ||
307 | //DOULBE | 353 | //Double |
308 | public RuleCall getRateDOULBETerminalRuleCall_3_0() { return cRateDOULBETerminalRuleCall_3_0; } | 354 | public RuleCall getLambdaDoubleParserRuleCall_2_0() { return cLambdaDoubleParserRuleCall_2_0; } |
309 | } | 355 | } |
310 | public class GateDefinitionElements extends AbstractParserRuleElementFinder { | 356 | public class GateDefinitionElements extends AbstractParserRuleElementFinder { |
311 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.GateDefinition"); | 357 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.GateDefinition"); |
312 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | 358 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); |
313 | private final RuleCall cAndGateParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | 359 | private final RuleCall cAndGateDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); |
314 | private final RuleCall cOrGateParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | 360 | private final RuleCall cOrGateDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); |
361 | private final RuleCall cKOfMGateDefinitionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2); | ||
315 | 362 | ||
316 | //GateDefinition: | 363 | //GateDefinition cft::GateDefinition: |
317 | // AndGate | OrGate; | 364 | // AndGateDefinition | OrGateDefinition | KOfMGateDefinition; |
318 | @Override public ParserRule getRule() { return rule; } | 365 | @Override public ParserRule getRule() { return rule; } |
319 | 366 | ||
320 | //AndGate | OrGate | 367 | //AndGateDefinition | OrGateDefinition | KOfMGateDefinition |
321 | public Alternatives getAlternatives() { return cAlternatives; } | 368 | public Alternatives getAlternatives() { return cAlternatives; } |
322 | 369 | ||
323 | //AndGate | 370 | //AndGateDefinition |
324 | public RuleCall getAndGateParserRuleCall_0() { return cAndGateParserRuleCall_0; } | 371 | public RuleCall getAndGateDefinitionParserRuleCall_0() { return cAndGateDefinitionParserRuleCall_0; } |
325 | 372 | ||
326 | //OrGate | 373 | //OrGateDefinition |
327 | public RuleCall getOrGateParserRuleCall_1() { return cOrGateParserRuleCall_1; } | 374 | public RuleCall getOrGateDefinitionParserRuleCall_1() { return cOrGateDefinitionParserRuleCall_1; } |
375 | |||
376 | //KOfMGateDefinition | ||
377 | public RuleCall getKOfMGateDefinitionParserRuleCall_2() { return cKOfMGateDefinitionParserRuleCall_2; } | ||
328 | } | 378 | } |
329 | public class AndGateElements extends AbstractParserRuleElementFinder { | 379 | public class AndGateDefinitionElements extends AbstractParserRuleElementFinder { |
330 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.AndGate"); | 380 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.AndGateDefinition"); |
331 | private final Group cGroup = (Group)rule.eContents().get(1); | 381 | private final Group cGroup = (Group)rule.eContents().get(1); |
332 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | 382 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); |
333 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | 383 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); |
334 | private final Keyword cAndKeyword_1 = (Keyword)cGroup.eContents().get(1); | 384 | private final Keyword cAndKeyword_1 = (Keyword)cGroup.eContents().get(1); |
335 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | 385 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); |
336 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | 386 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); |
337 | private final RuleCall cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | 387 | private final RuleCall cInputEventsEventDeclarationValidIdParserRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); |
338 | 388 | ||
339 | //AndGate: | 389 | //AndGateDefinition cft::AndGateDefinition: |
340 | // name=ID "and" inputEvents+=[EventDeclaration]*; | 390 | // name=ValidId "and" inputEvents+=[cft::EventDeclaration|ValidId]*; |
341 | @Override public ParserRule getRule() { return rule; } | 391 | @Override public ParserRule getRule() { return rule; } |
342 | 392 | ||
343 | //name=ID "and" inputEvents+=[EventDeclaration]* | 393 | //name=ValidId "and" inputEvents+=[cft::EventDeclaration|ValidId]* |
344 | public Group getGroup() { return cGroup; } | 394 | public Group getGroup() { return cGroup; } |
345 | 395 | ||
346 | //name=ID | 396 | //name=ValidId |
347 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | 397 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } |
348 | 398 | ||
349 | //ID | 399 | //ValidId |
350 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | 400 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } |
351 | 401 | ||
352 | //"and" | 402 | //"and" |
353 | public Keyword getAndKeyword_1() { return cAndKeyword_1; } | 403 | public Keyword getAndKeyword_1() { return cAndKeyword_1; } |
354 | 404 | ||
355 | //inputEvents+=[EventDeclaration]* | 405 | //inputEvents+=[cft::EventDeclaration|ValidId]* |
356 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | 406 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } |
357 | 407 | ||
358 | //[EventDeclaration] | 408 | //[cft::EventDeclaration|ValidId] |
359 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | 409 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } |
360 | 410 | ||
361 | //ID | 411 | //ValidId |
362 | public RuleCall getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1() { return cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1; } | 412 | public RuleCall getInputEventsEventDeclarationValidIdParserRuleCall_2_0_1() { return cInputEventsEventDeclarationValidIdParserRuleCall_2_0_1; } |
363 | } | 413 | } |
364 | public class OrGateElements extends AbstractParserRuleElementFinder { | 414 | public class OrGateDefinitionElements extends AbstractParserRuleElementFinder { |
365 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OrGate"); | 415 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OrGateDefinition"); |
366 | private final Group cGroup = (Group)rule.eContents().get(1); | 416 | private final Group cGroup = (Group)rule.eContents().get(1); |
367 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | 417 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); |
368 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | 418 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); |
369 | private final Keyword cOrKeyword_1 = (Keyword)cGroup.eContents().get(1); | 419 | private final Keyword cOrKeyword_1 = (Keyword)cGroup.eContents().get(1); |
370 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | 420 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); |
371 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | 421 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); |
372 | private final RuleCall cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | 422 | private final RuleCall cInputEventsEventDeclarationValidIdParserRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); |
373 | 423 | ||
374 | //OrGate: | 424 | //OrGateDefinition cft::OrGateDefinition: |
375 | // name=ID "or" inputEvents+=[EventDeclaration]*; | 425 | // name=ValidId "or" inputEvents+=[cft::EventDeclaration|ValidId]*; |
376 | @Override public ParserRule getRule() { return rule; } | 426 | @Override public ParserRule getRule() { return rule; } |
377 | 427 | ||
378 | //name=ID "or" inputEvents+=[EventDeclaration]* | 428 | //name=ValidId "or" inputEvents+=[cft::EventDeclaration|ValidId]* |
379 | public Group getGroup() { return cGroup; } | 429 | public Group getGroup() { return cGroup; } |
380 | 430 | ||
381 | //name=ID | 431 | //name=ValidId |
382 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | 432 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } |
383 | 433 | ||
384 | //ID | 434 | //ValidId |
385 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | 435 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } |
386 | 436 | ||
387 | //"or" | 437 | //"or" |
388 | public Keyword getOrKeyword_1() { return cOrKeyword_1; } | 438 | public Keyword getOrKeyword_1() { return cOrKeyword_1; } |
389 | 439 | ||
390 | //inputEvents+=[EventDeclaration]* | 440 | //inputEvents+=[cft::EventDeclaration|ValidId]* |
391 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | 441 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } |
392 | 442 | ||
393 | //[EventDeclaration] | 443 | //[cft::EventDeclaration|ValidId] |
394 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | 444 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } |
395 | 445 | ||
396 | //ID | 446 | //ValidId |
397 | public RuleCall getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1() { return cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1; } | 447 | public RuleCall getInputEventsEventDeclarationValidIdParserRuleCall_2_0_1() { return cInputEventsEventDeclarationValidIdParserRuleCall_2_0_1; } |
448 | } | ||
449 | public class KOfMGateDefinitionElements extends AbstractParserRuleElementFinder { | ||
450 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.KOfMGateDefinition"); | ||
451 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
452 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
453 | private final RuleCall cNameValidIdParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
454 | private final Assignment cKAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
455 | private final RuleCall cKINTTerminalRuleCall_1_0 = (RuleCall)cKAssignment_1.eContents().get(0); | ||
456 | private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2); | ||
457 | private final Group cGroup_2_0 = (Group)cAlternatives_2.eContents().get(0); | ||
458 | private final Keyword cOfKeyword_2_0_0 = (Keyword)cGroup_2_0.eContents().get(0); | ||
459 | private final Assignment cMAssignment_2_0_1 = (Assignment)cGroup_2_0.eContents().get(1); | ||
460 | private final RuleCall cMINTTerminalRuleCall_2_0_1_0 = (RuleCall)cMAssignment_2_0_1.eContents().get(0); | ||
461 | private final Assignment cMAssignment_2_1 = (Assignment)cAlternatives_2.eContents().get(1); | ||
462 | private final RuleCall cMOF_INTTerminalRuleCall_2_1_0 = (RuleCall)cMAssignment_2_1.eContents().get(0); | ||
463 | private final Assignment cInputEventsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
464 | private final CrossReference cInputEventsEventDeclarationCrossReference_3_0 = (CrossReference)cInputEventsAssignment_3.eContents().get(0); | ||
465 | private final RuleCall cInputEventsEventDeclarationValidIdParserRuleCall_3_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_3_0.eContents().get(1); | ||
466 | |||
467 | //KOfMGateDefinition cft::KOfMGateDefinition: | ||
468 | // name=ValidId k=INT ("of" m=INT | m=OF_INT) inputEvents+=[cft::EventDeclaration|ValidId]*; | ||
469 | @Override public ParserRule getRule() { return rule; } | ||
470 | |||
471 | //name=ValidId k=INT ("of" m=INT | m=OF_INT) inputEvents+=[cft::EventDeclaration|ValidId]* | ||
472 | public Group getGroup() { return cGroup; } | ||
473 | |||
474 | //name=ValidId | ||
475 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
476 | |||
477 | //ValidId | ||
478 | public RuleCall getNameValidIdParserRuleCall_0_0() { return cNameValidIdParserRuleCall_0_0; } | ||
479 | |||
480 | //k=INT | ||
481 | public Assignment getKAssignment_1() { return cKAssignment_1; } | ||
482 | |||
483 | //INT | ||
484 | public RuleCall getKINTTerminalRuleCall_1_0() { return cKINTTerminalRuleCall_1_0; } | ||
485 | |||
486 | //"of" m=INT | m=OF_INT | ||
487 | public Alternatives getAlternatives_2() { return cAlternatives_2; } | ||
488 | |||
489 | //"of" m=INT | ||
490 | public Group getGroup_2_0() { return cGroup_2_0; } | ||
491 | |||
492 | //"of" | ||
493 | public Keyword getOfKeyword_2_0_0() { return cOfKeyword_2_0_0; } | ||
494 | |||
495 | //m=INT | ||
496 | public Assignment getMAssignment_2_0_1() { return cMAssignment_2_0_1; } | ||
497 | |||
498 | //INT | ||
499 | public RuleCall getMINTTerminalRuleCall_2_0_1_0() { return cMINTTerminalRuleCall_2_0_1_0; } | ||
500 | |||
501 | //m=OF_INT | ||
502 | public Assignment getMAssignment_2_1() { return cMAssignment_2_1; } | ||
503 | |||
504 | //OF_INT | ||
505 | public RuleCall getMOF_INTTerminalRuleCall_2_1_0() { return cMOF_INTTerminalRuleCall_2_1_0; } | ||
506 | |||
507 | //inputEvents+=[cft::EventDeclaration|ValidId]* | ||
508 | public Assignment getInputEventsAssignment_3() { return cInputEventsAssignment_3; } | ||
509 | |||
510 | //[cft::EventDeclaration|ValidId] | ||
511 | public CrossReference getInputEventsEventDeclarationCrossReference_3_0() { return cInputEventsEventDeclarationCrossReference_3_0; } | ||
512 | |||
513 | //ValidId | ||
514 | public RuleCall getInputEventsEventDeclarationValidIdParserRuleCall_3_0_1() { return cInputEventsEventDeclarationValidIdParserRuleCall_3_0_1; } | ||
398 | } | 515 | } |
399 | public class TransformationDefinitionElements extends AbstractParserRuleElementFinder { | 516 | public class TransformationDefinitionElements extends AbstractParserRuleElementFinder { |
400 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | 517 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); |
401 | private final Group cGroup = (Group)rule.eContents().get(1); | 518 | private final Group cGroup = (Group)rule.eContents().get(1); |
402 | private final Keyword cTransformationKeyword_0 = (Keyword)cGroup.eContents().get(0); | 519 | private final Keyword cTransformationKeyword_0 = (Keyword)cGroup.eContents().get(0); |
403 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | 520 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); |
404 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | 521 | private final RuleCall cNameValidIdParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); |
405 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); | 522 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); |
406 | private final Assignment cMappingDefinitionsAssignment_3 = (Assignment)cGroup.eContents().get(3); | 523 | private final Assignment cMappingDefinitionsAssignment_3 = (Assignment)cGroup.eContents().get(3); |
407 | private final RuleCall cMappingDefinitionsMappingDefinitionParserRuleCall_3_0 = (RuleCall)cMappingDefinitionsAssignment_3.eContents().get(0); | 524 | private final RuleCall cMappingDefinitionsMappingDefinitionParserRuleCall_3_0 = (RuleCall)cMappingDefinitionsAssignment_3.eContents().get(0); |
408 | private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); | 525 | private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); |
409 | 526 | ||
410 | //TransformationDefinition: | 527 | //TransformationDefinition: |
411 | // "transformation" name=ID "{" | 528 | // "transformation" name=ValidId "{" |
412 | // mappingDefinitions+=MappingDefinition* | 529 | // mappingDefinitions+=MappingDefinition* |
413 | // "}"; | 530 | // "}"; |
414 | @Override public ParserRule getRule() { return rule; } | 531 | @Override public ParserRule getRule() { return rule; } |
415 | 532 | ||
416 | //"transformation" name=ID "{" mappingDefinitions+=MappingDefinition* "}" | 533 | //"transformation" name=ValidId "{" mappingDefinitions+=MappingDefinition* "}" |
417 | public Group getGroup() { return cGroup; } | 534 | public Group getGroup() { return cGroup; } |
418 | 535 | ||
419 | //"transformation" | 536 | //"transformation" |
420 | public Keyword getTransformationKeyword_0() { return cTransformationKeyword_0; } | 537 | public Keyword getTransformationKeyword_0() { return cTransformationKeyword_0; } |
421 | 538 | ||
422 | //name=ID | 539 | //name=ValidId |
423 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | 540 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } |
424 | 541 | ||
425 | //ID | 542 | //ValidId |
426 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | 543 | public RuleCall getNameValidIdParserRuleCall_1_0() { return cNameValidIdParserRuleCall_1_0; } |
427 | 544 | ||
428 | //"{" | 545 | //"{" |
429 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | 546 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } |
@@ -560,17 +677,17 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
560 | public class MappingParameterElements extends AbstractParserRuleElementFinder { | 677 | public class MappingParameterElements extends AbstractParserRuleElementFinder { |
561 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | 678 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); |
562 | private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1); | 679 | private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1); |
563 | private final RuleCall cNameIDTerminalRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0); | 680 | private final RuleCall cNameValidIdParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0); |
564 | 681 | ||
565 | //MappingParameter: | 682 | //MappingParameter: |
566 | // name=ID; | 683 | // name=ValidId; |
567 | @Override public ParserRule getRule() { return rule; } | 684 | @Override public ParserRule getRule() { return rule; } |
568 | 685 | ||
569 | //name=ID | 686 | //name=ValidId |
570 | public Assignment getNameAssignment() { return cNameAssignment; } | 687 | public Assignment getNameAssignment() { return cNameAssignment; } |
571 | 688 | ||
572 | //ID | 689 | //ValidId |
573 | public RuleCall getNameIDTerminalRuleCall_0() { return cNameIDTerminalRuleCall_0; } | 690 | public RuleCall getNameValidIdParserRuleCall_0() { return cNameValidIdParserRuleCall_0; } |
574 | } | 691 | } |
575 | public class LookupDefinitionElements extends AbstractParserRuleElementFinder { | 692 | public class LookupDefinitionElements extends AbstractParserRuleElementFinder { |
576 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | 693 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); |
@@ -578,69 +695,69 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
578 | private final Keyword cLookupKeyword_0 = (Keyword)cGroup.eContents().get(0); | 695 | private final Keyword cLookupKeyword_0 = (Keyword)cGroup.eContents().get(0); |
579 | private final Assignment cMappingAssignment_1 = (Assignment)cGroup.eContents().get(1); | 696 | private final Assignment cMappingAssignment_1 = (Assignment)cGroup.eContents().get(1); |
580 | private final CrossReference cMappingMappingDefinitionCrossReference_1_0 = (CrossReference)cMappingAssignment_1.eContents().get(0); | 697 | private final CrossReference cMappingMappingDefinitionCrossReference_1_0 = (CrossReference)cMappingAssignment_1.eContents().get(0); |
581 | private final RuleCall cMappingMappingDefinitionIDTerminalRuleCall_1_0_1 = (RuleCall)cMappingMappingDefinitionCrossReference_1_0.eContents().get(1); | 698 | private final RuleCall cMappingMappingDefinitionQualifiedNameParserRuleCall_1_0_1 = (RuleCall)cMappingMappingDefinitionCrossReference_1_0.eContents().get(1); |
582 | private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); | 699 | private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); |
583 | private final Assignment cArgumentsAssignment_3 = (Assignment)cGroup.eContents().get(3); | 700 | private final Assignment cArgumentsAssignment_3 = (Assignment)cGroup.eContents().get(3); |
584 | private final CrossReference cArgumentsMappingParameterCrossReference_3_0 = (CrossReference)cArgumentsAssignment_3.eContents().get(0); | 701 | private final CrossReference cArgumentsMappingParameterCrossReference_3_0 = (CrossReference)cArgumentsAssignment_3.eContents().get(0); |
585 | private final RuleCall cArgumentsMappingParameterIDTerminalRuleCall_3_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_3_0.eContents().get(1); | 702 | private final RuleCall cArgumentsMappingParameterValidIdParserRuleCall_3_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_3_0.eContents().get(1); |
586 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); | 703 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); |
587 | private final Keyword cCommaKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0); | 704 | private final Keyword cCommaKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0); |
588 | private final Assignment cArgumentsAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1); | 705 | private final Assignment cArgumentsAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1); |
589 | private final CrossReference cArgumentsMappingParameterCrossReference_4_1_0 = (CrossReference)cArgumentsAssignment_4_1.eContents().get(0); | 706 | private final CrossReference cArgumentsMappingParameterCrossReference_4_1_0 = (CrossReference)cArgumentsAssignment_4_1.eContents().get(0); |
590 | private final RuleCall cArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_4_1_0.eContents().get(1); | 707 | private final RuleCall cArgumentsMappingParameterValidIdParserRuleCall_4_1_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_4_1_0.eContents().get(1); |
591 | private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5); | 708 | private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5); |
592 | private final Keyword cAsKeyword_6 = (Keyword)cGroup.eContents().get(6); | 709 | private final Keyword cAsKeyword_6 = (Keyword)cGroup.eContents().get(6); |
593 | private final Assignment cNameAssignment_7 = (Assignment)cGroup.eContents().get(7); | 710 | private final Assignment cNameAssignment_7 = (Assignment)cGroup.eContents().get(7); |
594 | private final RuleCall cNameIDTerminalRuleCall_7_0 = (RuleCall)cNameAssignment_7.eContents().get(0); | 711 | private final RuleCall cNameValidIdParserRuleCall_7_0 = (RuleCall)cNameAssignment_7.eContents().get(0); |
595 | 712 | ||
596 | //LookupDefinition: | 713 | //LookupDefinition: |
597 | // "lookup" mapping=[MappingDefinition] | 714 | // "lookup" mapping=[MappingDefinition|QualifiedName] |
598 | // "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" | 715 | // "(" arguments+=[MappingParameter|ValidId] ("," arguments+=[MappingParameter|ValidId])* ")" |
599 | // "as" name=ID; | 716 | // "as" name=ValidId; |
600 | @Override public ParserRule getRule() { return rule; } | 717 | @Override public ParserRule getRule() { return rule; } |
601 | 718 | ||
602 | //"lookup" mapping=[MappingDefinition] "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" "as" | 719 | //"lookup" mapping=[MappingDefinition|QualifiedName] "(" arguments+=[MappingParameter|ValidId] ("," |
603 | //name=ID | 720 | //arguments+=[MappingParameter|ValidId])* ")" "as" name=ValidId |
604 | public Group getGroup() { return cGroup; } | 721 | public Group getGroup() { return cGroup; } |
605 | 722 | ||
606 | //"lookup" | 723 | //"lookup" |
607 | public Keyword getLookupKeyword_0() { return cLookupKeyword_0; } | 724 | public Keyword getLookupKeyword_0() { return cLookupKeyword_0; } |
608 | 725 | ||
609 | //mapping=[MappingDefinition] | 726 | //mapping=[MappingDefinition|QualifiedName] |
610 | public Assignment getMappingAssignment_1() { return cMappingAssignment_1; } | 727 | public Assignment getMappingAssignment_1() { return cMappingAssignment_1; } |
611 | 728 | ||
612 | //[MappingDefinition] | 729 | //[MappingDefinition|QualifiedName] |
613 | public CrossReference getMappingMappingDefinitionCrossReference_1_0() { return cMappingMappingDefinitionCrossReference_1_0; } | 730 | public CrossReference getMappingMappingDefinitionCrossReference_1_0() { return cMappingMappingDefinitionCrossReference_1_0; } |
614 | 731 | ||
615 | //ID | 732 | //QualifiedName |
616 | public RuleCall getMappingMappingDefinitionIDTerminalRuleCall_1_0_1() { return cMappingMappingDefinitionIDTerminalRuleCall_1_0_1; } | 733 | public RuleCall getMappingMappingDefinitionQualifiedNameParserRuleCall_1_0_1() { return cMappingMappingDefinitionQualifiedNameParserRuleCall_1_0_1; } |
617 | 734 | ||
618 | //"(" | 735 | //"(" |
619 | public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } | 736 | public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } |
620 | 737 | ||
621 | //arguments+=[MappingParameter] | 738 | //arguments+=[MappingParameter|ValidId] |
622 | public Assignment getArgumentsAssignment_3() { return cArgumentsAssignment_3; } | 739 | public Assignment getArgumentsAssignment_3() { return cArgumentsAssignment_3; } |
623 | 740 | ||
624 | //[MappingParameter] | 741 | //[MappingParameter|ValidId] |
625 | public CrossReference getArgumentsMappingParameterCrossReference_3_0() { return cArgumentsMappingParameterCrossReference_3_0; } | 742 | public CrossReference getArgumentsMappingParameterCrossReference_3_0() { return cArgumentsMappingParameterCrossReference_3_0; } |
626 | 743 | ||
627 | //ID | 744 | //ValidId |
628 | public RuleCall getArgumentsMappingParameterIDTerminalRuleCall_3_0_1() { return cArgumentsMappingParameterIDTerminalRuleCall_3_0_1; } | 745 | public RuleCall getArgumentsMappingParameterValidIdParserRuleCall_3_0_1() { return cArgumentsMappingParameterValidIdParserRuleCall_3_0_1; } |
629 | 746 | ||
630 | //("," arguments+=[MappingParameter])* | 747 | //("," arguments+=[MappingParameter|ValidId])* |
631 | public Group getGroup_4() { return cGroup_4; } | 748 | public Group getGroup_4() { return cGroup_4; } |
632 | 749 | ||
633 | //"," | 750 | //"," |
634 | public Keyword getCommaKeyword_4_0() { return cCommaKeyword_4_0; } | 751 | public Keyword getCommaKeyword_4_0() { return cCommaKeyword_4_0; } |
635 | 752 | ||
636 | //arguments+=[MappingParameter] | 753 | //arguments+=[MappingParameter|ValidId] |
637 | public Assignment getArgumentsAssignment_4_1() { return cArgumentsAssignment_4_1; } | 754 | public Assignment getArgumentsAssignment_4_1() { return cArgumentsAssignment_4_1; } |
638 | 755 | ||
639 | //[MappingParameter] | 756 | //[MappingParameter|ValidId] |
640 | public CrossReference getArgumentsMappingParameterCrossReference_4_1_0() { return cArgumentsMappingParameterCrossReference_4_1_0; } | 757 | public CrossReference getArgumentsMappingParameterCrossReference_4_1_0() { return cArgumentsMappingParameterCrossReference_4_1_0; } |
641 | 758 | ||
642 | //ID | 759 | //ValidId |
643 | public RuleCall getArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1() { return cArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1; } | 760 | public RuleCall getArgumentsMappingParameterValidIdParserRuleCall_4_1_0_1() { return cArgumentsMappingParameterValidIdParserRuleCall_4_1_0_1; } |
644 | 761 | ||
645 | //")" | 762 | //")" |
646 | public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; } | 763 | public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; } |
@@ -648,11 +765,11 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
648 | //"as" | 765 | //"as" |
649 | public Keyword getAsKeyword_6() { return cAsKeyword_6; } | 766 | public Keyword getAsKeyword_6() { return cAsKeyword_6; } |
650 | 767 | ||
651 | //name=ID | 768 | //name=ValidId |
652 | public Assignment getNameAssignment_7() { return cNameAssignment_7; } | 769 | public Assignment getNameAssignment_7() { return cNameAssignment_7; } |
653 | 770 | ||
654 | //ID | 771 | //ValidId |
655 | public RuleCall getNameIDTerminalRuleCall_7_0() { return cNameIDTerminalRuleCall_7_0; } | 772 | public RuleCall getNameValidIdParserRuleCall_7_0() { return cNameValidIdParserRuleCall_7_0; } |
656 | } | 773 | } |
657 | public class VariableElements extends AbstractParserRuleElementFinder { | 774 | public class VariableElements extends AbstractParserRuleElementFinder { |
658 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Variable"); | 775 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Variable"); |
@@ -721,39 +838,39 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
721 | private final Group cGroup = (Group)rule.eContents().get(1); | 838 | private final Group cGroup = (Group)rule.eContents().get(1); |
722 | private final Assignment cComponentAssignment_0 = (Assignment)cGroup.eContents().get(0); | 839 | private final Assignment cComponentAssignment_0 = (Assignment)cGroup.eContents().get(0); |
723 | private final CrossReference cComponentVariableCrossReference_0_0 = (CrossReference)cComponentAssignment_0.eContents().get(0); | 840 | private final CrossReference cComponentVariableCrossReference_0_0 = (CrossReference)cComponentAssignment_0.eContents().get(0); |
724 | private final RuleCall cComponentVariableIDTerminalRuleCall_0_0_1 = (RuleCall)cComponentVariableCrossReference_0_0.eContents().get(1); | 841 | private final RuleCall cComponentVariableValidIdParserRuleCall_0_0_1 = (RuleCall)cComponentVariableCrossReference_0_0.eContents().get(1); |
725 | private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1); | 842 | private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1); |
726 | private final Assignment cEventAssignment_2 = (Assignment)cGroup.eContents().get(2); | 843 | private final Assignment cEventAssignment_2 = (Assignment)cGroup.eContents().get(2); |
727 | private final CrossReference cEventEventDeclarationCrossReference_2_0 = (CrossReference)cEventAssignment_2.eContents().get(0); | 844 | private final CrossReference cEventEventDeclarationCrossReference_2_0 = (CrossReference)cEventAssignment_2.eContents().get(0); |
728 | private final RuleCall cEventEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cEventEventDeclarationCrossReference_2_0.eContents().get(1); | 845 | private final RuleCall cEventEventDeclarationValidIdParserRuleCall_2_0_1 = (RuleCall)cEventEventDeclarationCrossReference_2_0.eContents().get(1); |
729 | 846 | ||
730 | //EventReference: | 847 | //EventReference: |
731 | // component=[Variable] "." event=[EventDeclaration]; | 848 | // component=[Variable|ValidId] "." event=[cft::EventDeclaration|ValidId]; |
732 | @Override public ParserRule getRule() { return rule; } | 849 | @Override public ParserRule getRule() { return rule; } |
733 | 850 | ||
734 | //component=[Variable] "." event=[EventDeclaration] | 851 | //component=[Variable|ValidId] "." event=[cft::EventDeclaration|ValidId] |
735 | public Group getGroup() { return cGroup; } | 852 | public Group getGroup() { return cGroup; } |
736 | 853 | ||
737 | //component=[Variable] | 854 | //component=[Variable|ValidId] |
738 | public Assignment getComponentAssignment_0() { return cComponentAssignment_0; } | 855 | public Assignment getComponentAssignment_0() { return cComponentAssignment_0; } |
739 | 856 | ||
740 | //[Variable] | 857 | //[Variable|ValidId] |
741 | public CrossReference getComponentVariableCrossReference_0_0() { return cComponentVariableCrossReference_0_0; } | 858 | public CrossReference getComponentVariableCrossReference_0_0() { return cComponentVariableCrossReference_0_0; } |
742 | 859 | ||
743 | //ID | 860 | //ValidId |
744 | public RuleCall getComponentVariableIDTerminalRuleCall_0_0_1() { return cComponentVariableIDTerminalRuleCall_0_0_1; } | 861 | public RuleCall getComponentVariableValidIdParserRuleCall_0_0_1() { return cComponentVariableValidIdParserRuleCall_0_0_1; } |
745 | 862 | ||
746 | //"." | 863 | //"." |
747 | public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; } | 864 | public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; } |
748 | 865 | ||
749 | //event=[EventDeclaration] | 866 | //event=[cft::EventDeclaration|ValidId] |
750 | public Assignment getEventAssignment_2() { return cEventAssignment_2; } | 867 | public Assignment getEventAssignment_2() { return cEventAssignment_2; } |
751 | 868 | ||
752 | //[EventDeclaration] | 869 | //[cft::EventDeclaration|ValidId] |
753 | public CrossReference getEventEventDeclarationCrossReference_2_0() { return cEventEventDeclarationCrossReference_2_0; } | 870 | public CrossReference getEventEventDeclarationCrossReference_2_0() { return cEventEventDeclarationCrossReference_2_0; } |
754 | 871 | ||
755 | //ID | 872 | //ValidId |
756 | public RuleCall getEventEventDeclarationIDTerminalRuleCall_2_0_1() { return cEventEventDeclarationIDTerminalRuleCall_2_0_1; } | 873 | public RuleCall getEventEventDeclarationValidIdParserRuleCall_2_0_1() { return cEventEventDeclarationValidIdParserRuleCall_2_0_1; } |
757 | } | 874 | } |
758 | public class ComponentInstanceElements extends AbstractParserRuleElementFinder { | 875 | public class ComponentInstanceElements extends AbstractParserRuleElementFinder { |
759 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | 876 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); |
@@ -766,19 +883,19 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
766 | private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); | 883 | private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); |
767 | 884 | ||
768 | //ComponentInstance: | 885 | //ComponentInstance: |
769 | // "=>" componentType=[ComponentDefinition|QualifiedName] name=ID?; | 886 | // "=>" componentType=[cft::ComponentDefinition|QualifiedName] name=ID?; |
770 | @Override public ParserRule getRule() { return rule; } | 887 | @Override public ParserRule getRule() { return rule; } |
771 | 888 | ||
772 | //"=>" componentType=[ComponentDefinition|QualifiedName] name=ID? | 889 | //"=>" componentType=[cft::ComponentDefinition|QualifiedName] name=ID? |
773 | public Group getGroup() { return cGroup; } | 890 | public Group getGroup() { return cGroup; } |
774 | 891 | ||
775 | //"=>" | 892 | //"=>" |
776 | public Keyword getEqualsSignGreaterThanSignKeyword_0() { return cEqualsSignGreaterThanSignKeyword_0; } | 893 | public Keyword getEqualsSignGreaterThanSignKeyword_0() { return cEqualsSignGreaterThanSignKeyword_0; } |
777 | 894 | ||
778 | //componentType=[ComponentDefinition|QualifiedName] | 895 | //componentType=[cft::ComponentDefinition|QualifiedName] |
779 | public Assignment getComponentTypeAssignment_1() { return cComponentTypeAssignment_1; } | 896 | public Assignment getComponentTypeAssignment_1() { return cComponentTypeAssignment_1; } |
780 | 897 | ||
781 | //[ComponentDefinition|QualifiedName] | 898 | //[cft::ComponentDefinition|QualifiedName] |
782 | public CrossReference getComponentTypeComponentDefinitionCrossReference_1_0() { return cComponentTypeComponentDefinitionCrossReference_1_0; } | 899 | public CrossReference getComponentTypeComponentDefinitionCrossReference_1_0() { return cComponentTypeComponentDefinitionCrossReference_1_0; } |
783 | 900 | ||
784 | //QualifiedName | 901 | //QualifiedName |
@@ -793,29 +910,29 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
793 | public class QualifiedNameElements extends AbstractParserRuleElementFinder { | 910 | public class QualifiedNameElements extends AbstractParserRuleElementFinder { |
794 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | 911 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); |
795 | private final Group cGroup = (Group)rule.eContents().get(1); | 912 | private final Group cGroup = (Group)rule.eContents().get(1); |
796 | private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0); | 913 | private final RuleCall cValidIdParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0); |
797 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); | 914 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); |
798 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); | 915 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); |
799 | private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); | 916 | private final RuleCall cValidIdParserRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); |
800 | 917 | ||
801 | //QualifiedName: | 918 | //QualifiedName: |
802 | // ID ("." ID)*; | 919 | // ValidId ("." ValidId)*; |
803 | @Override public ParserRule getRule() { return rule; } | 920 | @Override public ParserRule getRule() { return rule; } |
804 | 921 | ||
805 | //ID ("." ID)* | 922 | //ValidId ("." ValidId)* |
806 | public Group getGroup() { return cGroup; } | 923 | public Group getGroup() { return cGroup; } |
807 | 924 | ||
808 | //ID | 925 | //ValidId |
809 | public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; } | 926 | public RuleCall getValidIdParserRuleCall_0() { return cValidIdParserRuleCall_0; } |
810 | 927 | ||
811 | //("." ID)* | 928 | //("." ValidId)* |
812 | public Group getGroup_1() { return cGroup_1; } | 929 | public Group getGroup_1() { return cGroup_1; } |
813 | 930 | ||
814 | //"." | 931 | //"." |
815 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } | 932 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } |
816 | 933 | ||
817 | //ID | 934 | //ValidId |
818 | public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; } | 935 | public RuleCall getValidIdParserRuleCall_1_1() { return cValidIdParserRuleCall_1_1; } |
819 | } | 936 | } |
820 | public class QualifiedNameWithWildcardElements extends AbstractParserRuleElementFinder { | 937 | public class QualifiedNameWithWildcardElements extends AbstractParserRuleElementFinder { |
821 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | 938 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); |
@@ -844,18 +961,59 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
844 | //"*" | 961 | //"*" |
845 | public Keyword getAsteriskKeyword_1_1() { return cAsteriskKeyword_1_1; } | 962 | public Keyword getAsteriskKeyword_1_1() { return cAsteriskKeyword_1_1; } |
846 | } | 963 | } |
964 | public class ValidIdElements extends AbstractParserRuleElementFinder { | ||
965 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
966 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
967 | private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
968 | private final RuleCall cOF_INTTerminalRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
969 | |||
970 | //ValidId: | ||
971 | // ID | OF_INT; | ||
972 | @Override public ParserRule getRule() { return rule; } | ||
973 | |||
974 | //ID | OF_INT | ||
975 | public Alternatives getAlternatives() { return cAlternatives; } | ||
976 | |||
977 | //ID | ||
978 | public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; } | ||
979 | |||
980 | //OF_INT | ||
981 | public RuleCall getOF_INTTerminalRuleCall_1() { return cOF_INTTerminalRuleCall_1; } | ||
982 | } | ||
983 | public class DoubleElements extends AbstractParserRuleElementFinder { | ||
984 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
985 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
986 | private final RuleCall cINTTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
987 | private final RuleCall cT_DOUBLETerminalRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
988 | |||
989 | //Double ecore::EDouble: | ||
990 | // INT | T_DOUBLE; | ||
991 | @Override public ParserRule getRule() { return rule; } | ||
992 | |||
993 | //INT | T_DOUBLE | ||
994 | public Alternatives getAlternatives() { return cAlternatives; } | ||
995 | |||
996 | //INT | ||
997 | public RuleCall getINTTerminalRuleCall_0() { return cINTTerminalRuleCall_0; } | ||
998 | |||
999 | //T_DOUBLE | ||
1000 | public RuleCall getT_DOUBLETerminalRuleCall_1() { return cT_DOUBLETerminalRuleCall_1; } | ||
1001 | } | ||
847 | 1002 | ||
848 | 1003 | ||
849 | private final CftModelElements pCftModel; | 1004 | private final CftModelElements pCftModel; |
850 | private final ImportDeclarationElements pImportDeclaration; | 1005 | private final ImportDeclarationElements pImportDeclaration; |
851 | private final ComponentDefinitionElements pComponentDefinition; | 1006 | private final ComponentDefinitionElements pComponentDefinition; |
852 | private final EventDeclarationElements pEventDeclaration; | ||
853 | private final InputEventElements pInputEvent; | 1007 | private final InputEventElements pInputEvent; |
854 | private final EventDefinitionElements pEventDefinition; | 1008 | private final EventDefinitionElements pEventDefinition; |
855 | private final BasicEventDefinitionElements pBasicEventDefinition; | 1009 | private final BasicEventDefinitionElements pBasicEventDefinition; |
1010 | private final DistributionElements pDistribution; | ||
1011 | private final ConstantDistributionElements pConstantDistribution; | ||
1012 | private final ExponentialDistributionElements pExponentialDistribution; | ||
856 | private final GateDefinitionElements pGateDefinition; | 1013 | private final GateDefinitionElements pGateDefinition; |
857 | private final AndGateElements pAndGate; | 1014 | private final AndGateDefinitionElements pAndGateDefinition; |
858 | private final OrGateElements pOrGate; | 1015 | private final OrGateDefinitionElements pOrGateDefinition; |
1016 | private final KOfMGateDefinitionElements pKOfMGateDefinition; | ||
859 | private final TransformationDefinitionElements pTransformationDefinition; | 1017 | private final TransformationDefinitionElements pTransformationDefinition; |
860 | private final MappingDefinitionElements pMappingDefinition; | 1018 | private final MappingDefinitionElements pMappingDefinition; |
861 | private final MappingParameterElements pMappingParameter; | 1019 | private final MappingParameterElements pMappingParameter; |
@@ -866,7 +1024,10 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
866 | private final ComponentInstanceElements pComponentInstance; | 1024 | private final ComponentInstanceElements pComponentInstance; |
867 | private final QualifiedNameElements pQualifiedName; | 1025 | private final QualifiedNameElements pQualifiedName; |
868 | private final QualifiedNameWithWildcardElements pQualifiedNameWithWildcard; | 1026 | private final QualifiedNameWithWildcardElements pQualifiedNameWithWildcard; |
869 | private final TerminalRule tDOULBE; | 1027 | private final ValidIdElements pValidId; |
1028 | private final DoubleElements pDouble; | ||
1029 | private final TerminalRule tOF_INT; | ||
1030 | private final TerminalRule tT_DOUBLE; | ||
870 | 1031 | ||
871 | private final Grammar grammar; | 1032 | private final Grammar grammar; |
872 | 1033 | ||
@@ -880,13 +1041,16 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
880 | this.pCftModel = new CftModelElements(); | 1041 | this.pCftModel = new CftModelElements(); |
881 | this.pImportDeclaration = new ImportDeclarationElements(); | 1042 | this.pImportDeclaration = new ImportDeclarationElements(); |
882 | this.pComponentDefinition = new ComponentDefinitionElements(); | 1043 | this.pComponentDefinition = new ComponentDefinitionElements(); |
883 | this.pEventDeclaration = new EventDeclarationElements(); | ||
884 | this.pInputEvent = new InputEventElements(); | 1044 | this.pInputEvent = new InputEventElements(); |
885 | this.pEventDefinition = new EventDefinitionElements(); | 1045 | this.pEventDefinition = new EventDefinitionElements(); |
886 | this.pBasicEventDefinition = new BasicEventDefinitionElements(); | 1046 | this.pBasicEventDefinition = new BasicEventDefinitionElements(); |
1047 | this.pDistribution = new DistributionElements(); | ||
1048 | this.pConstantDistribution = new ConstantDistributionElements(); | ||
1049 | this.pExponentialDistribution = new ExponentialDistributionElements(); | ||
887 | this.pGateDefinition = new GateDefinitionElements(); | 1050 | this.pGateDefinition = new GateDefinitionElements(); |
888 | this.pAndGate = new AndGateElements(); | 1051 | this.pAndGateDefinition = new AndGateDefinitionElements(); |
889 | this.pOrGate = new OrGateElements(); | 1052 | this.pOrGateDefinition = new OrGateDefinitionElements(); |
1053 | this.pKOfMGateDefinition = new KOfMGateDefinitionElements(); | ||
890 | this.pTransformationDefinition = new TransformationDefinitionElements(); | 1054 | this.pTransformationDefinition = new TransformationDefinitionElements(); |
891 | this.pMappingDefinition = new MappingDefinitionElements(); | 1055 | this.pMappingDefinition = new MappingDefinitionElements(); |
892 | this.pMappingParameter = new MappingParameterElements(); | 1056 | this.pMappingParameter = new MappingParameterElements(); |
@@ -897,7 +1061,10 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
897 | this.pComponentInstance = new ComponentInstanceElements(); | 1061 | this.pComponentInstance = new ComponentInstanceElements(); |
898 | this.pQualifiedName = new QualifiedNameElements(); | 1062 | this.pQualifiedName = new QualifiedNameElements(); |
899 | this.pQualifiedNameWithWildcard = new QualifiedNameWithWildcardElements(); | 1063 | this.pQualifiedNameWithWildcard = new QualifiedNameWithWildcardElements(); |
900 | this.tDOULBE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | 1064 | this.pValidId = new ValidIdElements(); |
1065 | this.pDouble = new DoubleElements(); | ||
1066 | this.tOF_INT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
1067 | this.tT_DOUBLE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.T_DOUBLE"); | ||
901 | } | 1068 | } |
902 | 1069 | ||
903 | protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { | 1070 | protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { |
@@ -949,9 +1116,9 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
949 | return getImportDeclarationAccess().getRule(); | 1116 | return getImportDeclarationAccess().getRule(); |
950 | } | 1117 | } |
951 | 1118 | ||
952 | //ComponentDefinition: | 1119 | //ComponentDefinition cft::ComponentDefinition: |
953 | // "cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | 1120 | // "cft" name=ValidId "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[cft::EventDeclaration|ValidId]* |
954 | // (eventDefinitions+=EventDefinition ";")* | 1121 | // ";")?) (eventDefinitions+=EventDefinition ";")* |
955 | // "}"; | 1122 | // "}"; |
956 | public ComponentDefinitionElements getComponentDefinitionAccess() { | 1123 | public ComponentDefinitionElements getComponentDefinitionAccess() { |
957 | return pComponentDefinition; | 1124 | return pComponentDefinition; |
@@ -961,18 +1128,8 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
961 | return getComponentDefinitionAccess().getRule(); | 1128 | return getComponentDefinitionAccess().getRule(); |
962 | } | 1129 | } |
963 | 1130 | ||
964 | //EventDeclaration: | 1131 | //InputEvent cft::IntputEvent: |
965 | // InputEvent | EventDefinition; | 1132 | // name=ValidId multiple?="[]"?; |
966 | public EventDeclarationElements getEventDeclarationAccess() { | ||
967 | return pEventDeclaration; | ||
968 | } | ||
969 | |||
970 | public ParserRule getEventDeclarationRule() { | ||
971 | return getEventDeclarationAccess().getRule(); | ||
972 | } | ||
973 | |||
974 | //InputEvent: | ||
975 | // name=ID multiple?="[]"?; | ||
976 | public InputEventElements getInputEventAccess() { | 1133 | public InputEventElements getInputEventAccess() { |
977 | return pInputEvent; | 1134 | return pInputEvent; |
978 | } | 1135 | } |
@@ -981,7 +1138,7 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
981 | return getInputEventAccess().getRule(); | 1138 | return getInputEventAccess().getRule(); |
982 | } | 1139 | } |
983 | 1140 | ||
984 | //EventDefinition: | 1141 | //EventDefinition cft::EventDefinition: |
985 | // BasicEventDefinition | GateDefinition; | 1142 | // BasicEventDefinition | GateDefinition; |
986 | public EventDefinitionElements getEventDefinitionAccess() { | 1143 | public EventDefinitionElements getEventDefinitionAccess() { |
987 | return pEventDefinition; | 1144 | return pEventDefinition; |
@@ -991,8 +1148,8 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
991 | return getEventDefinitionAccess().getRule(); | 1148 | return getEventDefinitionAccess().getRule(); |
992 | } | 1149 | } |
993 | 1150 | ||
994 | //BasicEventDefinition: | 1151 | //BasicEventDefinition cft::BasicEventDefinition: |
995 | // name=ID "lambda" "=" rate=DOULBE; | 1152 | // name=ValidId distribution=Distribution; |
996 | public BasicEventDefinitionElements getBasicEventDefinitionAccess() { | 1153 | public BasicEventDefinitionElements getBasicEventDefinitionAccess() { |
997 | return pBasicEventDefinition; | 1154 | return pBasicEventDefinition; |
998 | } | 1155 | } |
@@ -1001,8 +1158,38 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
1001 | return getBasicEventDefinitionAccess().getRule(); | 1158 | return getBasicEventDefinitionAccess().getRule(); |
1002 | } | 1159 | } |
1003 | 1160 | ||
1004 | //GateDefinition: | 1161 | //Distribution ft::Distribution: |
1005 | // AndGate | OrGate; | 1162 | // ConstantDistribution | ExponentialDistribution; |
1163 | public DistributionElements getDistributionAccess() { | ||
1164 | return pDistribution; | ||
1165 | } | ||
1166 | |||
1167 | public ParserRule getDistributionRule() { | ||
1168 | return getDistributionAccess().getRule(); | ||
1169 | } | ||
1170 | |||
1171 | //ConstantDistribution ft::ConstantDistribution: | ||
1172 | // "p" "=" p=Double; | ||
1173 | public ConstantDistributionElements getConstantDistributionAccess() { | ||
1174 | return pConstantDistribution; | ||
1175 | } | ||
1176 | |||
1177 | public ParserRule getConstantDistributionRule() { | ||
1178 | return getConstantDistributionAccess().getRule(); | ||
1179 | } | ||
1180 | |||
1181 | //ExponentialDistribution ft::ExponentialDistribution: | ||
1182 | // "lambda" "=" lambda=Double; | ||
1183 | public ExponentialDistributionElements getExponentialDistributionAccess() { | ||
1184 | return pExponentialDistribution; | ||
1185 | } | ||
1186 | |||
1187 | public ParserRule getExponentialDistributionRule() { | ||
1188 | return getExponentialDistributionAccess().getRule(); | ||
1189 | } | ||
1190 | |||
1191 | //GateDefinition cft::GateDefinition: | ||
1192 | // AndGateDefinition | OrGateDefinition | KOfMGateDefinition; | ||
1006 | public GateDefinitionElements getGateDefinitionAccess() { | 1193 | public GateDefinitionElements getGateDefinitionAccess() { |
1007 | return pGateDefinition; | 1194 | return pGateDefinition; |
1008 | } | 1195 | } |
@@ -1011,28 +1198,38 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
1011 | return getGateDefinitionAccess().getRule(); | 1198 | return getGateDefinitionAccess().getRule(); |
1012 | } | 1199 | } |
1013 | 1200 | ||
1014 | //AndGate: | 1201 | //AndGateDefinition cft::AndGateDefinition: |
1015 | // name=ID "and" inputEvents+=[EventDeclaration]*; | 1202 | // name=ValidId "and" inputEvents+=[cft::EventDeclaration|ValidId]*; |
1016 | public AndGateElements getAndGateAccess() { | 1203 | public AndGateDefinitionElements getAndGateDefinitionAccess() { |
1017 | return pAndGate; | 1204 | return pAndGateDefinition; |
1205 | } | ||
1206 | |||
1207 | public ParserRule getAndGateDefinitionRule() { | ||
1208 | return getAndGateDefinitionAccess().getRule(); | ||
1018 | } | 1209 | } |
1019 | 1210 | ||
1020 | public ParserRule getAndGateRule() { | 1211 | //OrGateDefinition cft::OrGateDefinition: |
1021 | return getAndGateAccess().getRule(); | 1212 | // name=ValidId "or" inputEvents+=[cft::EventDeclaration|ValidId]*; |
1213 | public OrGateDefinitionElements getOrGateDefinitionAccess() { | ||
1214 | return pOrGateDefinition; | ||
1022 | } | 1215 | } |
1023 | 1216 | ||
1024 | //OrGate: | 1217 | public ParserRule getOrGateDefinitionRule() { |
1025 | // name=ID "or" inputEvents+=[EventDeclaration]*; | 1218 | return getOrGateDefinitionAccess().getRule(); |
1026 | public OrGateElements getOrGateAccess() { | ||
1027 | return pOrGate; | ||
1028 | } | 1219 | } |
1029 | 1220 | ||
1030 | public ParserRule getOrGateRule() { | 1221 | //KOfMGateDefinition cft::KOfMGateDefinition: |
1031 | return getOrGateAccess().getRule(); | 1222 | // name=ValidId k=INT ("of" m=INT | m=OF_INT) inputEvents+=[cft::EventDeclaration|ValidId]*; |
1223 | public KOfMGateDefinitionElements getKOfMGateDefinitionAccess() { | ||
1224 | return pKOfMGateDefinition; | ||
1225 | } | ||
1226 | |||
1227 | public ParserRule getKOfMGateDefinitionRule() { | ||
1228 | return getKOfMGateDefinitionAccess().getRule(); | ||
1032 | } | 1229 | } |
1033 | 1230 | ||
1034 | //TransformationDefinition: | 1231 | //TransformationDefinition: |
1035 | // "transformation" name=ID "{" | 1232 | // "transformation" name=ValidId "{" |
1036 | // mappingDefinitions+=MappingDefinition* | 1233 | // mappingDefinitions+=MappingDefinition* |
1037 | // "}"; | 1234 | // "}"; |
1038 | public TransformationDefinitionElements getTransformationDefinitionAccess() { | 1235 | public TransformationDefinitionElements getTransformationDefinitionAccess() { |
@@ -1057,7 +1254,7 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
1057 | } | 1254 | } |
1058 | 1255 | ||
1059 | //MappingParameter: | 1256 | //MappingParameter: |
1060 | // name=ID; | 1257 | // name=ValidId; |
1061 | public MappingParameterElements getMappingParameterAccess() { | 1258 | public MappingParameterElements getMappingParameterAccess() { |
1062 | return pMappingParameter; | 1259 | return pMappingParameter; |
1063 | } | 1260 | } |
@@ -1067,9 +1264,9 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
1067 | } | 1264 | } |
1068 | 1265 | ||
1069 | //LookupDefinition: | 1266 | //LookupDefinition: |
1070 | // "lookup" mapping=[MappingDefinition] | 1267 | // "lookup" mapping=[MappingDefinition|QualifiedName] |
1071 | // "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" | 1268 | // "(" arguments+=[MappingParameter|ValidId] ("," arguments+=[MappingParameter|ValidId])* ")" |
1072 | // "as" name=ID; | 1269 | // "as" name=ValidId; |
1073 | public LookupDefinitionElements getLookupDefinitionAccess() { | 1270 | public LookupDefinitionElements getLookupDefinitionAccess() { |
1074 | return pLookupDefinition; | 1271 | return pLookupDefinition; |
1075 | } | 1272 | } |
@@ -1099,7 +1296,7 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
1099 | } | 1296 | } |
1100 | 1297 | ||
1101 | //EventReference: | 1298 | //EventReference: |
1102 | // component=[Variable] "." event=[EventDeclaration]; | 1299 | // component=[Variable|ValidId] "." event=[cft::EventDeclaration|ValidId]; |
1103 | public EventReferenceElements getEventReferenceAccess() { | 1300 | public EventReferenceElements getEventReferenceAccess() { |
1104 | return pEventReference; | 1301 | return pEventReference; |
1105 | } | 1302 | } |
@@ -1109,7 +1306,7 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
1109 | } | 1306 | } |
1110 | 1307 | ||
1111 | //ComponentInstance: | 1308 | //ComponentInstance: |
1112 | // "=>" componentType=[ComponentDefinition|QualifiedName] name=ID?; | 1309 | // "=>" componentType=[cft::ComponentDefinition|QualifiedName] name=ID?; |
1113 | public ComponentInstanceElements getComponentInstanceAccess() { | 1310 | public ComponentInstanceElements getComponentInstanceAccess() { |
1114 | return pComponentInstance; | 1311 | return pComponentInstance; |
1115 | } | 1312 | } |
@@ -1119,7 +1316,7 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
1119 | } | 1316 | } |
1120 | 1317 | ||
1121 | //QualifiedName: | 1318 | //QualifiedName: |
1122 | // ID ("." ID)*; | 1319 | // ValidId ("." ValidId)*; |
1123 | public QualifiedNameElements getQualifiedNameAccess() { | 1320 | public QualifiedNameElements getQualifiedNameAccess() { |
1124 | return pQualifiedName; | 1321 | return pQualifiedName; |
1125 | } | 1322 | } |
@@ -1138,10 +1335,36 @@ public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | |||
1138 | return getQualifiedNameWithWildcardAccess().getRule(); | 1335 | return getQualifiedNameWithWildcardAccess().getRule(); |
1139 | } | 1336 | } |
1140 | 1337 | ||
1141 | //terminal DOULBE returns ecore::EDouble: | 1338 | //ValidId: |
1339 | // ID | OF_INT; | ||
1340 | public ValidIdElements getValidIdAccess() { | ||
1341 | return pValidId; | ||
1342 | } | ||
1343 | |||
1344 | public ParserRule getValidIdRule() { | ||
1345 | return getValidIdAccess().getRule(); | ||
1346 | } | ||
1347 | |||
1348 | //Double ecore::EDouble: | ||
1349 | // INT | T_DOUBLE; | ||
1350 | public DoubleElements getDoubleAccess() { | ||
1351 | return pDouble; | ||
1352 | } | ||
1353 | |||
1354 | public ParserRule getDoubleRule() { | ||
1355 | return getDoubleAccess().getRule(); | ||
1356 | } | ||
1357 | |||
1358 | //terminal OF_INT returns ecore::EInt: | ||
1359 | // "o" "f" '0'..'9'+; | ||
1360 | public TerminalRule getOF_INTRule() { | ||
1361 | return tOF_INT; | ||
1362 | } | ||
1363 | |||
1364 | //terminal T_DOUBLE: | ||
1142 | // '0'..'9'+ ("." '0'..'9'+ | ("." '0'..'9'+)? ("e" | "E") ("+" | "-")? '0'..'9'+); | 1365 | // '0'..'9'+ ("." '0'..'9'+ | ("." '0'..'9'+)? ("e" | "E") ("+" | "-")? '0'..'9'+); |
1143 | public TerminalRule getDOULBERule() { | 1366 | public TerminalRule getT_DOUBLERule() { |
1144 | return tDOULBE; | 1367 | return tT_DOUBLE; |
1145 | } | 1368 | } |
1146 | 1369 | ||
1147 | //terminal ID: | 1370 | //terminal ID: |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java index a0c1efe7..1c5dbdee 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/AbstractCftLanguageValidator.java | |||
@@ -14,6 +14,8 @@ public abstract class AbstractCftLanguageValidator extends AbstractDeclarativeVa | |||
14 | protected List<EPackage> getEPackages() { | 14 | protected List<EPackage> getEPackages() { |
15 | List<EPackage> result = new ArrayList<EPackage>(); | 15 | List<EPackage> result = new ArrayList<EPackage>(); |
16 | result.add(hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage.eINSTANCE); | 16 | result.add(hu.bme.mit.inf.dslreasoner.faulttree.components.cftLanguage.CftLanguagePackage.eINSTANCE); |
17 | result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.bme.hu/mit/inf/dslreasoner/faulttree/model/cft")); | ||
18 | result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.bme.hu/mit/inf/dslreasoner/faulttree/model/ft")); | ||
17 | return result; | 19 | return result; |
18 | } | 20 | } |
19 | } | 21 | } |