diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g | 9485 |
1 files changed, 5182 insertions, 4303 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g index 455e7054..a79a6430 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g | |||
@@ -1,4303 +1,5182 @@ | |||
1 | /* | 1 | /* |
2 | * generated by Xtext 2.12.0 | 2 | * generated by Xtext 2.16.0 |
3 | */ | 3 | */ |
4 | grammar InternalApplicationConfiguration; | 4 | grammar InternalApplicationConfiguration; |
5 | 5 | ||
6 | options { | 6 | options { |
7 | superClass=AbstractInternalAntlrParser; | 7 | superClass=AbstractInternalAntlrParser; |
8 | } | 8 | } |
9 | 9 | ||
10 | @lexer::header { | 10 | @lexer::header { |
11 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; | 11 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; |
12 | 12 | ||
13 | // Hack: Use our own Lexer superclass by means of import. | 13 | // Hack: Use our own Lexer superclass by means of import. |
14 | // Currently there is no other way to specify the superclass for the lexer. | 14 | // Currently there is no other way to specify the superclass for the lexer. |
15 | import org.eclipse.xtext.parser.antlr.Lexer; | 15 | import org.eclipse.xtext.parser.antlr.Lexer; |
16 | } | 16 | } |
17 | 17 | ||
18 | @parser::header { | 18 | @parser::header { |
19 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; | 19 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; |
20 | 20 | ||
21 | import org.eclipse.xtext.*; | 21 | import org.eclipse.xtext.*; |
22 | import org.eclipse.xtext.parser.*; | 22 | import org.eclipse.xtext.parser.*; |
23 | import org.eclipse.xtext.parser.impl.*; | 23 | import org.eclipse.xtext.parser.impl.*; |
24 | import org.eclipse.emf.ecore.util.EcoreUtil; | 24 | import org.eclipse.emf.ecore.util.EcoreUtil; |
25 | import org.eclipse.emf.ecore.EObject; | 25 | import org.eclipse.emf.ecore.EObject; |
26 | import org.eclipse.emf.common.util.Enumerator; | 26 | import org.eclipse.emf.common.util.Enumerator; |
27 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; | 27 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; |
28 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | 28 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
29 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | 29 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; |
30 | import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; | 30 | import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; |
31 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | 31 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; |
32 | 32 | ||
33 | } | 33 | } |
34 | 34 | ||
35 | @parser::members { | 35 | @parser::members { |
36 | 36 | ||
37 | private ApplicationConfigurationGrammarAccess grammarAccess; | 37 | private ApplicationConfigurationGrammarAccess grammarAccess; |
38 | 38 | ||
39 | public InternalApplicationConfigurationParser(TokenStream input, ApplicationConfigurationGrammarAccess grammarAccess) { | 39 | public InternalApplicationConfigurationParser(TokenStream input, ApplicationConfigurationGrammarAccess grammarAccess) { |
40 | this(input); | 40 | this(input); |
41 | this.grammarAccess = grammarAccess; | 41 | this.grammarAccess = grammarAccess; |
42 | registerRules(grammarAccess.getGrammar()); | 42 | registerRules(grammarAccess.getGrammar()); |
43 | } | 43 | } |
44 | 44 | ||
45 | @Override | 45 | @Override |
46 | protected String getFirstRuleName() { | 46 | protected String getFirstRuleName() { |
47 | return "ConfigurationScript"; | 47 | return "ConfigurationScript"; |
48 | } | 48 | } |
49 | 49 | ||
50 | @Override | 50 | @Override |
51 | protected ApplicationConfigurationGrammarAccess getGrammarAccess() { | 51 | protected ApplicationConfigurationGrammarAccess getGrammarAccess() { |
52 | return grammarAccess; | 52 | return grammarAccess; |
53 | } | 53 | } |
54 | 54 | ||
55 | } | 55 | } |
56 | 56 | ||
57 | @rulecatch { | 57 | @rulecatch { |
58 | catch (RecognitionException re) { | 58 | catch (RecognitionException re) { |
59 | recover(input,re); | 59 | recover(input,re); |
60 | appendSkippedTokens(); | 60 | appendSkippedTokens(); |
61 | } | 61 | } |
62 | } | 62 | } |
63 | 63 | ||
64 | // Entry rule entryRuleConfigurationScript | 64 | // Entry rule entryRuleConfigurationScript |
65 | entryRuleConfigurationScript returns [EObject current=null]: | 65 | entryRuleConfigurationScript returns [EObject current=null]: |
66 | { newCompositeNode(grammarAccess.getConfigurationScriptRule()); } | 66 | { newCompositeNode(grammarAccess.getConfigurationScriptRule()); } |
67 | iv_ruleConfigurationScript=ruleConfigurationScript | 67 | iv_ruleConfigurationScript=ruleConfigurationScript |
68 | { $current=$iv_ruleConfigurationScript.current; } | 68 | { $current=$iv_ruleConfigurationScript.current; } |
69 | EOF; | 69 | EOF; |
70 | 70 | ||
71 | // Rule ConfigurationScript | 71 | // Rule ConfigurationScript |
72 | ruleConfigurationScript returns [EObject current=null] | 72 | ruleConfigurationScript returns [EObject current=null] |
73 | @init { | 73 | @init { |
74 | enterRule(); | 74 | enterRule(); |
75 | } | 75 | } |
76 | @after { | 76 | @after { |
77 | leaveRule(); | 77 | leaveRule(); |
78 | }: | 78 | }: |
79 | ( | 79 | ( |
80 | ( | 80 | ( |
81 | ( | 81 | ( |
82 | { | 82 | { |
83 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); | 83 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); |
84 | } | 84 | } |
85 | lv_imports_0_0=ruleImport | 85 | lv_imports_0_0=ruleImport |
86 | { | 86 | { |
87 | if ($current==null) { | 87 | if ($current==null) { |
88 | $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); | 88 | $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); |
89 | } | 89 | } |
90 | add( | 90 | add( |
91 | $current, | 91 | $current, |
92 | "imports", | 92 | "imports", |
93 | lv_imports_0_0, | 93 | lv_imports_0_0, |
94 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import"); | 94 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import"); |
95 | afterParserOrEnumRuleCall(); | 95 | afterParserOrEnumRuleCall(); |
96 | } | 96 | } |
97 | ) | 97 | ) |
98 | )* | 98 | )* |
99 | ( | 99 | ( |
100 | ( | 100 | ( |
101 | { | 101 | { |
102 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); | 102 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); |
103 | } | 103 | } |
104 | lv_commands_1_0=ruleCommand | 104 | lv_commands_1_0=ruleCommand |
105 | { | 105 | { |
106 | if ($current==null) { | 106 | if ($current==null) { |
107 | $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); | 107 | $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); |
108 | } | 108 | } |
109 | add( | 109 | add( |
110 | $current, | 110 | $current, |
111 | "commands", | 111 | "commands", |
112 | lv_commands_1_0, | 112 | lv_commands_1_0, |
113 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command"); | 113 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command"); |
114 | afterParserOrEnumRuleCall(); | 114 | afterParserOrEnumRuleCall(); |
115 | } | 115 | } |
116 | ) | 116 | ) |
117 | )* | 117 | )* |
118 | ) | 118 | ) |
119 | ; | 119 | ; |
120 | 120 | ||
121 | // Entry rule entryRuleCommand | 121 | // Entry rule entryRuleCommand |
122 | entryRuleCommand returns [EObject current=null]: | 122 | entryRuleCommand returns [EObject current=null]: |
123 | { newCompositeNode(grammarAccess.getCommandRule()); } | 123 | { newCompositeNode(grammarAccess.getCommandRule()); } |
124 | iv_ruleCommand=ruleCommand | 124 | iv_ruleCommand=ruleCommand |
125 | { $current=$iv_ruleCommand.current; } | 125 | { $current=$iv_ruleCommand.current; } |
126 | EOF; | 126 | EOF; |
127 | 127 | ||
128 | // Rule Command | 128 | // Rule Command |
129 | ruleCommand returns [EObject current=null] | 129 | ruleCommand returns [EObject current=null] |
130 | @init { | 130 | @init { |
131 | enterRule(); | 131 | enterRule(); |
132 | } | 132 | } |
133 | @after { | 133 | @after { |
134 | leaveRule(); | 134 | leaveRule(); |
135 | }: | 135 | }: |
136 | ( | 136 | ( |
137 | { | 137 | { |
138 | newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall_0()); | 138 | newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall_0()); |
139 | } | 139 | } |
140 | this_Declaration_0=ruleDeclaration | 140 | this_Declaration_0=ruleDeclaration |
141 | { | 141 | { |
142 | $current = $this_Declaration_0.current; | 142 | $current = $this_Declaration_0.current; |
143 | afterParserOrEnumRuleCall(); | 143 | afterParserOrEnumRuleCall(); |
144 | } | 144 | } |
145 | | | 145 | | |
146 | { | 146 | { |
147 | newCompositeNode(grammarAccess.getCommandAccess().getTaskParserRuleCall_1()); | 147 | newCompositeNode(grammarAccess.getCommandAccess().getTaskParserRuleCall_1()); |
148 | } | 148 | } |
149 | this_Task_1=ruleTask | 149 | this_Task_1=ruleTask |
150 | { | 150 | { |
151 | $current = $this_Task_1.current; | 151 | $current = $this_Task_1.current; |
152 | afterParserOrEnumRuleCall(); | 152 | afterParserOrEnumRuleCall(); |
153 | } | 153 | } |
154 | ) | 154 | ) |
155 | ; | 155 | ; |
156 | 156 | ||
157 | // Entry rule entryRuleQualifiedName | 157 | // Entry rule entryRuleQualifiedName |
158 | entryRuleQualifiedName returns [String current=null]: | 158 | entryRuleQualifiedName returns [String current=null]: |
159 | { newCompositeNode(grammarAccess.getQualifiedNameRule()); } | 159 | { newCompositeNode(grammarAccess.getQualifiedNameRule()); } |
160 | iv_ruleQualifiedName=ruleQualifiedName | 160 | iv_ruleQualifiedName=ruleQualifiedName |
161 | { $current=$iv_ruleQualifiedName.current.getText(); } | 161 | { $current=$iv_ruleQualifiedName.current.getText(); } |
162 | EOF; | 162 | EOF; |
163 | 163 | ||
164 | // Rule QualifiedName | 164 | // Rule QualifiedName |
165 | ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | 165 | ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
166 | @init { | 166 | @init { |
167 | enterRule(); | 167 | enterRule(); |
168 | } | 168 | } |
169 | @after { | 169 | @after { |
170 | leaveRule(); | 170 | leaveRule(); |
171 | }: | 171 | }: |
172 | ( | 172 | ( |
173 | this_ID_0=RULE_ID | 173 | this_ID_0=RULE_ID |
174 | { | 174 | { |
175 | $current.merge(this_ID_0); | 175 | $current.merge(this_ID_0); |
176 | } | 176 | } |
177 | { | 177 | { |
178 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | 178 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); |
179 | } | 179 | } |
180 | ( | 180 | ( |
181 | kw='.' | 181 | kw='.' |
182 | { | 182 | { |
183 | $current.merge(kw); | 183 | $current.merge(kw); |
184 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | 184 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
185 | } | 185 | } |
186 | this_ID_2=RULE_ID | 186 | this_ID_2=RULE_ID |
187 | { | 187 | { |
188 | $current.merge(this_ID_2); | 188 | $current.merge(this_ID_2); |
189 | } | 189 | } |
190 | { | 190 | { |
191 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | 191 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); |
192 | } | 192 | } |
193 | )* | 193 | )* |
194 | ) | 194 | ) |
195 | ; | 195 | ; |
196 | 196 | ||
197 | // Entry rule entryRuleREALLiteral | 197 | // Entry rule entryRuleREALLiteral |
198 | entryRuleREALLiteral returns [String current=null]: | 198 | entryRuleREALLiteral returns [String current=null]: |
199 | { newCompositeNode(grammarAccess.getREALLiteralRule()); } | 199 | { newCompositeNode(grammarAccess.getREALLiteralRule()); } |
200 | iv_ruleREALLiteral=ruleREALLiteral | 200 | iv_ruleREALLiteral=ruleREALLiteral |
201 | { $current=$iv_ruleREALLiteral.current.getText(); } | 201 | { $current=$iv_ruleREALLiteral.current.getText(); } |
202 | EOF; | 202 | EOF; |
203 | 203 | ||
204 | // Rule REALLiteral | 204 | // Rule REALLiteral |
205 | ruleREALLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | 205 | ruleREALLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
206 | @init { | 206 | @init { |
207 | enterRule(); | 207 | enterRule(); |
208 | } | 208 | } |
209 | @after { | 209 | @after { |
210 | leaveRule(); | 210 | leaveRule(); |
211 | }: | 211 | }: |
212 | ( | 212 | ( |
213 | ( | 213 | ( |
214 | kw='-' | 214 | kw='-' |
215 | { | 215 | { |
216 | $current.merge(kw); | 216 | $current.merge(kw); |
217 | newLeafNode(kw, grammarAccess.getREALLiteralAccess().getHyphenMinusKeyword_0()); | 217 | newLeafNode(kw, grammarAccess.getREALLiteralAccess().getHyphenMinusKeyword_0()); |
218 | } | 218 | } |
219 | )? | 219 | )? |
220 | this_INT_1=RULE_INT | 220 | this_INT_1=RULE_INT |
221 | { | 221 | { |
222 | $current.merge(this_INT_1); | 222 | $current.merge(this_INT_1); |
223 | } | 223 | } |
224 | { | 224 | { |
225 | newLeafNode(this_INT_1, grammarAccess.getREALLiteralAccess().getINTTerminalRuleCall_1()); | 225 | newLeafNode(this_INT_1, grammarAccess.getREALLiteralAccess().getINTTerminalRuleCall_1()); |
226 | } | 226 | } |
227 | kw='.' | 227 | kw='.' |
228 | { | 228 | { |
229 | $current.merge(kw); | 229 | $current.merge(kw); |
230 | newLeafNode(kw, grammarAccess.getREALLiteralAccess().getFullStopKeyword_2()); | 230 | newLeafNode(kw, grammarAccess.getREALLiteralAccess().getFullStopKeyword_2()); |
231 | } | 231 | } |
232 | this_INT_3=RULE_INT | 232 | this_INT_3=RULE_INT |
233 | { | 233 | { |
234 | $current.merge(this_INT_3); | 234 | $current.merge(this_INT_3); |
235 | } | 235 | } |
236 | { | 236 | { |
237 | newLeafNode(this_INT_3, grammarAccess.getREALLiteralAccess().getINTTerminalRuleCall_3()); | 237 | newLeafNode(this_INT_3, grammarAccess.getREALLiteralAccess().getINTTerminalRuleCall_3()); |
238 | } | 238 | } |
239 | ) | 239 | ) |
240 | ; | 240 | ; |
241 | 241 | ||
242 | // Entry rule entryRuleINTLiteral | 242 | // Entry rule entryRuleINTLiteral |
243 | entryRuleINTLiteral returns [String current=null]: | 243 | entryRuleINTLiteral returns [String current=null]: |
244 | { newCompositeNode(grammarAccess.getINTLiteralRule()); } | 244 | { newCompositeNode(grammarAccess.getINTLiteralRule()); } |
245 | iv_ruleINTLiteral=ruleINTLiteral | 245 | iv_ruleINTLiteral=ruleINTLiteral |
246 | { $current=$iv_ruleINTLiteral.current.getText(); } | 246 | { $current=$iv_ruleINTLiteral.current.getText(); } |
247 | EOF; | 247 | EOF; |
248 | 248 | ||
249 | // Rule INTLiteral | 249 | // Rule INTLiteral |
250 | ruleINTLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | 250 | ruleINTLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
251 | @init { | 251 | @init { |
252 | enterRule(); | 252 | enterRule(); |
253 | } | 253 | } |
254 | @after { | 254 | @after { |
255 | leaveRule(); | 255 | leaveRule(); |
256 | }: | 256 | }: |
257 | ( | 257 | ( |
258 | ( | 258 | ( |
259 | kw='-' | 259 | kw='-' |
260 | { | 260 | { |
261 | $current.merge(kw); | 261 | $current.merge(kw); |
262 | newLeafNode(kw, grammarAccess.getINTLiteralAccess().getHyphenMinusKeyword_0()); | 262 | newLeafNode(kw, grammarAccess.getINTLiteralAccess().getHyphenMinusKeyword_0()); |
263 | } | 263 | } |
264 | )? | 264 | )? |
265 | this_INT_1=RULE_INT | 265 | this_INT_1=RULE_INT |
266 | { | 266 | { |
267 | $current.merge(this_INT_1); | 267 | $current.merge(this_INT_1); |
268 | } | 268 | } |
269 | { | 269 | { |
270 | newLeafNode(this_INT_1, grammarAccess.getINTLiteralAccess().getINTTerminalRuleCall_1()); | 270 | newLeafNode(this_INT_1, grammarAccess.getINTLiteralAccess().getINTTerminalRuleCall_1()); |
271 | } | 271 | } |
272 | ) | 272 | ) |
273 | ; | 273 | ; |
274 | 274 | ||
275 | // Entry rule entryRuleImport | 275 | // Entry rule entryRuleImport |
276 | entryRuleImport returns [EObject current=null]: | 276 | entryRuleImport returns [EObject current=null]: |
277 | { newCompositeNode(grammarAccess.getImportRule()); } | 277 | { newCompositeNode(grammarAccess.getImportRule()); } |
278 | iv_ruleImport=ruleImport | 278 | iv_ruleImport=ruleImport |
279 | { $current=$iv_ruleImport.current; } | 279 | { $current=$iv_ruleImport.current; } |
280 | EOF; | 280 | EOF; |
281 | 281 | ||
282 | // Rule Import | 282 | // Rule Import |
283 | ruleImport returns [EObject current=null] | 283 | ruleImport returns [EObject current=null] |
284 | @init { | 284 | @init { |
285 | enterRule(); | 285 | enterRule(); |
286 | } | 286 | } |
287 | @after { | 287 | @after { |
288 | leaveRule(); | 288 | leaveRule(); |
289 | }: | 289 | }: |
290 | ( | 290 | ( |
291 | { | 291 | { |
292 | newCompositeNode(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); | 292 | newCompositeNode(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); |
293 | } | 293 | } |
294 | this_EPackageImport_0=ruleEPackageImport | 294 | this_EPackageImport_0=ruleEPackageImport |
295 | { | 295 | { |
296 | $current = $this_EPackageImport_0.current; | 296 | $current = $this_EPackageImport_0.current; |
297 | afterParserOrEnumRuleCall(); | 297 | afterParserOrEnumRuleCall(); |
298 | } | 298 | } |
299 | | | 299 | | |
300 | { | 300 | { |
301 | newCompositeNode(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); | 301 | newCompositeNode(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); |
302 | } | 302 | } |
303 | this_ViatraImport_1=ruleViatraImport | 303 | this_ViatraImport_1=ruleViatraImport |
304 | { | 304 | { |
305 | $current = $this_ViatraImport_1.current; | 305 | $current = $this_ViatraImport_1.current; |
306 | afterParserOrEnumRuleCall(); | 306 | afterParserOrEnumRuleCall(); |
307 | } | 307 | } |
308 | ) | 308 | | |
309 | ; | 309 | { |
310 | 310 | newCompositeNode(grammarAccess.getImportAccess().getCftImportParserRuleCall_2()); | |
311 | // Entry rule entryRuleEPackageImport | 311 | } |
312 | entryRuleEPackageImport returns [EObject current=null]: | 312 | this_CftImport_2=ruleCftImport |
313 | { newCompositeNode(grammarAccess.getEPackageImportRule()); } | 313 | { |
314 | iv_ruleEPackageImport=ruleEPackageImport | 314 | $current = $this_CftImport_2.current; |
315 | { $current=$iv_ruleEPackageImport.current; } | 315 | afterParserOrEnumRuleCall(); |
316 | EOF; | 316 | } |
317 | 317 | ) | |
318 | // Rule EPackageImport | 318 | ; |
319 | ruleEPackageImport returns [EObject current=null] | 319 | |
320 | @init { | 320 | // Entry rule entryRuleEPackageImport |
321 | enterRule(); | 321 | entryRuleEPackageImport returns [EObject current=null]: |
322 | } | 322 | { newCompositeNode(grammarAccess.getEPackageImportRule()); } |
323 | @after { | 323 | iv_ruleEPackageImport=ruleEPackageImport |
324 | leaveRule(); | 324 | { $current=$iv_ruleEPackageImport.current; } |
325 | }: | 325 | EOF; |
326 | ( | 326 | |
327 | otherlv_0='import' | 327 | // Rule EPackageImport |
328 | { | 328 | ruleEPackageImport returns [EObject current=null] |
329 | newLeafNode(otherlv_0, grammarAccess.getEPackageImportAccess().getImportKeyword_0()); | 329 | @init { |
330 | } | 330 | enterRule(); |
331 | otherlv_1='epackage' | 331 | } |
332 | { | 332 | @after { |
333 | newLeafNode(otherlv_1, grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); | 333 | leaveRule(); |
334 | } | 334 | }: |
335 | ( | 335 | ( |
336 | ( | 336 | otherlv_0='import' |
337 | { | 337 | { |
338 | if ($current==null) { | 338 | newLeafNode(otherlv_0, grammarAccess.getEPackageImportAccess().getImportKeyword_0()); |
339 | $current = createModelElement(grammarAccess.getEPackageImportRule()); | 339 | } |
340 | } | 340 | otherlv_1='epackage' |
341 | } | 341 | { |
342 | otherlv_2=RULE_STRING | 342 | newLeafNode(otherlv_1, grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); |
343 | { | 343 | } |
344 | newLeafNode(otherlv_2, grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); | 344 | ( |
345 | } | 345 | ( |
346 | ) | 346 | { |
347 | ) | 347 | if ($current==null) { |
348 | ) | 348 | $current = createModelElement(grammarAccess.getEPackageImportRule()); |
349 | ; | 349 | } |
350 | 350 | } | |
351 | // Entry rule entryRuleViatraImport | 351 | otherlv_2=RULE_STRING |
352 | entryRuleViatraImport returns [EObject current=null]: | 352 | { |
353 | { newCompositeNode(grammarAccess.getViatraImportRule()); } | 353 | newLeafNode(otherlv_2, grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); |
354 | iv_ruleViatraImport=ruleViatraImport | 354 | } |
355 | { $current=$iv_ruleViatraImport.current; } | 355 | ) |
356 | EOF; | 356 | ) |
357 | 357 | ) | |
358 | // Rule ViatraImport | 358 | ; |
359 | ruleViatraImport returns [EObject current=null] | 359 | |
360 | @init { | 360 | // Entry rule entryRuleViatraImport |
361 | enterRule(); | 361 | entryRuleViatraImport returns [EObject current=null]: |
362 | } | 362 | { newCompositeNode(grammarAccess.getViatraImportRule()); } |
363 | @after { | 363 | iv_ruleViatraImport=ruleViatraImport |
364 | leaveRule(); | 364 | { $current=$iv_ruleViatraImport.current; } |
365 | }: | 365 | EOF; |
366 | ( | 366 | |
367 | otherlv_0='import' | 367 | // Rule ViatraImport |
368 | { | 368 | ruleViatraImport returns [EObject current=null] |
369 | newLeafNode(otherlv_0, grammarAccess.getViatraImportAccess().getImportKeyword_0()); | 369 | @init { |
370 | } | 370 | enterRule(); |
371 | otherlv_1='viatra' | 371 | } |
372 | { | 372 | @after { |
373 | newLeafNode(otherlv_1, grammarAccess.getViatraImportAccess().getViatraKeyword_1()); | 373 | leaveRule(); |
374 | } | 374 | }: |
375 | ( | 375 | ( |
376 | ( | 376 | otherlv_0='import' |
377 | { | 377 | { |
378 | if ($current==null) { | 378 | newLeafNode(otherlv_0, grammarAccess.getViatraImportAccess().getImportKeyword_0()); |
379 | $current = createModelElement(grammarAccess.getViatraImportRule()); | 379 | } |
380 | } | 380 | otherlv_1='viatra' |
381 | } | 381 | { |
382 | otherlv_2=RULE_STRING | 382 | newLeafNode(otherlv_1, grammarAccess.getViatraImportAccess().getViatraKeyword_1()); |
383 | { | 383 | } |
384 | newLeafNode(otherlv_2, grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); | 384 | ( |
385 | } | 385 | ( |
386 | ) | 386 | { |
387 | ) | 387 | if ($current==null) { |
388 | ) | 388 | $current = createModelElement(grammarAccess.getViatraImportRule()); |
389 | ; | 389 | } |
390 | 390 | } | |
391 | // Entry rule entryRuleDeclaration | 391 | otherlv_2=RULE_STRING |
392 | entryRuleDeclaration returns [EObject current=null]: | 392 | { |
393 | { newCompositeNode(grammarAccess.getDeclarationRule()); } | 393 | newLeafNode(otherlv_2, grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); |
394 | iv_ruleDeclaration=ruleDeclaration | 394 | } |
395 | { $current=$iv_ruleDeclaration.current; } | 395 | ) |
396 | EOF; | 396 | ) |
397 | 397 | ) | |
398 | // Rule Declaration | 398 | ; |
399 | ruleDeclaration returns [EObject current=null] | 399 | |
400 | @init { | 400 | // Entry rule entryRuleCftImport |
401 | enterRule(); | 401 | entryRuleCftImport returns [EObject current=null]: |
402 | } | 402 | { newCompositeNode(grammarAccess.getCftImportRule()); } |
403 | @after { | 403 | iv_ruleCftImport=ruleCftImport |
404 | leaveRule(); | 404 | { $current=$iv_ruleCftImport.current; } |
405 | }: | 405 | EOF; |
406 | ( | 406 | |
407 | { | 407 | // Rule CftImport |
408 | newCompositeNode(grammarAccess.getDeclarationAccess().getFileDeclarationParserRuleCall_0()); | 408 | ruleCftImport returns [EObject current=null] |
409 | } | 409 | @init { |
410 | this_FileDeclaration_0=ruleFileDeclaration | 410 | enterRule(); |
411 | { | 411 | } |
412 | $current = $this_FileDeclaration_0.current; | 412 | @after { |
413 | afterParserOrEnumRuleCall(); | 413 | leaveRule(); |
414 | } | 414 | }: |
415 | | | 415 | ( |
416 | { | 416 | otherlv_0='import' |
417 | newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall_1()); | 417 | { |
418 | } | 418 | newLeafNode(otherlv_0, grammarAccess.getCftImportAccess().getImportKeyword_0()); |
419 | this_MetamodelDeclaration_1=ruleMetamodelDeclaration | 419 | } |
420 | { | 420 | otherlv_1='reliability' |
421 | $current = $this_MetamodelDeclaration_1.current; | 421 | { |
422 | afterParserOrEnumRuleCall(); | 422 | newLeafNode(otherlv_1, grammarAccess.getCftImportAccess().getReliabilityKeyword_1()); |
423 | } | 423 | } |
424 | | | 424 | ( |
425 | { | 425 | ( |
426 | newCompositeNode(grammarAccess.getDeclarationAccess().getPartialModelDeclarationParserRuleCall_2()); | 426 | { |
427 | } | 427 | if ($current==null) { |
428 | this_PartialModelDeclaration_2=rulePartialModelDeclaration | 428 | $current = createModelElement(grammarAccess.getCftImportRule()); |
429 | { | 429 | } |
430 | $current = $this_PartialModelDeclaration_2.current; | 430 | } |
431 | afterParserOrEnumRuleCall(); | 431 | otherlv_2=RULE_STRING |
432 | } | 432 | { |
433 | | | 433 | newLeafNode(otherlv_2, grammarAccess.getCftImportAccess().getImportedCftCftModelCrossReference_2_0()); |
434 | { | 434 | } |
435 | newCompositeNode(grammarAccess.getDeclarationAccess().getGraphPatternDeclarationParserRuleCall_3()); | 435 | ) |
436 | } | 436 | ) |
437 | this_GraphPatternDeclaration_3=ruleGraphPatternDeclaration | 437 | ) |
438 | { | 438 | ; |
439 | $current = $this_GraphPatternDeclaration_3.current; | 439 | |
440 | afterParserOrEnumRuleCall(); | 440 | // Entry rule entryRuleDeclaration |
441 | } | 441 | entryRuleDeclaration returns [EObject current=null]: |
442 | | | 442 | { newCompositeNode(grammarAccess.getDeclarationRule()); } |
443 | { | 443 | iv_ruleDeclaration=ruleDeclaration |
444 | newCompositeNode(grammarAccess.getDeclarationAccess().getConfigDeclarationParserRuleCall_4()); | 444 | { $current=$iv_ruleDeclaration.current; } |
445 | } | 445 | EOF; |
446 | this_ConfigDeclaration_4=ruleConfigDeclaration | 446 | |
447 | { | 447 | // Rule Declaration |
448 | $current = $this_ConfigDeclaration_4.current; | 448 | ruleDeclaration returns [EObject current=null] |
449 | afterParserOrEnumRuleCall(); | 449 | @init { |
450 | } | 450 | enterRule(); |
451 | | | 451 | } |
452 | { | 452 | @after { |
453 | newCompositeNode(grammarAccess.getDeclarationAccess().getScopeDeclarationParserRuleCall_5()); | 453 | leaveRule(); |
454 | } | 454 | }: |
455 | this_ScopeDeclaration_5=ruleScopeDeclaration | 455 | ( |
456 | { | 456 | { |
457 | $current = $this_ScopeDeclaration_5.current; | 457 | newCompositeNode(grammarAccess.getDeclarationAccess().getFileDeclarationParserRuleCall_0()); |
458 | afterParserOrEnumRuleCall(); | 458 | } |
459 | } | 459 | this_FileDeclaration_0=ruleFileDeclaration |
460 | ) | 460 | { |
461 | ; | 461 | $current = $this_FileDeclaration_0.current; |
462 | 462 | afterParserOrEnumRuleCall(); | |
463 | // Entry rule entryRuleFileSpecification | 463 | } |
464 | entryRuleFileSpecification returns [EObject current=null]: | 464 | | |
465 | { newCompositeNode(grammarAccess.getFileSpecificationRule()); } | 465 | { |
466 | iv_ruleFileSpecification=ruleFileSpecification | 466 | newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall_1()); |
467 | { $current=$iv_ruleFileSpecification.current; } | 467 | } |
468 | EOF; | 468 | this_MetamodelDeclaration_1=ruleMetamodelDeclaration |
469 | 469 | { | |
470 | // Rule FileSpecification | 470 | $current = $this_MetamodelDeclaration_1.current; |
471 | ruleFileSpecification returns [EObject current=null] | 471 | afterParserOrEnumRuleCall(); |
472 | @init { | 472 | } |
473 | enterRule(); | 473 | | |
474 | } | 474 | { |
475 | @after { | 475 | newCompositeNode(grammarAccess.getDeclarationAccess().getPartialModelDeclarationParserRuleCall_2()); |
476 | leaveRule(); | 476 | } |
477 | }: | 477 | this_PartialModelDeclaration_2=rulePartialModelDeclaration |
478 | ( | 478 | { |
479 | ( | 479 | $current = $this_PartialModelDeclaration_2.current; |
480 | lv_path_0_0=RULE_STRING | 480 | afterParserOrEnumRuleCall(); |
481 | { | 481 | } |
482 | newLeafNode(lv_path_0_0, grammarAccess.getFileSpecificationAccess().getPathSTRINGTerminalRuleCall_0()); | 482 | | |
483 | } | 483 | { |
484 | { | 484 | newCompositeNode(grammarAccess.getDeclarationAccess().getGraphPatternDeclarationParserRuleCall_3()); |
485 | if ($current==null) { | 485 | } |
486 | $current = createModelElement(grammarAccess.getFileSpecificationRule()); | 486 | this_GraphPatternDeclaration_3=ruleGraphPatternDeclaration |
487 | } | 487 | { |
488 | setWithLastConsumed( | 488 | $current = $this_GraphPatternDeclaration_3.current; |
489 | $current, | 489 | afterParserOrEnumRuleCall(); |
490 | "path", | 490 | } |
491 | lv_path_0_0, | 491 | | |
492 | "org.eclipse.xtext.common.Terminals.STRING"); | 492 | { |
493 | } | 493 | newCompositeNode(grammarAccess.getDeclarationAccess().getConfigDeclarationParserRuleCall_4()); |
494 | ) | 494 | } |
495 | ) | 495 | this_ConfigDeclaration_4=ruleConfigDeclaration |
496 | ; | 496 | { |
497 | 497 | $current = $this_ConfigDeclaration_4.current; | |
498 | // Entry rule entryRuleFileDeclaration | 498 | afterParserOrEnumRuleCall(); |
499 | entryRuleFileDeclaration returns [EObject current=null]: | 499 | } |
500 | { newCompositeNode(grammarAccess.getFileDeclarationRule()); } | 500 | | |
501 | iv_ruleFileDeclaration=ruleFileDeclaration | 501 | { |
502 | { $current=$iv_ruleFileDeclaration.current; } | 502 | newCompositeNode(grammarAccess.getDeclarationAccess().getScopeDeclarationParserRuleCall_5()); |
503 | EOF; | 503 | } |
504 | 504 | this_ScopeDeclaration_5=ruleScopeDeclaration | |
505 | // Rule FileDeclaration | 505 | { |
506 | ruleFileDeclaration returns [EObject current=null] | 506 | $current = $this_ScopeDeclaration_5.current; |
507 | @init { | 507 | afterParserOrEnumRuleCall(); |
508 | enterRule(); | 508 | } |
509 | } | 509 | | |
510 | @after { | 510 | { |
511 | leaveRule(); | 511 | newCompositeNode(grammarAccess.getDeclarationAccess().getObjectiveDeclarationParserRuleCall_6()); |
512 | }: | 512 | } |
513 | ( | 513 | this_ObjectiveDeclaration_6=ruleObjectiveDeclaration |
514 | otherlv_0='file' | 514 | { |
515 | { | 515 | $current = $this_ObjectiveDeclaration_6.current; |
516 | newLeafNode(otherlv_0, grammarAccess.getFileDeclarationAccess().getFileKeyword_0()); | 516 | afterParserOrEnumRuleCall(); |
517 | } | 517 | } |
518 | ( | 518 | ) |
519 | ( | 519 | ; |
520 | lv_name_1_0=RULE_ID | 520 | |
521 | { | 521 | // Entry rule entryRuleFileSpecification |
522 | newLeafNode(lv_name_1_0, grammarAccess.getFileDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | 522 | entryRuleFileSpecification returns [EObject current=null]: |
523 | } | 523 | { newCompositeNode(grammarAccess.getFileSpecificationRule()); } |
524 | { | 524 | iv_ruleFileSpecification=ruleFileSpecification |
525 | if ($current==null) { | 525 | { $current=$iv_ruleFileSpecification.current; } |
526 | $current = createModelElement(grammarAccess.getFileDeclarationRule()); | 526 | EOF; |
527 | } | 527 | |
528 | setWithLastConsumed( | 528 | // Rule FileSpecification |
529 | $current, | 529 | ruleFileSpecification returns [EObject current=null] |
530 | "name", | 530 | @init { |
531 | lv_name_1_0, | 531 | enterRule(); |
532 | "org.eclipse.xtext.common.Terminals.ID"); | 532 | } |
533 | } | 533 | @after { |
534 | ) | 534 | leaveRule(); |
535 | ) | 535 | }: |
536 | otherlv_2='=' | 536 | ( |
537 | { | 537 | ( |
538 | newLeafNode(otherlv_2, grammarAccess.getFileDeclarationAccess().getEqualsSignKeyword_2()); | 538 | lv_path_0_0=RULE_STRING |
539 | } | 539 | { |
540 | ( | 540 | newLeafNode(lv_path_0_0, grammarAccess.getFileSpecificationAccess().getPathSTRINGTerminalRuleCall_0()); |
541 | ( | 541 | } |
542 | { | 542 | { |
543 | newCompositeNode(grammarAccess.getFileDeclarationAccess().getSpecificationFileSpecificationParserRuleCall_3_0()); | 543 | if ($current==null) { |
544 | } | 544 | $current = createModelElement(grammarAccess.getFileSpecificationRule()); |
545 | lv_specification_3_0=ruleFileSpecification | 545 | } |
546 | { | 546 | setWithLastConsumed( |
547 | if ($current==null) { | 547 | $current, |
548 | $current = createModelElementForParent(grammarAccess.getFileDeclarationRule()); | 548 | "path", |
549 | } | 549 | lv_path_0_0, |
550 | set( | 550 | "org.eclipse.xtext.common.Terminals.STRING"); |
551 | $current, | 551 | } |
552 | "specification", | 552 | ) |
553 | lv_specification_3_0, | 553 | ) |
554 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.FileSpecification"); | 554 | ; |
555 | afterParserOrEnumRuleCall(); | 555 | |
556 | } | 556 | // Entry rule entryRuleFileDeclaration |
557 | ) | 557 | entryRuleFileDeclaration returns [EObject current=null]: |
558 | ) | 558 | { newCompositeNode(grammarAccess.getFileDeclarationRule()); } |
559 | ) | 559 | iv_ruleFileDeclaration=ruleFileDeclaration |
560 | ; | 560 | { $current=$iv_ruleFileDeclaration.current; } |
561 | 561 | EOF; | |
562 | // Entry rule entryRuleFileReference | 562 | |
563 | entryRuleFileReference returns [EObject current=null]: | 563 | // Rule FileDeclaration |
564 | { newCompositeNode(grammarAccess.getFileReferenceRule()); } | 564 | ruleFileDeclaration returns [EObject current=null] |
565 | iv_ruleFileReference=ruleFileReference | 565 | @init { |
566 | { $current=$iv_ruleFileReference.current; } | 566 | enterRule(); |
567 | EOF; | 567 | } |
568 | 568 | @after { | |
569 | // Rule FileReference | 569 | leaveRule(); |
570 | ruleFileReference returns [EObject current=null] | 570 | }: |
571 | @init { | 571 | ( |
572 | enterRule(); | 572 | otherlv_0='file' |
573 | } | 573 | { |
574 | @after { | 574 | newLeafNode(otherlv_0, grammarAccess.getFileDeclarationAccess().getFileKeyword_0()); |
575 | leaveRule(); | 575 | } |
576 | }: | 576 | ( |
577 | ( | 577 | ( |
578 | ( | 578 | lv_name_1_0=RULE_ID |
579 | { | 579 | { |
580 | if ($current==null) { | 580 | newLeafNode(lv_name_1_0, grammarAccess.getFileDeclarationAccess().getNameIDTerminalRuleCall_1_0()); |
581 | $current = createModelElement(grammarAccess.getFileReferenceRule()); | 581 | } |
582 | } | 582 | { |
583 | } | 583 | if ($current==null) { |
584 | otherlv_0=RULE_ID | 584 | $current = createModelElement(grammarAccess.getFileDeclarationRule()); |
585 | { | 585 | } |
586 | newLeafNode(otherlv_0, grammarAccess.getFileReferenceAccess().getReferredFileDeclarationCrossReference_0()); | 586 | setWithLastConsumed( |
587 | } | 587 | $current, |
588 | ) | 588 | "name", |
589 | ) | 589 | lv_name_1_0, |
590 | ; | 590 | "org.eclipse.xtext.common.Terminals.ID"); |
591 | 591 | } | |
592 | // Entry rule entryRuleFile | 592 | ) |
593 | entryRuleFile returns [EObject current=null]: | 593 | ) |
594 | { newCompositeNode(grammarAccess.getFileRule()); } | 594 | otherlv_2='=' |
595 | iv_ruleFile=ruleFile | 595 | { |
596 | { $current=$iv_ruleFile.current; } | 596 | newLeafNode(otherlv_2, grammarAccess.getFileDeclarationAccess().getEqualsSignKeyword_2()); |
597 | EOF; | 597 | } |
598 | 598 | ( | |
599 | // Rule File | 599 | ( |
600 | ruleFile returns [EObject current=null] | 600 | { |
601 | @init { | 601 | newCompositeNode(grammarAccess.getFileDeclarationAccess().getSpecificationFileSpecificationParserRuleCall_3_0()); |
602 | enterRule(); | 602 | } |
603 | } | 603 | lv_specification_3_0=ruleFileSpecification |
604 | @after { | 604 | { |
605 | leaveRule(); | 605 | if ($current==null) { |
606 | }: | 606 | $current = createModelElementForParent(grammarAccess.getFileDeclarationRule()); |
607 | ( | 607 | } |
608 | { | 608 | set( |
609 | newCompositeNode(grammarAccess.getFileAccess().getFileSpecificationParserRuleCall_0()); | 609 | $current, |
610 | } | 610 | "specification", |
611 | this_FileSpecification_0=ruleFileSpecification | 611 | lv_specification_3_0, |
612 | { | 612 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.FileSpecification"); |
613 | $current = $this_FileSpecification_0.current; | 613 | afterParserOrEnumRuleCall(); |
614 | afterParserOrEnumRuleCall(); | 614 | } |
615 | } | 615 | ) |
616 | | | 616 | ) |
617 | { | 617 | ) |
618 | newCompositeNode(grammarAccess.getFileAccess().getFileReferenceParserRuleCall_1()); | 618 | ; |
619 | } | 619 | |
620 | this_FileReference_1=ruleFileReference | 620 | // Entry rule entryRuleFileReference |
621 | { | 621 | entryRuleFileReference returns [EObject current=null]: |
622 | $current = $this_FileReference_1.current; | 622 | { newCompositeNode(grammarAccess.getFileReferenceRule()); } |
623 | afterParserOrEnumRuleCall(); | 623 | iv_ruleFileReference=ruleFileReference |
624 | } | 624 | { $current=$iv_ruleFileReference.current; } |
625 | ) | 625 | EOF; |
626 | ; | 626 | |
627 | 627 | // Rule FileReference | |
628 | // Entry rule entryRuleMetamodelSpecification | 628 | ruleFileReference returns [EObject current=null] |
629 | entryRuleMetamodelSpecification returns [EObject current=null]: | 629 | @init { |
630 | { newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); } | 630 | enterRule(); |
631 | iv_ruleMetamodelSpecification=ruleMetamodelSpecification | 631 | } |
632 | { $current=$iv_ruleMetamodelSpecification.current; } | 632 | @after { |
633 | EOF; | 633 | leaveRule(); |
634 | 634 | }: | |
635 | // Rule MetamodelSpecification | 635 | ( |
636 | ruleMetamodelSpecification returns [EObject current=null] | 636 | ( |
637 | @init { | 637 | { |
638 | enterRule(); | 638 | if ($current==null) { |
639 | } | 639 | $current = createModelElement(grammarAccess.getFileReferenceRule()); |
640 | @after { | 640 | } |
641 | leaveRule(); | 641 | } |
642 | }: | 642 | otherlv_0=RULE_ID |
643 | ( | 643 | { |
644 | otherlv_0='{' | 644 | newLeafNode(otherlv_0, grammarAccess.getFileReferenceAccess().getReferredFileDeclarationCrossReference_0()); |
645 | { | 645 | } |
646 | newLeafNode(otherlv_0, grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); | 646 | ) |
647 | } | 647 | ) |
648 | ( | 648 | ; |
649 | ( | 649 | |
650 | { | 650 | // Entry rule entryRuleFile |
651 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); | 651 | entryRuleFile returns [EObject current=null]: |
652 | } | 652 | { newCompositeNode(grammarAccess.getFileRule()); } |
653 | lv_entries_1_0=ruleMetamodelEntry | 653 | iv_ruleFile=ruleFile |
654 | { | 654 | { $current=$iv_ruleFile.current; } |
655 | if ($current==null) { | 655 | EOF; |
656 | $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); | 656 | |
657 | } | 657 | // Rule File |
658 | add( | 658 | ruleFile returns [EObject current=null] |
659 | $current, | 659 | @init { |
660 | "entries", | 660 | enterRule(); |
661 | lv_entries_1_0, | 661 | } |
662 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | 662 | @after { |
663 | afterParserOrEnumRuleCall(); | 663 | leaveRule(); |
664 | } | 664 | }: |
665 | ) | 665 | ( |
666 | ) | 666 | { |
667 | ( | 667 | newCompositeNode(grammarAccess.getFileAccess().getFileSpecificationParserRuleCall_0()); |
668 | otherlv_2=',' | 668 | } |
669 | { | 669 | this_FileSpecification_0=ruleFileSpecification |
670 | newLeafNode(otherlv_2, grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); | 670 | { |
671 | } | 671 | $current = $this_FileSpecification_0.current; |
672 | ( | 672 | afterParserOrEnumRuleCall(); |
673 | ( | 673 | } |
674 | { | 674 | | |
675 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); | 675 | { |
676 | } | 676 | newCompositeNode(grammarAccess.getFileAccess().getFileReferenceParserRuleCall_1()); |
677 | lv_entries_3_0=ruleMetamodelEntry | 677 | } |
678 | { | 678 | this_FileReference_1=ruleFileReference |
679 | if ($current==null) { | 679 | { |
680 | $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); | 680 | $current = $this_FileReference_1.current; |
681 | } | 681 | afterParserOrEnumRuleCall(); |
682 | add( | 682 | } |
683 | $current, | 683 | ) |
684 | "entries", | 684 | ; |
685 | lv_entries_3_0, | 685 | |
686 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | 686 | // Entry rule entryRuleMetamodelSpecification |
687 | afterParserOrEnumRuleCall(); | 687 | entryRuleMetamodelSpecification returns [EObject current=null]: |
688 | } | 688 | { newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); } |
689 | ) | 689 | iv_ruleMetamodelSpecification=ruleMetamodelSpecification |
690 | ) | 690 | { $current=$iv_ruleMetamodelSpecification.current; } |
691 | )* | 691 | EOF; |
692 | otherlv_4='}' | 692 | |
693 | { | 693 | // Rule MetamodelSpecification |
694 | newLeafNode(otherlv_4, grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); | 694 | ruleMetamodelSpecification returns [EObject current=null] |
695 | } | 695 | @init { |
696 | ) | 696 | enterRule(); |
697 | ; | 697 | } |
698 | 698 | @after { | |
699 | // Entry rule entryRuleMetamodelEntry | 699 | leaveRule(); |
700 | entryRuleMetamodelEntry returns [EObject current=null]: | 700 | }: |
701 | { newCompositeNode(grammarAccess.getMetamodelEntryRule()); } | 701 | ( |
702 | iv_ruleMetamodelEntry=ruleMetamodelEntry | 702 | otherlv_0='{' |
703 | { $current=$iv_ruleMetamodelEntry.current; } | 703 | { |
704 | EOF; | 704 | newLeafNode(otherlv_0, grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); |
705 | 705 | } | |
706 | // Rule MetamodelEntry | 706 | ( |
707 | ruleMetamodelEntry returns [EObject current=null] | 707 | ( |
708 | @init { | 708 | { |
709 | enterRule(); | 709 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); |
710 | } | 710 | } |
711 | @after { | 711 | lv_entries_1_0=ruleMetamodelEntry |
712 | leaveRule(); | 712 | { |
713 | }: | 713 | if ($current==null) { |
714 | ( | 714 | $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); |
715 | { | 715 | } |
716 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); | 716 | add( |
717 | } | 717 | $current, |
718 | this_MetamodelElement_0=ruleMetamodelElement | 718 | "entries", |
719 | { | 719 | lv_entries_1_0, |
720 | $current = $this_MetamodelElement_0.current; | 720 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); |
721 | afterParserOrEnumRuleCall(); | 721 | afterParserOrEnumRuleCall(); |
722 | } | 722 | } |
723 | | | 723 | ) |
724 | { | 724 | ) |
725 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); | 725 | ( |
726 | } | 726 | otherlv_2=',' |
727 | this_AllPackageEntry_1=ruleAllPackageEntry | 727 | { |
728 | { | 728 | newLeafNode(otherlv_2, grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); |
729 | $current = $this_AllPackageEntry_1.current; | 729 | } |
730 | afterParserOrEnumRuleCall(); | 730 | ( |
731 | } | 731 | ( |
732 | ) | 732 | { |
733 | ; | 733 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); |
734 | 734 | } | |
735 | // Entry rule entryRuleAllPackageEntry | 735 | lv_entries_3_0=ruleMetamodelEntry |
736 | entryRuleAllPackageEntry returns [EObject current=null]: | 736 | { |
737 | { newCompositeNode(grammarAccess.getAllPackageEntryRule()); } | 737 | if ($current==null) { |
738 | iv_ruleAllPackageEntry=ruleAllPackageEntry | 738 | $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); |
739 | { $current=$iv_ruleAllPackageEntry.current; } | 739 | } |
740 | EOF; | 740 | add( |
741 | 741 | $current, | |
742 | // Rule AllPackageEntry | 742 | "entries", |
743 | ruleAllPackageEntry returns [EObject current=null] | 743 | lv_entries_3_0, |
744 | @init { | 744 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); |
745 | enterRule(); | 745 | afterParserOrEnumRuleCall(); |
746 | } | 746 | } |
747 | @after { | 747 | ) |
748 | leaveRule(); | 748 | ) |
749 | }: | 749 | )* |
750 | ( | 750 | otherlv_4='}' |
751 | otherlv_0='package' | 751 | { |
752 | { | 752 | newLeafNode(otherlv_4, grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); |
753 | newLeafNode(otherlv_0, grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); | 753 | } |
754 | } | 754 | ) |
755 | ( | 755 | ; |
756 | ( | 756 | |
757 | { | 757 | // Entry rule entryRuleMetamodelEntry |
758 | if ($current==null) { | 758 | entryRuleMetamodelEntry returns [EObject current=null]: |
759 | $current = createModelElement(grammarAccess.getAllPackageEntryRule()); | 759 | { newCompositeNode(grammarAccess.getMetamodelEntryRule()); } |
760 | } | 760 | iv_ruleMetamodelEntry=ruleMetamodelEntry |
761 | } | 761 | { $current=$iv_ruleMetamodelEntry.current; } |
762 | { | 762 | EOF; |
763 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); | 763 | |
764 | } | 764 | // Rule MetamodelEntry |
765 | ruleQualifiedName | 765 | ruleMetamodelEntry returns [EObject current=null] |
766 | { | 766 | @init { |
767 | afterParserOrEnumRuleCall(); | 767 | enterRule(); |
768 | } | 768 | } |
769 | ) | 769 | @after { |
770 | ) | 770 | leaveRule(); |
771 | ( | 771 | }: |
772 | otherlv_2='excluding' | 772 | ( |
773 | { | 773 | { |
774 | newLeafNode(otherlv_2, grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); | 774 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); |
775 | } | 775 | } |
776 | otherlv_3='{' | 776 | this_MetamodelElement_0=ruleMetamodelElement |
777 | { | 777 | { |
778 | newLeafNode(otherlv_3, grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); | 778 | $current = $this_MetamodelElement_0.current; |
779 | } | 779 | afterParserOrEnumRuleCall(); |
780 | ( | 780 | } |
781 | ( | 781 | | |
782 | { | 782 | { |
783 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); | 783 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); |
784 | } | 784 | } |
785 | lv_exclusion_4_0=ruleMetamodelElement | 785 | this_AllPackageEntry_1=ruleAllPackageEntry |
786 | { | 786 | { |
787 | if ($current==null) { | 787 | $current = $this_AllPackageEntry_1.current; |
788 | $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); | 788 | afterParserOrEnumRuleCall(); |
789 | } | 789 | } |
790 | add( | 790 | ) |
791 | $current, | 791 | ; |
792 | "exclusion", | 792 | |
793 | lv_exclusion_4_0, | 793 | // Entry rule entryRuleAllPackageEntry |
794 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | 794 | entryRuleAllPackageEntry returns [EObject current=null]: |
795 | afterParserOrEnumRuleCall(); | 795 | { newCompositeNode(grammarAccess.getAllPackageEntryRule()); } |
796 | } | 796 | iv_ruleAllPackageEntry=ruleAllPackageEntry |
797 | ) | 797 | { $current=$iv_ruleAllPackageEntry.current; } |
798 | ) | 798 | EOF; |
799 | ( | 799 | |
800 | otherlv_5=',' | 800 | // Rule AllPackageEntry |
801 | { | 801 | ruleAllPackageEntry returns [EObject current=null] |
802 | newLeafNode(otherlv_5, grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); | 802 | @init { |
803 | } | 803 | enterRule(); |
804 | ( | 804 | } |
805 | ( | 805 | @after { |
806 | { | 806 | leaveRule(); |
807 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); | 807 | }: |
808 | } | 808 | ( |
809 | lv_exclusion_6_0=ruleMetamodelElement | 809 | otherlv_0='package' |
810 | { | 810 | { |
811 | if ($current==null) { | 811 | newLeafNode(otherlv_0, grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); |
812 | $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); | 812 | } |
813 | } | 813 | ( |
814 | add( | 814 | ( |
815 | $current, | 815 | { |
816 | "exclusion", | 816 | if ($current==null) { |
817 | lv_exclusion_6_0, | 817 | $current = createModelElement(grammarAccess.getAllPackageEntryRule()); |
818 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | 818 | } |
819 | afterParserOrEnumRuleCall(); | 819 | } |
820 | } | 820 | { |
821 | ) | 821 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); |
822 | ) | 822 | } |
823 | )* | 823 | ruleQualifiedName |
824 | otherlv_7='}' | 824 | { |
825 | { | 825 | afterParserOrEnumRuleCall(); |
826 | newLeafNode(otherlv_7, grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); | 826 | } |
827 | } | 827 | ) |
828 | )? | 828 | ) |
829 | ) | 829 | ( |
830 | ; | 830 | otherlv_2='excluding' |
831 | 831 | { | |
832 | // Entry rule entryRuleMetamodelElement | 832 | newLeafNode(otherlv_2, grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); |
833 | entryRuleMetamodelElement returns [EObject current=null]: | 833 | } |
834 | { newCompositeNode(grammarAccess.getMetamodelElementRule()); } | 834 | otherlv_3='{' |
835 | iv_ruleMetamodelElement=ruleMetamodelElement | 835 | { |
836 | { $current=$iv_ruleMetamodelElement.current; } | 836 | newLeafNode(otherlv_3, grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); |
837 | EOF; | 837 | } |
838 | 838 | ( | |
839 | // Rule MetamodelElement | 839 | ( |
840 | ruleMetamodelElement returns [EObject current=null] | 840 | { |
841 | @init { | 841 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); |
842 | enterRule(); | 842 | } |
843 | } | 843 | lv_exclusion_4_0=ruleMetamodelElement |
844 | @after { | 844 | { |
845 | leaveRule(); | 845 | if ($current==null) { |
846 | }: | 846 | $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); |
847 | ( | 847 | } |
848 | ( | 848 | add( |
849 | ( | 849 | $current, |
850 | ( | 850 | "exclusion", |
851 | { | 851 | lv_exclusion_4_0, |
852 | if ($current==null) { | 852 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); |
853 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); | 853 | afterParserOrEnumRuleCall(); |
854 | } | 854 | } |
855 | } | 855 | ) |
856 | { | 856 | ) |
857 | newCompositeNode(grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); | 857 | ( |
858 | } | 858 | otherlv_5=',' |
859 | ruleQualifiedName | 859 | { |
860 | { | 860 | newLeafNode(otherlv_5, grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); |
861 | afterParserOrEnumRuleCall(); | 861 | } |
862 | } | 862 | ( |
863 | ) | 863 | ( |
864 | ) | 864 | { |
865 | otherlv_1='::' | 865 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); |
866 | { | 866 | } |
867 | newLeafNode(otherlv_1, grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); | 867 | lv_exclusion_6_0=ruleMetamodelElement |
868 | } | 868 | { |
869 | )? | 869 | if ($current==null) { |
870 | ( | 870 | $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); |
871 | ( | 871 | } |
872 | { | 872 | add( |
873 | if ($current==null) { | 873 | $current, |
874 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); | 874 | "exclusion", |
875 | } | 875 | lv_exclusion_6_0, |
876 | } | 876 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); |
877 | otherlv_2=RULE_ID | 877 | afterParserOrEnumRuleCall(); |
878 | { | 878 | } |
879 | newLeafNode(otherlv_2, grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); | 879 | ) |
880 | } | 880 | ) |
881 | ) | 881 | )* |
882 | ) | 882 | otherlv_7='}' |
883 | ( | 883 | { |
884 | otherlv_3='.' | 884 | newLeafNode(otherlv_7, grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); |
885 | { | 885 | } |
886 | newLeafNode(otherlv_3, grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); | 886 | )? |
887 | } | 887 | ) |
888 | ( | 888 | ; |
889 | ( | 889 | |
890 | { | 890 | // Entry rule entryRuleMetamodelElement |
891 | if ($current==null) { | 891 | entryRuleMetamodelElement returns [EObject current=null]: |
892 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); | 892 | { newCompositeNode(grammarAccess.getMetamodelElementRule()); } |
893 | } | 893 | iv_ruleMetamodelElement=ruleMetamodelElement |
894 | } | 894 | { $current=$iv_ruleMetamodelElement.current; } |
895 | otherlv_4=RULE_ID | 895 | EOF; |
896 | { | 896 | |
897 | newLeafNode(otherlv_4, grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); | 897 | // Rule MetamodelElement |
898 | } | 898 | ruleMetamodelElement returns [EObject current=null] |
899 | ) | 899 | @init { |
900 | ) | 900 | enterRule(); |
901 | )? | 901 | } |
902 | ) | 902 | @after { |
903 | ; | 903 | leaveRule(); |
904 | 904 | }: | |
905 | // Entry rule entryRuleMetamodelDeclaration | 905 | ( |
906 | entryRuleMetamodelDeclaration returns [EObject current=null]: | 906 | ( |
907 | { newCompositeNode(grammarAccess.getMetamodelDeclarationRule()); } | 907 | ( |
908 | iv_ruleMetamodelDeclaration=ruleMetamodelDeclaration | 908 | ( |
909 | { $current=$iv_ruleMetamodelDeclaration.current; } | 909 | { |
910 | EOF; | 910 | if ($current==null) { |
911 | 911 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); | |
912 | // Rule MetamodelDeclaration | 912 | } |
913 | ruleMetamodelDeclaration returns [EObject current=null] | 913 | } |
914 | @init { | 914 | { |
915 | enterRule(); | 915 | newCompositeNode(grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); |
916 | } | 916 | } |
917 | @after { | 917 | ruleQualifiedName |
918 | leaveRule(); | 918 | { |
919 | }: | 919 | afterParserOrEnumRuleCall(); |
920 | ( | 920 | } |
921 | otherlv_0='metamodel' | 921 | ) |
922 | { | 922 | ) |
923 | newLeafNode(otherlv_0, grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); | 923 | otherlv_1='::' |
924 | } | 924 | { |
925 | ( | 925 | newLeafNode(otherlv_1, grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); |
926 | ( | 926 | } |
927 | lv_name_1_0=RULE_ID | 927 | )? |
928 | { | 928 | ( |
929 | newLeafNode(lv_name_1_0, grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | 929 | ( |
930 | } | 930 | { |
931 | { | 931 | if ($current==null) { |
932 | if ($current==null) { | 932 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); |
933 | $current = createModelElement(grammarAccess.getMetamodelDeclarationRule()); | 933 | } |
934 | } | 934 | } |
935 | setWithLastConsumed( | 935 | otherlv_2=RULE_ID |
936 | $current, | 936 | { |
937 | "name", | 937 | newLeafNode(otherlv_2, grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); |
938 | lv_name_1_0, | 938 | } |
939 | "org.eclipse.xtext.common.Terminals.ID"); | 939 | ) |
940 | } | 940 | ) |
941 | ) | 941 | ( |
942 | ) | 942 | otherlv_3='.' |
943 | ( | 943 | { |
944 | ( | 944 | newLeafNode(otherlv_3, grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); |
945 | { | 945 | } |
946 | newCompositeNode(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); | 946 | ( |
947 | } | 947 | ( |
948 | lv_specification_2_0=ruleMetamodelSpecification | 948 | { |
949 | { | 949 | if ($current==null) { |
950 | if ($current==null) { | 950 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); |
951 | $current = createModelElementForParent(grammarAccess.getMetamodelDeclarationRule()); | 951 | } |
952 | } | 952 | } |
953 | set( | 953 | otherlv_4=RULE_ID |
954 | $current, | 954 | { |
955 | "specification", | 955 | newLeafNode(otherlv_4, grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); |
956 | lv_specification_2_0, | 956 | } |
957 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification"); | 957 | ) |
958 | afterParserOrEnumRuleCall(); | 958 | ) |
959 | } | 959 | )? |
960 | ) | 960 | ) |
961 | ) | 961 | ; |
962 | ) | 962 | |
963 | ; | 963 | // Entry rule entryRuleMetamodelDeclaration |
964 | 964 | entryRuleMetamodelDeclaration returns [EObject current=null]: | |
965 | // Entry rule entryRuleMetamodelReference | 965 | { newCompositeNode(grammarAccess.getMetamodelDeclarationRule()); } |
966 | entryRuleMetamodelReference returns [EObject current=null]: | 966 | iv_ruleMetamodelDeclaration=ruleMetamodelDeclaration |
967 | { newCompositeNode(grammarAccess.getMetamodelReferenceRule()); } | 967 | { $current=$iv_ruleMetamodelDeclaration.current; } |
968 | iv_ruleMetamodelReference=ruleMetamodelReference | 968 | EOF; |
969 | { $current=$iv_ruleMetamodelReference.current; } | 969 | |
970 | EOF; | 970 | // Rule MetamodelDeclaration |
971 | 971 | ruleMetamodelDeclaration returns [EObject current=null] | |
972 | // Rule MetamodelReference | 972 | @init { |
973 | ruleMetamodelReference returns [EObject current=null] | 973 | enterRule(); |
974 | @init { | 974 | } |
975 | enterRule(); | 975 | @after { |
976 | } | 976 | leaveRule(); |
977 | @after { | 977 | }: |
978 | leaveRule(); | 978 | ( |
979 | }: | 979 | otherlv_0='metamodel' |
980 | ( | 980 | { |
981 | ( | 981 | newLeafNode(otherlv_0, grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); |
982 | { | 982 | } |
983 | if ($current==null) { | 983 | ( |
984 | $current = createModelElement(grammarAccess.getMetamodelReferenceRule()); | 984 | ( |
985 | } | 985 | lv_name_1_0=RULE_ID |
986 | } | 986 | { |
987 | otherlv_0=RULE_ID | 987 | newLeafNode(lv_name_1_0, grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); |
988 | { | 988 | } |
989 | newLeafNode(otherlv_0, grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); | 989 | { |
990 | } | 990 | if ($current==null) { |
991 | ) | 991 | $current = createModelElement(grammarAccess.getMetamodelDeclarationRule()); |
992 | ) | 992 | } |
993 | ; | 993 | setWithLastConsumed( |
994 | 994 | $current, | |
995 | // Entry rule entryRuleMetamodel | 995 | "name", |
996 | entryRuleMetamodel returns [EObject current=null]: | 996 | lv_name_1_0, |
997 | { newCompositeNode(grammarAccess.getMetamodelRule()); } | 997 | "org.eclipse.xtext.common.Terminals.ID"); |
998 | iv_ruleMetamodel=ruleMetamodel | 998 | } |
999 | { $current=$iv_ruleMetamodel.current; } | 999 | ) |
1000 | EOF; | 1000 | ) |
1001 | 1001 | ( | |
1002 | // Rule Metamodel | 1002 | ( |
1003 | ruleMetamodel returns [EObject current=null] | 1003 | { |
1004 | @init { | 1004 | newCompositeNode(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); |
1005 | enterRule(); | 1005 | } |
1006 | } | 1006 | lv_specification_2_0=ruleMetamodelSpecification |
1007 | @after { | 1007 | { |
1008 | leaveRule(); | 1008 | if ($current==null) { |
1009 | }: | 1009 | $current = createModelElementForParent(grammarAccess.getMetamodelDeclarationRule()); |
1010 | ( | 1010 | } |
1011 | { | 1011 | set( |
1012 | newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelReferenceParserRuleCall_0()); | 1012 | $current, |
1013 | } | 1013 | "specification", |
1014 | this_MetamodelReference_0=ruleMetamodelReference | 1014 | lv_specification_2_0, |
1015 | { | 1015 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification"); |
1016 | $current = $this_MetamodelReference_0.current; | 1016 | afterParserOrEnumRuleCall(); |
1017 | afterParserOrEnumRuleCall(); | 1017 | } |
1018 | } | 1018 | ) |
1019 | | | 1019 | ) |
1020 | { | 1020 | ) |
1021 | newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelSpecificationParserRuleCall_1()); | 1021 | ; |
1022 | } | 1022 | |
1023 | this_MetamodelSpecification_1=ruleMetamodelSpecification | 1023 | // Entry rule entryRuleMetamodelReference |
1024 | { | 1024 | entryRuleMetamodelReference returns [EObject current=null]: |
1025 | $current = $this_MetamodelSpecification_1.current; | 1025 | { newCompositeNode(grammarAccess.getMetamodelReferenceRule()); } |
1026 | afterParserOrEnumRuleCall(); | 1026 | iv_ruleMetamodelReference=ruleMetamodelReference |
1027 | } | 1027 | { $current=$iv_ruleMetamodelReference.current; } |
1028 | ) | 1028 | EOF; |
1029 | ; | 1029 | |
1030 | 1030 | // Rule MetamodelReference | |
1031 | // Entry rule entryRulePartialModelSpecification | 1031 | ruleMetamodelReference returns [EObject current=null] |
1032 | entryRulePartialModelSpecification returns [EObject current=null]: | 1032 | @init { |
1033 | { newCompositeNode(grammarAccess.getPartialModelSpecificationRule()); } | 1033 | enterRule(); |
1034 | iv_rulePartialModelSpecification=rulePartialModelSpecification | 1034 | } |
1035 | { $current=$iv_rulePartialModelSpecification.current; } | 1035 | @after { |
1036 | EOF; | 1036 | leaveRule(); |
1037 | 1037 | }: | |
1038 | // Rule PartialModelSpecification | 1038 | ( |
1039 | rulePartialModelSpecification returns [EObject current=null] | 1039 | ( |
1040 | @init { | 1040 | { |
1041 | enterRule(); | 1041 | if ($current==null) { |
1042 | } | 1042 | $current = createModelElement(grammarAccess.getMetamodelReferenceRule()); |
1043 | @after { | 1043 | } |
1044 | leaveRule(); | 1044 | } |
1045 | }: | 1045 | otherlv_0=RULE_ID |
1046 | ( | 1046 | { |
1047 | otherlv_0='{' | 1047 | newLeafNode(otherlv_0, grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); |
1048 | { | 1048 | } |
1049 | newLeafNode(otherlv_0, grammarAccess.getPartialModelSpecificationAccess().getLeftCurlyBracketKeyword_0()); | 1049 | ) |
1050 | } | 1050 | ) |
1051 | ( | 1051 | ; |
1052 | ( | 1052 | |
1053 | { | 1053 | // Entry rule entryRuleMetamodel |
1054 | newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_1_0()); | 1054 | entryRuleMetamodel returns [EObject current=null]: |
1055 | } | 1055 | { newCompositeNode(grammarAccess.getMetamodelRule()); } |
1056 | lv_entry_1_0=rulePartialModelEntry | 1056 | iv_ruleMetamodel=ruleMetamodel |
1057 | { | 1057 | { $current=$iv_ruleMetamodel.current; } |
1058 | if ($current==null) { | 1058 | EOF; |
1059 | $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); | 1059 | |
1060 | } | 1060 | // Rule Metamodel |
1061 | add( | 1061 | ruleMetamodel returns [EObject current=null] |
1062 | $current, | 1062 | @init { |
1063 | "entry", | 1063 | enterRule(); |
1064 | lv_entry_1_0, | 1064 | } |
1065 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); | 1065 | @after { |
1066 | afterParserOrEnumRuleCall(); | 1066 | leaveRule(); |
1067 | } | 1067 | }: |
1068 | ) | 1068 | ( |
1069 | ) | 1069 | { |
1070 | ( | 1070 | newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelReferenceParserRuleCall_0()); |
1071 | otherlv_2=',' | 1071 | } |
1072 | { | 1072 | this_MetamodelReference_0=ruleMetamodelReference |
1073 | newLeafNode(otherlv_2, grammarAccess.getPartialModelSpecificationAccess().getCommaKeyword_2_0()); | 1073 | { |
1074 | } | 1074 | $current = $this_MetamodelReference_0.current; |
1075 | ( | 1075 | afterParserOrEnumRuleCall(); |
1076 | ( | 1076 | } |
1077 | { | 1077 | | |
1078 | newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_2_1_0()); | 1078 | { |
1079 | } | 1079 | newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelSpecificationParserRuleCall_1()); |
1080 | lv_entry_3_0=rulePartialModelEntry | 1080 | } |
1081 | { | 1081 | this_MetamodelSpecification_1=ruleMetamodelSpecification |
1082 | if ($current==null) { | 1082 | { |
1083 | $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); | 1083 | $current = $this_MetamodelSpecification_1.current; |
1084 | } | 1084 | afterParserOrEnumRuleCall(); |
1085 | add( | 1085 | } |
1086 | $current, | 1086 | ) |
1087 | "entry", | 1087 | ; |
1088 | lv_entry_3_0, | 1088 | |
1089 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); | 1089 | // Entry rule entryRulePartialModelSpecification |
1090 | afterParserOrEnumRuleCall(); | 1090 | entryRulePartialModelSpecification returns [EObject current=null]: |
1091 | } | 1091 | { newCompositeNode(grammarAccess.getPartialModelSpecificationRule()); } |
1092 | ) | 1092 | iv_rulePartialModelSpecification=rulePartialModelSpecification |
1093 | ) | 1093 | { $current=$iv_rulePartialModelSpecification.current; } |
1094 | )? | 1094 | EOF; |
1095 | otherlv_4='}' | 1095 | |
1096 | { | 1096 | // Rule PartialModelSpecification |
1097 | newLeafNode(otherlv_4, grammarAccess.getPartialModelSpecificationAccess().getRightCurlyBracketKeyword_3()); | 1097 | rulePartialModelSpecification returns [EObject current=null] |
1098 | } | 1098 | @init { |
1099 | ) | 1099 | enterRule(); |
1100 | ; | 1100 | } |
1101 | 1101 | @after { | |
1102 | // Entry rule entryRulePartialModelEntry | 1102 | leaveRule(); |
1103 | entryRulePartialModelEntry returns [EObject current=null]: | 1103 | }: |
1104 | { newCompositeNode(grammarAccess.getPartialModelEntryRule()); } | 1104 | ( |
1105 | iv_rulePartialModelEntry=rulePartialModelEntry | 1105 | otherlv_0='{' |
1106 | { $current=$iv_rulePartialModelEntry.current; } | 1106 | { |
1107 | EOF; | 1107 | newLeafNode(otherlv_0, grammarAccess.getPartialModelSpecificationAccess().getLeftCurlyBracketKeyword_0()); |
1108 | 1108 | } | |
1109 | // Rule PartialModelEntry | 1109 | ( |
1110 | rulePartialModelEntry returns [EObject current=null] | 1110 | ( |
1111 | @init { | 1111 | { |
1112 | enterRule(); | 1112 | newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_1_0()); |
1113 | } | 1113 | } |
1114 | @after { | 1114 | lv_entry_1_0=rulePartialModelEntry |
1115 | leaveRule(); | 1115 | { |
1116 | }: | 1116 | if ($current==null) { |
1117 | ( | 1117 | $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); |
1118 | { | 1118 | } |
1119 | newCompositeNode(grammarAccess.getPartialModelEntryAccess().getModelEntryParserRuleCall_0()); | 1119 | add( |
1120 | } | 1120 | $current, |
1121 | this_ModelEntry_0=ruleModelEntry | 1121 | "entry", |
1122 | { | 1122 | lv_entry_1_0, |
1123 | $current = $this_ModelEntry_0.current; | 1123 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); |
1124 | afterParserOrEnumRuleCall(); | 1124 | afterParserOrEnumRuleCall(); |
1125 | } | 1125 | } |
1126 | | | 1126 | ) |
1127 | { | 1127 | ) |
1128 | newCompositeNode(grammarAccess.getPartialModelEntryAccess().getFolderEntryParserRuleCall_1()); | 1128 | ( |
1129 | } | 1129 | otherlv_2=',' |
1130 | this_FolderEntry_1=ruleFolderEntry | 1130 | { |
1131 | { | 1131 | newLeafNode(otherlv_2, grammarAccess.getPartialModelSpecificationAccess().getCommaKeyword_2_0()); |
1132 | $current = $this_FolderEntry_1.current; | 1132 | } |
1133 | afterParserOrEnumRuleCall(); | 1133 | ( |
1134 | } | 1134 | ( |
1135 | ) | 1135 | { |
1136 | ; | 1136 | newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_2_1_0()); |
1137 | 1137 | } | |
1138 | // Entry rule entryRuleModelEntry | 1138 | lv_entry_3_0=rulePartialModelEntry |
1139 | entryRuleModelEntry returns [EObject current=null]: | 1139 | { |
1140 | { newCompositeNode(grammarAccess.getModelEntryRule()); } | 1140 | if ($current==null) { |
1141 | iv_ruleModelEntry=ruleModelEntry | 1141 | $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); |
1142 | { $current=$iv_ruleModelEntry.current; } | 1142 | } |
1143 | EOF; | 1143 | add( |
1144 | 1144 | $current, | |
1145 | // Rule ModelEntry | 1145 | "entry", |
1146 | ruleModelEntry returns [EObject current=null] | 1146 | lv_entry_3_0, |
1147 | @init { | 1147 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); |
1148 | enterRule(); | 1148 | afterParserOrEnumRuleCall(); |
1149 | } | 1149 | } |
1150 | @after { | 1150 | ) |
1151 | leaveRule(); | 1151 | ) |
1152 | }: | 1152 | )? |
1153 | ( | 1153 | otherlv_4='}' |
1154 | ( | 1154 | { |
1155 | { | 1155 | newLeafNode(otherlv_4, grammarAccess.getPartialModelSpecificationAccess().getRightCurlyBracketKeyword_3()); |
1156 | newCompositeNode(grammarAccess.getModelEntryAccess().getPathFileParserRuleCall_0()); | 1156 | } |
1157 | } | 1157 | ) |
1158 | lv_path_0_0=ruleFile | 1158 | ; |
1159 | { | 1159 | |
1160 | if ($current==null) { | 1160 | // Entry rule entryRulePartialModelEntry |
1161 | $current = createModelElementForParent(grammarAccess.getModelEntryRule()); | 1161 | entryRulePartialModelEntry returns [EObject current=null]: |
1162 | } | 1162 | { newCompositeNode(grammarAccess.getPartialModelEntryRule()); } |
1163 | set( | 1163 | iv_rulePartialModelEntry=rulePartialModelEntry |
1164 | $current, | 1164 | { $current=$iv_rulePartialModelEntry.current; } |
1165 | "path", | 1165 | EOF; |
1166 | lv_path_0_0, | 1166 | |
1167 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 1167 | // Rule PartialModelEntry |
1168 | afterParserOrEnumRuleCall(); | 1168 | rulePartialModelEntry returns [EObject current=null] |
1169 | } | 1169 | @init { |
1170 | ) | 1170 | enterRule(); |
1171 | ) | 1171 | } |
1172 | ; | 1172 | @after { |
1173 | 1173 | leaveRule(); | |
1174 | // Entry rule entryRuleFolderEntry | 1174 | }: |
1175 | entryRuleFolderEntry returns [EObject current=null]: | 1175 | ( |
1176 | { newCompositeNode(grammarAccess.getFolderEntryRule()); } | 1176 | { |
1177 | iv_ruleFolderEntry=ruleFolderEntry | 1177 | newCompositeNode(grammarAccess.getPartialModelEntryAccess().getModelEntryParserRuleCall_0()); |
1178 | { $current=$iv_ruleFolderEntry.current; } | 1178 | } |
1179 | EOF; | 1179 | this_ModelEntry_0=ruleModelEntry |
1180 | 1180 | { | |
1181 | // Rule FolderEntry | 1181 | $current = $this_ModelEntry_0.current; |
1182 | ruleFolderEntry returns [EObject current=null] | 1182 | afterParserOrEnumRuleCall(); |
1183 | @init { | 1183 | } |
1184 | enterRule(); | 1184 | | |
1185 | } | 1185 | { |
1186 | @after { | 1186 | newCompositeNode(grammarAccess.getPartialModelEntryAccess().getFolderEntryParserRuleCall_1()); |
1187 | leaveRule(); | 1187 | } |
1188 | }: | 1188 | this_FolderEntry_1=ruleFolderEntry |
1189 | ( | 1189 | { |
1190 | otherlv_0='folder' | 1190 | $current = $this_FolderEntry_1.current; |
1191 | { | 1191 | afterParserOrEnumRuleCall(); |
1192 | newLeafNode(otherlv_0, grammarAccess.getFolderEntryAccess().getFolderKeyword_0()); | 1192 | } |
1193 | } | 1193 | ) |
1194 | ( | 1194 | ; |
1195 | ( | 1195 | |
1196 | { | 1196 | // Entry rule entryRuleModelEntry |
1197 | newCompositeNode(grammarAccess.getFolderEntryAccess().getPathFileParserRuleCall_1_0()); | 1197 | entryRuleModelEntry returns [EObject current=null]: |
1198 | } | 1198 | { newCompositeNode(grammarAccess.getModelEntryRule()); } |
1199 | lv_path_1_0=ruleFile | 1199 | iv_ruleModelEntry=ruleModelEntry |
1200 | { | 1200 | { $current=$iv_ruleModelEntry.current; } |
1201 | if ($current==null) { | 1201 | EOF; |
1202 | $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); | 1202 | |
1203 | } | 1203 | // Rule ModelEntry |
1204 | set( | 1204 | ruleModelEntry returns [EObject current=null] |
1205 | $current, | 1205 | @init { |
1206 | "path", | 1206 | enterRule(); |
1207 | lv_path_1_0, | 1207 | } |
1208 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 1208 | @after { |
1209 | afterParserOrEnumRuleCall(); | 1209 | leaveRule(); |
1210 | } | 1210 | }: |
1211 | ) | 1211 | ( |
1212 | ) | 1212 | ( |
1213 | ( | 1213 | { |
1214 | otherlv_2='excluding' | 1214 | newCompositeNode(grammarAccess.getModelEntryAccess().getPathFileParserRuleCall_0()); |
1215 | { | 1215 | } |
1216 | newLeafNode(otherlv_2, grammarAccess.getFolderEntryAccess().getExcludingKeyword_2_0()); | 1216 | lv_path_0_0=ruleFile |
1217 | } | 1217 | { |
1218 | otherlv_3='{' | 1218 | if ($current==null) { |
1219 | { | 1219 | $current = createModelElementForParent(grammarAccess.getModelEntryRule()); |
1220 | newLeafNode(otherlv_3, grammarAccess.getFolderEntryAccess().getLeftCurlyBracketKeyword_2_1()); | 1220 | } |
1221 | } | 1221 | set( |
1222 | ( | 1222 | $current, |
1223 | ( | 1223 | "path", |
1224 | { | 1224 | lv_path_0_0, |
1225 | newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_2_0()); | 1225 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); |
1226 | } | 1226 | afterParserOrEnumRuleCall(); |
1227 | lv_exclusion_4_0=ruleModelEntry | 1227 | } |
1228 | { | 1228 | ) |
1229 | if ($current==null) { | 1229 | ) |
1230 | $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); | 1230 | ; |
1231 | } | 1231 | |
1232 | add( | 1232 | // Entry rule entryRuleFolderEntry |
1233 | $current, | 1233 | entryRuleFolderEntry returns [EObject current=null]: |
1234 | "exclusion", | 1234 | { newCompositeNode(grammarAccess.getFolderEntryRule()); } |
1235 | lv_exclusion_4_0, | 1235 | iv_ruleFolderEntry=ruleFolderEntry |
1236 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); | 1236 | { $current=$iv_ruleFolderEntry.current; } |
1237 | afterParserOrEnumRuleCall(); | 1237 | EOF; |
1238 | } | 1238 | |
1239 | ) | 1239 | // Rule FolderEntry |
1240 | ) | 1240 | ruleFolderEntry returns [EObject current=null] |
1241 | ( | 1241 | @init { |
1242 | otherlv_5=',' | 1242 | enterRule(); |
1243 | { | 1243 | } |
1244 | newLeafNode(otherlv_5, grammarAccess.getFolderEntryAccess().getCommaKeyword_2_3_0()); | 1244 | @after { |
1245 | } | 1245 | leaveRule(); |
1246 | ( | 1246 | }: |
1247 | ( | 1247 | ( |
1248 | { | 1248 | otherlv_0='folder' |
1249 | newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_3_1_0()); | 1249 | { |
1250 | } | 1250 | newLeafNode(otherlv_0, grammarAccess.getFolderEntryAccess().getFolderKeyword_0()); |
1251 | lv_exclusion_6_0=ruleModelEntry | 1251 | } |
1252 | { | 1252 | ( |
1253 | if ($current==null) { | 1253 | ( |
1254 | $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); | 1254 | { |
1255 | } | 1255 | newCompositeNode(grammarAccess.getFolderEntryAccess().getPathFileParserRuleCall_1_0()); |
1256 | add( | 1256 | } |
1257 | $current, | 1257 | lv_path_1_0=ruleFile |
1258 | "exclusion", | 1258 | { |
1259 | lv_exclusion_6_0, | 1259 | if ($current==null) { |
1260 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); | 1260 | $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); |
1261 | afterParserOrEnumRuleCall(); | 1261 | } |
1262 | } | 1262 | set( |
1263 | ) | 1263 | $current, |
1264 | ) | 1264 | "path", |
1265 | )* | 1265 | lv_path_1_0, |
1266 | otherlv_7='}' | 1266 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); |
1267 | { | 1267 | afterParserOrEnumRuleCall(); |
1268 | newLeafNode(otherlv_7, grammarAccess.getFolderEntryAccess().getRightCurlyBracketKeyword_2_4()); | 1268 | } |
1269 | } | 1269 | ) |
1270 | )? | 1270 | ) |
1271 | ) | 1271 | ( |
1272 | ; | 1272 | otherlv_2='excluding' |
1273 | 1273 | { | |
1274 | // Entry rule entryRulePartialModelDeclaration | 1274 | newLeafNode(otherlv_2, grammarAccess.getFolderEntryAccess().getExcludingKeyword_2_0()); |
1275 | entryRulePartialModelDeclaration returns [EObject current=null]: | 1275 | } |
1276 | { newCompositeNode(grammarAccess.getPartialModelDeclarationRule()); } | 1276 | otherlv_3='{' |
1277 | iv_rulePartialModelDeclaration=rulePartialModelDeclaration | 1277 | { |
1278 | { $current=$iv_rulePartialModelDeclaration.current; } | 1278 | newLeafNode(otherlv_3, grammarAccess.getFolderEntryAccess().getLeftCurlyBracketKeyword_2_1()); |
1279 | EOF; | 1279 | } |
1280 | 1280 | ( | |
1281 | // Rule PartialModelDeclaration | 1281 | ( |
1282 | rulePartialModelDeclaration returns [EObject current=null] | 1282 | { |
1283 | @init { | 1283 | newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_2_0()); |
1284 | enterRule(); | 1284 | } |
1285 | } | 1285 | lv_exclusion_4_0=ruleModelEntry |
1286 | @after { | 1286 | { |
1287 | leaveRule(); | 1287 | if ($current==null) { |
1288 | }: | 1288 | $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); |
1289 | ( | 1289 | } |
1290 | otherlv_0='models' | 1290 | add( |
1291 | { | 1291 | $current, |
1292 | newLeafNode(otherlv_0, grammarAccess.getPartialModelDeclarationAccess().getModelsKeyword_0()); | 1292 | "exclusion", |
1293 | } | 1293 | lv_exclusion_4_0, |
1294 | ( | 1294 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); |
1295 | ( | 1295 | afterParserOrEnumRuleCall(); |
1296 | lv_name_1_0=RULE_ID | 1296 | } |
1297 | { | 1297 | ) |
1298 | newLeafNode(lv_name_1_0, grammarAccess.getPartialModelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | 1298 | ) |
1299 | } | 1299 | ( |
1300 | { | 1300 | otherlv_5=',' |
1301 | if ($current==null) { | 1301 | { |
1302 | $current = createModelElement(grammarAccess.getPartialModelDeclarationRule()); | 1302 | newLeafNode(otherlv_5, grammarAccess.getFolderEntryAccess().getCommaKeyword_2_3_0()); |
1303 | } | 1303 | } |
1304 | setWithLastConsumed( | 1304 | ( |
1305 | $current, | 1305 | ( |
1306 | "name", | 1306 | { |
1307 | lv_name_1_0, | 1307 | newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_3_1_0()); |
1308 | "org.eclipse.xtext.common.Terminals.ID"); | 1308 | } |
1309 | } | 1309 | lv_exclusion_6_0=ruleModelEntry |
1310 | ) | 1310 | { |
1311 | ) | 1311 | if ($current==null) { |
1312 | ( | 1312 | $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); |
1313 | ( | 1313 | } |
1314 | { | 1314 | add( |
1315 | newCompositeNode(grammarAccess.getPartialModelDeclarationAccess().getSpecificationPartialModelSpecificationParserRuleCall_2_0()); | 1315 | $current, |
1316 | } | 1316 | "exclusion", |
1317 | lv_specification_2_0=rulePartialModelSpecification | 1317 | lv_exclusion_6_0, |
1318 | { | 1318 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); |
1319 | if ($current==null) { | 1319 | afterParserOrEnumRuleCall(); |
1320 | $current = createModelElementForParent(grammarAccess.getPartialModelDeclarationRule()); | 1320 | } |
1321 | } | 1321 | ) |
1322 | set( | 1322 | ) |
1323 | $current, | 1323 | )* |
1324 | "specification", | 1324 | otherlv_7='}' |
1325 | lv_specification_2_0, | 1325 | { |
1326 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelSpecification"); | 1326 | newLeafNode(otherlv_7, grammarAccess.getFolderEntryAccess().getRightCurlyBracketKeyword_2_4()); |
1327 | afterParserOrEnumRuleCall(); | 1327 | } |
1328 | } | 1328 | )? |
1329 | ) | 1329 | ) |
1330 | ) | 1330 | ; |
1331 | ) | 1331 | |
1332 | ; | 1332 | // Entry rule entryRulePartialModelDeclaration |
1333 | 1333 | entryRulePartialModelDeclaration returns [EObject current=null]: | |
1334 | // Entry rule entryRulePartialModelReference | 1334 | { newCompositeNode(grammarAccess.getPartialModelDeclarationRule()); } |
1335 | entryRulePartialModelReference returns [EObject current=null]: | 1335 | iv_rulePartialModelDeclaration=rulePartialModelDeclaration |
1336 | { newCompositeNode(grammarAccess.getPartialModelReferenceRule()); } | 1336 | { $current=$iv_rulePartialModelDeclaration.current; } |
1337 | iv_rulePartialModelReference=rulePartialModelReference | 1337 | EOF; |
1338 | { $current=$iv_rulePartialModelReference.current; } | 1338 | |
1339 | EOF; | 1339 | // Rule PartialModelDeclaration |
1340 | 1340 | rulePartialModelDeclaration returns [EObject current=null] | |
1341 | // Rule PartialModelReference | 1341 | @init { |
1342 | rulePartialModelReference returns [EObject current=null] | 1342 | enterRule(); |
1343 | @init { | 1343 | } |
1344 | enterRule(); | 1344 | @after { |
1345 | } | 1345 | leaveRule(); |
1346 | @after { | 1346 | }: |
1347 | leaveRule(); | 1347 | ( |
1348 | }: | 1348 | otherlv_0='models' |
1349 | ( | 1349 | { |
1350 | ( | 1350 | newLeafNode(otherlv_0, grammarAccess.getPartialModelDeclarationAccess().getModelsKeyword_0()); |
1351 | { | 1351 | } |
1352 | if ($current==null) { | 1352 | ( |
1353 | $current = createModelElement(grammarAccess.getPartialModelReferenceRule()); | 1353 | ( |
1354 | } | 1354 | lv_name_1_0=RULE_ID |
1355 | } | 1355 | { |
1356 | otherlv_0=RULE_ID | 1356 | newLeafNode(lv_name_1_0, grammarAccess.getPartialModelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); |
1357 | { | 1357 | } |
1358 | newLeafNode(otherlv_0, grammarAccess.getPartialModelReferenceAccess().getReferredPartialModelDeclarationCrossReference_0()); | 1358 | { |
1359 | } | 1359 | if ($current==null) { |
1360 | ) | 1360 | $current = createModelElement(grammarAccess.getPartialModelDeclarationRule()); |
1361 | ) | 1361 | } |
1362 | ; | 1362 | setWithLastConsumed( |
1363 | 1363 | $current, | |
1364 | // Entry rule entryRulePartialModel | 1364 | "name", |
1365 | entryRulePartialModel returns [EObject current=null]: | 1365 | lv_name_1_0, |
1366 | { newCompositeNode(grammarAccess.getPartialModelRule()); } | 1366 | "org.eclipse.xtext.common.Terminals.ID"); |
1367 | iv_rulePartialModel=rulePartialModel | 1367 | } |
1368 | { $current=$iv_rulePartialModel.current; } | 1368 | ) |
1369 | EOF; | 1369 | ) |
1370 | 1370 | ( | |
1371 | // Rule PartialModel | 1371 | ( |
1372 | rulePartialModel returns [EObject current=null] | 1372 | { |
1373 | @init { | 1373 | newCompositeNode(grammarAccess.getPartialModelDeclarationAccess().getSpecificationPartialModelSpecificationParserRuleCall_2_0()); |
1374 | enterRule(); | 1374 | } |
1375 | } | 1375 | lv_specification_2_0=rulePartialModelSpecification |
1376 | @after { | 1376 | { |
1377 | leaveRule(); | 1377 | if ($current==null) { |
1378 | }: | 1378 | $current = createModelElementForParent(grammarAccess.getPartialModelDeclarationRule()); |
1379 | ( | 1379 | } |
1380 | { | 1380 | set( |
1381 | newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelSpecificationParserRuleCall_0()); | 1381 | $current, |
1382 | } | 1382 | "specification", |
1383 | this_PartialModelSpecification_0=rulePartialModelSpecification | 1383 | lv_specification_2_0, |
1384 | { | 1384 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelSpecification"); |
1385 | $current = $this_PartialModelSpecification_0.current; | 1385 | afterParserOrEnumRuleCall(); |
1386 | afterParserOrEnumRuleCall(); | 1386 | } |
1387 | } | 1387 | ) |
1388 | | | 1388 | ) |
1389 | { | 1389 | ) |
1390 | newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelReferenceParserRuleCall_1()); | 1390 | ; |
1391 | } | 1391 | |
1392 | this_PartialModelReference_1=rulePartialModelReference | 1392 | // Entry rule entryRulePartialModelReference |
1393 | { | 1393 | entryRulePartialModelReference returns [EObject current=null]: |
1394 | $current = $this_PartialModelReference_1.current; | 1394 | { newCompositeNode(grammarAccess.getPartialModelReferenceRule()); } |
1395 | afterParserOrEnumRuleCall(); | 1395 | iv_rulePartialModelReference=rulePartialModelReference |
1396 | } | 1396 | { $current=$iv_rulePartialModelReference.current; } |
1397 | ) | 1397 | EOF; |
1398 | ; | 1398 | |
1399 | 1399 | // Rule PartialModelReference | |
1400 | // Entry rule entryRulePatternSpecification | 1400 | rulePartialModelReference returns [EObject current=null] |
1401 | entryRulePatternSpecification returns [EObject current=null]: | 1401 | @init { |
1402 | { newCompositeNode(grammarAccess.getPatternSpecificationRule()); } | 1402 | enterRule(); |
1403 | iv_rulePatternSpecification=rulePatternSpecification | 1403 | } |
1404 | { $current=$iv_rulePatternSpecification.current; } | 1404 | @after { |
1405 | EOF; | 1405 | leaveRule(); |
1406 | 1406 | }: | |
1407 | // Rule PatternSpecification | 1407 | ( |
1408 | rulePatternSpecification returns [EObject current=null] | 1408 | ( |
1409 | @init { | 1409 | { |
1410 | enterRule(); | 1410 | if ($current==null) { |
1411 | } | 1411 | $current = createModelElement(grammarAccess.getPartialModelReferenceRule()); |
1412 | @after { | 1412 | } |
1413 | leaveRule(); | 1413 | } |
1414 | }: | 1414 | otherlv_0=RULE_ID |
1415 | ( | 1415 | { |
1416 | otherlv_0='{' | 1416 | newLeafNode(otherlv_0, grammarAccess.getPartialModelReferenceAccess().getReferredPartialModelDeclarationCrossReference_0()); |
1417 | { | 1417 | } |
1418 | newLeafNode(otherlv_0, grammarAccess.getPatternSpecificationAccess().getLeftCurlyBracketKeyword_0()); | 1418 | ) |
1419 | } | 1419 | ) |
1420 | ( | 1420 | ; |
1421 | ( | 1421 | |
1422 | { | 1422 | // Entry rule entryRulePartialModel |
1423 | newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_1_0()); | 1423 | entryRulePartialModel returns [EObject current=null]: |
1424 | } | 1424 | { newCompositeNode(grammarAccess.getPartialModelRule()); } |
1425 | lv_entries_1_0=rulePatternEntry | 1425 | iv_rulePartialModel=rulePartialModel |
1426 | { | 1426 | { $current=$iv_rulePartialModel.current; } |
1427 | if ($current==null) { | 1427 | EOF; |
1428 | $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); | 1428 | |
1429 | } | 1429 | // Rule PartialModel |
1430 | add( | 1430 | rulePartialModel returns [EObject current=null] |
1431 | $current, | 1431 | @init { |
1432 | "entries", | 1432 | enterRule(); |
1433 | lv_entries_1_0, | 1433 | } |
1434 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); | 1434 | @after { |
1435 | afterParserOrEnumRuleCall(); | 1435 | leaveRule(); |
1436 | } | 1436 | }: |
1437 | ) | 1437 | ( |
1438 | ) | 1438 | { |
1439 | ( | 1439 | newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelSpecificationParserRuleCall_0()); |
1440 | otherlv_2=',' | 1440 | } |
1441 | { | 1441 | this_PartialModelSpecification_0=rulePartialModelSpecification |
1442 | newLeafNode(otherlv_2, grammarAccess.getPatternSpecificationAccess().getCommaKeyword_2_0()); | 1442 | { |
1443 | } | 1443 | $current = $this_PartialModelSpecification_0.current; |
1444 | ( | 1444 | afterParserOrEnumRuleCall(); |
1445 | ( | 1445 | } |
1446 | { | 1446 | | |
1447 | newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_2_1_0()); | 1447 | { |
1448 | } | 1448 | newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelReferenceParserRuleCall_1()); |
1449 | lv_entries_3_0=rulePatternEntry | 1449 | } |
1450 | { | 1450 | this_PartialModelReference_1=rulePartialModelReference |
1451 | if ($current==null) { | 1451 | { |
1452 | $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); | 1452 | $current = $this_PartialModelReference_1.current; |
1453 | } | 1453 | afterParserOrEnumRuleCall(); |
1454 | add( | 1454 | } |
1455 | $current, | 1455 | ) |
1456 | "entries", | 1456 | ; |
1457 | lv_entries_3_0, | 1457 | |
1458 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); | 1458 | // Entry rule entryRulePatternSpecification |
1459 | afterParserOrEnumRuleCall(); | 1459 | entryRulePatternSpecification returns [EObject current=null]: |
1460 | } | 1460 | { newCompositeNode(grammarAccess.getPatternSpecificationRule()); } |
1461 | ) | 1461 | iv_rulePatternSpecification=rulePatternSpecification |
1462 | ) | 1462 | { $current=$iv_rulePatternSpecification.current; } |
1463 | )* | 1463 | EOF; |
1464 | otherlv_4='}' | 1464 | |
1465 | { | 1465 | // Rule PatternSpecification |
1466 | newLeafNode(otherlv_4, grammarAccess.getPatternSpecificationAccess().getRightCurlyBracketKeyword_3()); | 1466 | rulePatternSpecification returns [EObject current=null] |
1467 | } | 1467 | @init { |
1468 | ) | 1468 | enterRule(); |
1469 | ; | 1469 | } |
1470 | 1470 | @after { | |
1471 | // Entry rule entryRulePatternEntry | 1471 | leaveRule(); |
1472 | entryRulePatternEntry returns [EObject current=null]: | 1472 | }: |
1473 | { newCompositeNode(grammarAccess.getPatternEntryRule()); } | 1473 | ( |
1474 | iv_rulePatternEntry=rulePatternEntry | 1474 | otherlv_0='{' |
1475 | { $current=$iv_rulePatternEntry.current; } | 1475 | { |
1476 | EOF; | 1476 | newLeafNode(otherlv_0, grammarAccess.getPatternSpecificationAccess().getLeftCurlyBracketKeyword_0()); |
1477 | 1477 | } | |
1478 | // Rule PatternEntry | 1478 | ( |
1479 | rulePatternEntry returns [EObject current=null] | 1479 | ( |
1480 | @init { | 1480 | { |
1481 | enterRule(); | 1481 | newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_1_0()); |
1482 | } | 1482 | } |
1483 | @after { | 1483 | lv_entries_1_0=rulePatternEntry |
1484 | leaveRule(); | 1484 | { |
1485 | }: | 1485 | if ($current==null) { |
1486 | ( | 1486 | $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); |
1487 | { | 1487 | } |
1488 | newCompositeNode(grammarAccess.getPatternEntryAccess().getPatternElementParserRuleCall_0()); | 1488 | add( |
1489 | } | 1489 | $current, |
1490 | this_PatternElement_0=rulePatternElement | 1490 | "entries", |
1491 | { | 1491 | lv_entries_1_0, |
1492 | $current = $this_PatternElement_0.current; | 1492 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); |
1493 | afterParserOrEnumRuleCall(); | 1493 | afterParserOrEnumRuleCall(); |
1494 | } | 1494 | } |
1495 | | | 1495 | ) |
1496 | { | 1496 | ) |
1497 | newCompositeNode(grammarAccess.getPatternEntryAccess().getAllPatternEntryParserRuleCall_1()); | 1497 | ( |
1498 | } | 1498 | otherlv_2=',' |
1499 | this_AllPatternEntry_1=ruleAllPatternEntry | 1499 | { |
1500 | { | 1500 | newLeafNode(otherlv_2, grammarAccess.getPatternSpecificationAccess().getCommaKeyword_2_0()); |
1501 | $current = $this_AllPatternEntry_1.current; | 1501 | } |
1502 | afterParserOrEnumRuleCall(); | 1502 | ( |
1503 | } | 1503 | ( |
1504 | ) | 1504 | { |
1505 | ; | 1505 | newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_2_1_0()); |
1506 | 1506 | } | |
1507 | // Entry rule entryRuleAllPatternEntry | 1507 | lv_entries_3_0=rulePatternEntry |
1508 | entryRuleAllPatternEntry returns [EObject current=null]: | 1508 | { |
1509 | { newCompositeNode(grammarAccess.getAllPatternEntryRule()); } | 1509 | if ($current==null) { |
1510 | iv_ruleAllPatternEntry=ruleAllPatternEntry | 1510 | $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); |
1511 | { $current=$iv_ruleAllPatternEntry.current; } | 1511 | } |
1512 | EOF; | 1512 | add( |
1513 | 1513 | $current, | |
1514 | // Rule AllPatternEntry | 1514 | "entries", |
1515 | ruleAllPatternEntry returns [EObject current=null] | 1515 | lv_entries_3_0, |
1516 | @init { | 1516 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); |
1517 | enterRule(); | 1517 | afterParserOrEnumRuleCall(); |
1518 | } | 1518 | } |
1519 | @after { | 1519 | ) |
1520 | leaveRule(); | 1520 | ) |
1521 | }: | 1521 | )* |
1522 | ( | 1522 | otherlv_4='}' |
1523 | otherlv_0='package' | 1523 | { |
1524 | { | 1524 | newLeafNode(otherlv_4, grammarAccess.getPatternSpecificationAccess().getRightCurlyBracketKeyword_3()); |
1525 | newLeafNode(otherlv_0, grammarAccess.getAllPatternEntryAccess().getPackageKeyword_0()); | 1525 | } |
1526 | } | 1526 | ) |
1527 | ( | 1527 | ; |
1528 | ( | 1528 | |
1529 | { | 1529 | // Entry rule entryRulePatternEntry |
1530 | if ($current==null) { | 1530 | entryRulePatternEntry returns [EObject current=null]: |
1531 | $current = createModelElement(grammarAccess.getAllPatternEntryRule()); | 1531 | { newCompositeNode(grammarAccess.getPatternEntryRule()); } |
1532 | } | 1532 | iv_rulePatternEntry=rulePatternEntry |
1533 | } | 1533 | { $current=$iv_rulePatternEntry.current; } |
1534 | { | 1534 | EOF; |
1535 | newCompositeNode(grammarAccess.getAllPatternEntryAccess().getPackagePatternModelCrossReference_1_0()); | 1535 | |
1536 | } | 1536 | // Rule PatternEntry |
1537 | ruleQualifiedName | 1537 | rulePatternEntry returns [EObject current=null] |
1538 | { | 1538 | @init { |
1539 | afterParserOrEnumRuleCall(); | 1539 | enterRule(); |
1540 | } | 1540 | } |
1541 | ) | 1541 | @after { |
1542 | ) | 1542 | leaveRule(); |
1543 | ( | 1543 | }: |
1544 | otherlv_2='excluding' | 1544 | ( |
1545 | { | 1545 | { |
1546 | newLeafNode(otherlv_2, grammarAccess.getAllPatternEntryAccess().getExcludingKeyword_2_0()); | 1546 | newCompositeNode(grammarAccess.getPatternEntryAccess().getPatternElementParserRuleCall_0()); |
1547 | } | 1547 | } |
1548 | otherlv_3='{' | 1548 | this_PatternElement_0=rulePatternElement |
1549 | { | 1549 | { |
1550 | newLeafNode(otherlv_3, grammarAccess.getAllPatternEntryAccess().getLeftCurlyBracketKeyword_2_1()); | 1550 | $current = $this_PatternElement_0.current; |
1551 | } | 1551 | afterParserOrEnumRuleCall(); |
1552 | ( | 1552 | } |
1553 | ( | 1553 | | |
1554 | { | 1554 | { |
1555 | newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_2_0()); | 1555 | newCompositeNode(grammarAccess.getPatternEntryAccess().getAllPatternEntryParserRuleCall_1()); |
1556 | } | 1556 | } |
1557 | lv_exclusuion_4_0=rulePatternElement | 1557 | this_AllPatternEntry_1=ruleAllPatternEntry |
1558 | { | 1558 | { |
1559 | if ($current==null) { | 1559 | $current = $this_AllPatternEntry_1.current; |
1560 | $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); | 1560 | afterParserOrEnumRuleCall(); |
1561 | } | 1561 | } |
1562 | add( | 1562 | ) |
1563 | $current, | 1563 | ; |
1564 | "exclusuion", | 1564 | |
1565 | lv_exclusuion_4_0, | 1565 | // Entry rule entryRuleAllPatternEntry |
1566 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); | 1566 | entryRuleAllPatternEntry returns [EObject current=null]: |
1567 | afterParserOrEnumRuleCall(); | 1567 | { newCompositeNode(grammarAccess.getAllPatternEntryRule()); } |
1568 | } | 1568 | iv_ruleAllPatternEntry=ruleAllPatternEntry |
1569 | ) | 1569 | { $current=$iv_ruleAllPatternEntry.current; } |
1570 | ) | 1570 | EOF; |
1571 | ( | 1571 | |
1572 | otherlv_5=',' | 1572 | // Rule AllPatternEntry |
1573 | { | 1573 | ruleAllPatternEntry returns [EObject current=null] |
1574 | newLeafNode(otherlv_5, grammarAccess.getAllPatternEntryAccess().getCommaKeyword_2_3_0()); | 1574 | @init { |
1575 | } | 1575 | enterRule(); |
1576 | ( | 1576 | } |
1577 | ( | 1577 | @after { |
1578 | { | 1578 | leaveRule(); |
1579 | newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_3_1_0()); | 1579 | }: |
1580 | } | 1580 | ( |
1581 | lv_exclusuion_6_0=rulePatternElement | 1581 | otherlv_0='package' |
1582 | { | 1582 | { |
1583 | if ($current==null) { | 1583 | newLeafNode(otherlv_0, grammarAccess.getAllPatternEntryAccess().getPackageKeyword_0()); |
1584 | $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); | 1584 | } |
1585 | } | 1585 | ( |
1586 | add( | 1586 | ( |
1587 | $current, | 1587 | { |
1588 | "exclusuion", | 1588 | if ($current==null) { |
1589 | lv_exclusuion_6_0, | 1589 | $current = createModelElement(grammarAccess.getAllPatternEntryRule()); |
1590 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); | 1590 | } |
1591 | afterParserOrEnumRuleCall(); | 1591 | } |
1592 | } | 1592 | { |
1593 | ) | 1593 | newCompositeNode(grammarAccess.getAllPatternEntryAccess().getPackagePatternModelCrossReference_1_0()); |
1594 | ) | 1594 | } |
1595 | )* | 1595 | ruleQualifiedName |
1596 | otherlv_7='}' | 1596 | { |
1597 | { | 1597 | afterParserOrEnumRuleCall(); |
1598 | newLeafNode(otherlv_7, grammarAccess.getAllPatternEntryAccess().getRightCurlyBracketKeyword_2_4()); | 1598 | } |
1599 | } | 1599 | ) |
1600 | )? | 1600 | ) |
1601 | ) | 1601 | ( |
1602 | ; | 1602 | otherlv_2='excluding' |
1603 | 1603 | { | |
1604 | // Entry rule entryRulePatternElement | 1604 | newLeafNode(otherlv_2, grammarAccess.getAllPatternEntryAccess().getExcludingKeyword_2_0()); |
1605 | entryRulePatternElement returns [EObject current=null]: | 1605 | } |
1606 | { newCompositeNode(grammarAccess.getPatternElementRule()); } | 1606 | otherlv_3='{' |
1607 | iv_rulePatternElement=rulePatternElement | 1607 | { |
1608 | { $current=$iv_rulePatternElement.current; } | 1608 | newLeafNode(otherlv_3, grammarAccess.getAllPatternEntryAccess().getLeftCurlyBracketKeyword_2_1()); |
1609 | EOF; | 1609 | } |
1610 | 1610 | ( | |
1611 | // Rule PatternElement | 1611 | ( |
1612 | rulePatternElement returns [EObject current=null] | 1612 | { |
1613 | @init { | 1613 | newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_2_0()); |
1614 | enterRule(); | 1614 | } |
1615 | } | 1615 | lv_exclusuion_4_0=rulePatternElement |
1616 | @after { | 1616 | { |
1617 | leaveRule(); | 1617 | if ($current==null) { |
1618 | }: | 1618 | $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); |
1619 | ( | 1619 | } |
1620 | ( | 1620 | add( |
1621 | ( | 1621 | $current, |
1622 | ( | 1622 | "exclusuion", |
1623 | { | 1623 | lv_exclusuion_4_0, |
1624 | if ($current==null) { | 1624 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); |
1625 | $current = createModelElement(grammarAccess.getPatternElementRule()); | 1625 | afterParserOrEnumRuleCall(); |
1626 | } | 1626 | } |
1627 | } | 1627 | ) |
1628 | { | 1628 | ) |
1629 | newCompositeNode(grammarAccess.getPatternElementAccess().getPackagePatternModelCrossReference_0_0_0()); | 1629 | ( |
1630 | } | 1630 | otherlv_5=',' |
1631 | ruleQualifiedName | 1631 | { |
1632 | { | 1632 | newLeafNode(otherlv_5, grammarAccess.getAllPatternEntryAccess().getCommaKeyword_2_3_0()); |
1633 | afterParserOrEnumRuleCall(); | 1633 | } |
1634 | } | 1634 | ( |
1635 | ) | 1635 | ( |
1636 | ) | 1636 | { |
1637 | otherlv_1='::' | 1637 | newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_3_1_0()); |
1638 | { | 1638 | } |
1639 | newLeafNode(otherlv_1, grammarAccess.getPatternElementAccess().getColonColonKeyword_0_1()); | 1639 | lv_exclusuion_6_0=rulePatternElement |
1640 | } | 1640 | { |
1641 | )? | 1641 | if ($current==null) { |
1642 | ( | 1642 | $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); |
1643 | ( | 1643 | } |
1644 | { | 1644 | add( |
1645 | if ($current==null) { | 1645 | $current, |
1646 | $current = createModelElement(grammarAccess.getPatternElementRule()); | 1646 | "exclusuion", |
1647 | } | 1647 | lv_exclusuion_6_0, |
1648 | } | 1648 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); |
1649 | otherlv_2=RULE_ID | 1649 | afterParserOrEnumRuleCall(); |
1650 | { | 1650 | } |
1651 | newLeafNode(otherlv_2, grammarAccess.getPatternElementAccess().getPatternPatternCrossReference_1_0()); | 1651 | ) |
1652 | } | 1652 | ) |
1653 | ) | 1653 | )* |
1654 | ) | 1654 | otherlv_7='}' |
1655 | ) | 1655 | { |
1656 | ; | 1656 | newLeafNode(otherlv_7, grammarAccess.getAllPatternEntryAccess().getRightCurlyBracketKeyword_2_4()); |
1657 | 1657 | } | |
1658 | // Entry rule entryRuleGraphPatternDeclaration | 1658 | )? |
1659 | entryRuleGraphPatternDeclaration returns [EObject current=null]: | 1659 | ) |
1660 | { newCompositeNode(grammarAccess.getGraphPatternDeclarationRule()); } | 1660 | ; |
1661 | iv_ruleGraphPatternDeclaration=ruleGraphPatternDeclaration | 1661 | |
1662 | { $current=$iv_ruleGraphPatternDeclaration.current; } | 1662 | // Entry rule entryRulePatternElement |
1663 | EOF; | 1663 | entryRulePatternElement returns [EObject current=null]: |
1664 | 1664 | { newCompositeNode(grammarAccess.getPatternElementRule()); } | |
1665 | // Rule GraphPatternDeclaration | 1665 | iv_rulePatternElement=rulePatternElement |
1666 | ruleGraphPatternDeclaration returns [EObject current=null] | 1666 | { $current=$iv_rulePatternElement.current; } |
1667 | @init { | 1667 | EOF; |
1668 | enterRule(); | 1668 | |
1669 | } | 1669 | // Rule PatternElement |
1670 | @after { | 1670 | rulePatternElement returns [EObject current=null] |
1671 | leaveRule(); | 1671 | @init { |
1672 | }: | 1672 | enterRule(); |
1673 | ( | 1673 | } |
1674 | otherlv_0='constraints' | 1674 | @after { |
1675 | { | 1675 | leaveRule(); |
1676 | newLeafNode(otherlv_0, grammarAccess.getGraphPatternDeclarationAccess().getConstraintsKeyword_0()); | 1676 | }: |
1677 | } | 1677 | ( |
1678 | ( | 1678 | ( |
1679 | ( | 1679 | ( |
1680 | lv_name_1_0=RULE_ID | 1680 | ( |
1681 | { | 1681 | { |
1682 | newLeafNode(lv_name_1_0, grammarAccess.getGraphPatternDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | 1682 | if ($current==null) { |
1683 | } | 1683 | $current = createModelElement(grammarAccess.getPatternElementRule()); |
1684 | { | 1684 | } |
1685 | if ($current==null) { | 1685 | } |
1686 | $current = createModelElement(grammarAccess.getGraphPatternDeclarationRule()); | 1686 | { |
1687 | } | 1687 | newCompositeNode(grammarAccess.getPatternElementAccess().getPackagePatternModelCrossReference_0_0_0()); |
1688 | setWithLastConsumed( | 1688 | } |
1689 | $current, | 1689 | ruleQualifiedName |
1690 | "name", | 1690 | { |
1691 | lv_name_1_0, | 1691 | afterParserOrEnumRuleCall(); |
1692 | "org.eclipse.xtext.common.Terminals.ID"); | 1692 | } |
1693 | } | 1693 | ) |
1694 | ) | 1694 | ) |
1695 | ) | 1695 | otherlv_1='::' |
1696 | ( | 1696 | { |
1697 | ( | 1697 | newLeafNode(otherlv_1, grammarAccess.getPatternElementAccess().getColonColonKeyword_0_1()); |
1698 | { | 1698 | } |
1699 | newCompositeNode(grammarAccess.getGraphPatternDeclarationAccess().getSpecificationPatternSpecificationParserRuleCall_2_0()); | 1699 | )? |
1700 | } | 1700 | ( |
1701 | lv_specification_2_0=rulePatternSpecification | 1701 | ( |
1702 | { | 1702 | { |
1703 | if ($current==null) { | 1703 | if ($current==null) { |
1704 | $current = createModelElementForParent(grammarAccess.getGraphPatternDeclarationRule()); | 1704 | $current = createModelElement(grammarAccess.getPatternElementRule()); |
1705 | } | 1705 | } |
1706 | set( | 1706 | } |
1707 | $current, | 1707 | otherlv_2=RULE_ID |
1708 | "specification", | 1708 | { |
1709 | lv_specification_2_0, | 1709 | newLeafNode(otherlv_2, grammarAccess.getPatternElementAccess().getPatternPatternCrossReference_1_0()); |
1710 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternSpecification"); | 1710 | } |
1711 | afterParserOrEnumRuleCall(); | 1711 | ) |
1712 | } | 1712 | ) |
1713 | ) | 1713 | ) |
1714 | ) | 1714 | ; |
1715 | ) | 1715 | |
1716 | ; | 1716 | // Entry rule entryRuleGraphPatternDeclaration |
1717 | 1717 | entryRuleGraphPatternDeclaration returns [EObject current=null]: | |
1718 | // Entry rule entryRuleGraphPatternReference | 1718 | { newCompositeNode(grammarAccess.getGraphPatternDeclarationRule()); } |
1719 | entryRuleGraphPatternReference returns [EObject current=null]: | 1719 | iv_ruleGraphPatternDeclaration=ruleGraphPatternDeclaration |
1720 | { newCompositeNode(grammarAccess.getGraphPatternReferenceRule()); } | 1720 | { $current=$iv_ruleGraphPatternDeclaration.current; } |
1721 | iv_ruleGraphPatternReference=ruleGraphPatternReference | 1721 | EOF; |
1722 | { $current=$iv_ruleGraphPatternReference.current; } | 1722 | |
1723 | EOF; | 1723 | // Rule GraphPatternDeclaration |
1724 | 1724 | ruleGraphPatternDeclaration returns [EObject current=null] | |
1725 | // Rule GraphPatternReference | 1725 | @init { |
1726 | ruleGraphPatternReference returns [EObject current=null] | 1726 | enterRule(); |
1727 | @init { | 1727 | } |
1728 | enterRule(); | 1728 | @after { |
1729 | } | 1729 | leaveRule(); |
1730 | @after { | 1730 | }: |
1731 | leaveRule(); | 1731 | ( |
1732 | }: | 1732 | otherlv_0='constraints' |
1733 | ( | 1733 | { |
1734 | ( | 1734 | newLeafNode(otherlv_0, grammarAccess.getGraphPatternDeclarationAccess().getConstraintsKeyword_0()); |
1735 | { | 1735 | } |
1736 | if ($current==null) { | 1736 | ( |
1737 | $current = createModelElement(grammarAccess.getGraphPatternReferenceRule()); | 1737 | ( |
1738 | } | 1738 | lv_name_1_0=RULE_ID |
1739 | } | 1739 | { |
1740 | otherlv_0=RULE_ID | 1740 | newLeafNode(lv_name_1_0, grammarAccess.getGraphPatternDeclarationAccess().getNameIDTerminalRuleCall_1_0()); |
1741 | { | 1741 | } |
1742 | newLeafNode(otherlv_0, grammarAccess.getGraphPatternReferenceAccess().getReferredGraphPatternDeclarationCrossReference_0()); | 1742 | { |
1743 | } | 1743 | if ($current==null) { |
1744 | ) | 1744 | $current = createModelElement(grammarAccess.getGraphPatternDeclarationRule()); |
1745 | ) | 1745 | } |
1746 | ; | 1746 | setWithLastConsumed( |
1747 | 1747 | $current, | |
1748 | // Entry rule entryRuleGraphPattern | 1748 | "name", |
1749 | entryRuleGraphPattern returns [EObject current=null]: | 1749 | lv_name_1_0, |
1750 | { newCompositeNode(grammarAccess.getGraphPatternRule()); } | 1750 | "org.eclipse.xtext.common.Terminals.ID"); |
1751 | iv_ruleGraphPattern=ruleGraphPattern | 1751 | } |
1752 | { $current=$iv_ruleGraphPattern.current; } | 1752 | ) |
1753 | EOF; | 1753 | ) |
1754 | 1754 | ( | |
1755 | // Rule GraphPattern | 1755 | ( |
1756 | ruleGraphPattern returns [EObject current=null] | 1756 | { |
1757 | @init { | 1757 | newCompositeNode(grammarAccess.getGraphPatternDeclarationAccess().getSpecificationPatternSpecificationParserRuleCall_2_0()); |
1758 | enterRule(); | 1758 | } |
1759 | } | 1759 | lv_specification_2_0=rulePatternSpecification |
1760 | @after { | 1760 | { |
1761 | leaveRule(); | 1761 | if ($current==null) { |
1762 | }: | 1762 | $current = createModelElementForParent(grammarAccess.getGraphPatternDeclarationRule()); |
1763 | ( | 1763 | } |
1764 | { | 1764 | set( |
1765 | newCompositeNode(grammarAccess.getGraphPatternAccess().getGraphPatternReferenceParserRuleCall_0()); | 1765 | $current, |
1766 | } | 1766 | "specification", |
1767 | this_GraphPatternReference_0=ruleGraphPatternReference | 1767 | lv_specification_2_0, |
1768 | { | 1768 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternSpecification"); |
1769 | $current = $this_GraphPatternReference_0.current; | 1769 | afterParserOrEnumRuleCall(); |
1770 | afterParserOrEnumRuleCall(); | 1770 | } |
1771 | } | 1771 | ) |
1772 | | | 1772 | ) |
1773 | { | 1773 | ) |
1774 | newCompositeNode(grammarAccess.getGraphPatternAccess().getPatternSpecificationParserRuleCall_1()); | 1774 | ; |
1775 | } | 1775 | |
1776 | this_PatternSpecification_1=rulePatternSpecification | 1776 | // Entry rule entryRuleGraphPatternReference |
1777 | { | 1777 | entryRuleGraphPatternReference returns [EObject current=null]: |
1778 | $current = $this_PatternSpecification_1.current; | 1778 | { newCompositeNode(grammarAccess.getGraphPatternReferenceRule()); } |
1779 | afterParserOrEnumRuleCall(); | 1779 | iv_ruleGraphPatternReference=ruleGraphPatternReference |
1780 | } | 1780 | { $current=$iv_ruleGraphPatternReference.current; } |
1781 | ) | 1781 | EOF; |
1782 | ; | 1782 | |
1783 | 1783 | // Rule GraphPatternReference | |
1784 | // Entry rule entryRuleConfigSpecification | 1784 | ruleGraphPatternReference returns [EObject current=null] |
1785 | entryRuleConfigSpecification returns [EObject current=null]: | 1785 | @init { |
1786 | { newCompositeNode(grammarAccess.getConfigSpecificationRule()); } | 1786 | enterRule(); |
1787 | iv_ruleConfigSpecification=ruleConfigSpecification | 1787 | } |
1788 | { $current=$iv_ruleConfigSpecification.current; } | 1788 | @after { |
1789 | EOF; | 1789 | leaveRule(); |
1790 | 1790 | }: | |
1791 | // Rule ConfigSpecification | 1791 | ( |
1792 | ruleConfigSpecification returns [EObject current=null] | 1792 | ( |
1793 | @init { | 1793 | { |
1794 | enterRule(); | 1794 | if ($current==null) { |
1795 | } | 1795 | $current = createModelElement(grammarAccess.getGraphPatternReferenceRule()); |
1796 | @after { | 1796 | } |
1797 | leaveRule(); | 1797 | } |
1798 | }: | 1798 | otherlv_0=RULE_ID |
1799 | ( | 1799 | { |
1800 | ( | 1800 | newLeafNode(otherlv_0, grammarAccess.getGraphPatternReferenceAccess().getReferredGraphPatternDeclarationCrossReference_0()); |
1801 | { | 1801 | } |
1802 | $current = forceCreateModelElement( | 1802 | ) |
1803 | grammarAccess.getConfigSpecificationAccess().getConfigSpecificationAction_0(), | 1803 | ) |
1804 | $current); | 1804 | ; |
1805 | } | 1805 | |
1806 | ) | 1806 | // Entry rule entryRuleGraphPattern |
1807 | otherlv_1='{' | 1807 | entryRuleGraphPattern returns [EObject current=null]: |
1808 | { | 1808 | { newCompositeNode(grammarAccess.getGraphPatternRule()); } |
1809 | newLeafNode(otherlv_1, grammarAccess.getConfigSpecificationAccess().getLeftCurlyBracketKeyword_1()); | 1809 | iv_ruleGraphPattern=ruleGraphPattern |
1810 | } | 1810 | { $current=$iv_ruleGraphPattern.current; } |
1811 | ( | 1811 | EOF; |
1812 | ( | 1812 | |
1813 | ( | 1813 | // Rule GraphPattern |
1814 | { | 1814 | ruleGraphPattern returns [EObject current=null] |
1815 | newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_0_0()); | 1815 | @init { |
1816 | } | 1816 | enterRule(); |
1817 | lv_entries_2_0=ruleConfigEntry | 1817 | } |
1818 | { | 1818 | @after { |
1819 | if ($current==null) { | 1819 | leaveRule(); |
1820 | $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); | 1820 | }: |
1821 | } | 1821 | ( |
1822 | add( | 1822 | { |
1823 | $current, | 1823 | newCompositeNode(grammarAccess.getGraphPatternAccess().getGraphPatternReferenceParserRuleCall_0()); |
1824 | "entries", | 1824 | } |
1825 | lv_entries_2_0, | 1825 | this_GraphPatternReference_0=ruleGraphPatternReference |
1826 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); | 1826 | { |
1827 | afterParserOrEnumRuleCall(); | 1827 | $current = $this_GraphPatternReference_0.current; |
1828 | } | 1828 | afterParserOrEnumRuleCall(); |
1829 | ) | 1829 | } |
1830 | ) | 1830 | | |
1831 | ( | 1831 | { |
1832 | otherlv_3=',' | 1832 | newCompositeNode(grammarAccess.getGraphPatternAccess().getPatternSpecificationParserRuleCall_1()); |
1833 | { | 1833 | } |
1834 | newLeafNode(otherlv_3, grammarAccess.getConfigSpecificationAccess().getCommaKeyword_2_1_0()); | 1834 | this_PatternSpecification_1=rulePatternSpecification |
1835 | } | 1835 | { |
1836 | ( | 1836 | $current = $this_PatternSpecification_1.current; |
1837 | ( | 1837 | afterParserOrEnumRuleCall(); |
1838 | { | 1838 | } |
1839 | newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_1_1_0()); | 1839 | ) |
1840 | } | 1840 | ; |
1841 | lv_entries_4_0=ruleConfigEntry | 1841 | |
1842 | { | 1842 | // Entry rule entryRuleObjectiveSpecification |
1843 | if ($current==null) { | 1843 | entryRuleObjectiveSpecification returns [EObject current=null]: |
1844 | $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); | 1844 | { newCompositeNode(grammarAccess.getObjectiveSpecificationRule()); } |
1845 | } | 1845 | iv_ruleObjectiveSpecification=ruleObjectiveSpecification |
1846 | add( | 1846 | { $current=$iv_ruleObjectiveSpecification.current; } |
1847 | $current, | 1847 | EOF; |
1848 | "entries", | 1848 | |
1849 | lv_entries_4_0, | 1849 | // Rule ObjectiveSpecification |
1850 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); | 1850 | ruleObjectiveSpecification returns [EObject current=null] |
1851 | afterParserOrEnumRuleCall(); | 1851 | @init { |
1852 | } | 1852 | enterRule(); |
1853 | ) | 1853 | } |
1854 | ) | 1854 | @after { |
1855 | )* | 1855 | leaveRule(); |
1856 | )? | 1856 | }: |
1857 | otherlv_5='}' | 1857 | ( |
1858 | { | 1858 | otherlv_0='{' |
1859 | newLeafNode(otherlv_5, grammarAccess.getConfigSpecificationAccess().getRightCurlyBracketKeyword_3()); | 1859 | { |
1860 | } | 1860 | newLeafNode(otherlv_0, grammarAccess.getObjectiveSpecificationAccess().getLeftCurlyBracketKeyword_0()); |
1861 | ) | 1861 | } |
1862 | ; | 1862 | ( |
1863 | 1863 | ( | |
1864 | // Entry rule entryRuleConfigDeclaration | 1864 | { |
1865 | entryRuleConfigDeclaration returns [EObject current=null]: | 1865 | newCompositeNode(grammarAccess.getObjectiveSpecificationAccess().getEntriesObjectiveEntryParserRuleCall_1_0()); |
1866 | { newCompositeNode(grammarAccess.getConfigDeclarationRule()); } | 1866 | } |
1867 | iv_ruleConfigDeclaration=ruleConfigDeclaration | 1867 | lv_entries_1_0=ruleObjectiveEntry |
1868 | { $current=$iv_ruleConfigDeclaration.current; } | 1868 | { |
1869 | EOF; | 1869 | if ($current==null) { |
1870 | 1870 | $current = createModelElementForParent(grammarAccess.getObjectiveSpecificationRule()); | |
1871 | // Rule ConfigDeclaration | 1871 | } |
1872 | ruleConfigDeclaration returns [EObject current=null] | 1872 | add( |
1873 | @init { | 1873 | $current, |
1874 | enterRule(); | 1874 | "entries", |
1875 | } | 1875 | lv_entries_1_0, |
1876 | @after { | 1876 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveEntry"); |
1877 | leaveRule(); | 1877 | afterParserOrEnumRuleCall(); |
1878 | }: | 1878 | } |
1879 | ( | 1879 | ) |
1880 | otherlv_0='config' | 1880 | ) |
1881 | { | 1881 | ( |
1882 | newLeafNode(otherlv_0, grammarAccess.getConfigDeclarationAccess().getConfigKeyword_0()); | 1882 | otherlv_2=',' |
1883 | } | 1883 | { |
1884 | ( | 1884 | newLeafNode(otherlv_2, grammarAccess.getObjectiveSpecificationAccess().getCommaKeyword_2_0()); |
1885 | ( | 1885 | } |
1886 | lv_name_1_0=RULE_ID | 1886 | ( |
1887 | { | 1887 | ( |
1888 | newLeafNode(lv_name_1_0, grammarAccess.getConfigDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | 1888 | { |
1889 | } | 1889 | newCompositeNode(grammarAccess.getObjectiveSpecificationAccess().getEntriesObjectiveEntryParserRuleCall_2_1_0()); |
1890 | { | 1890 | } |
1891 | if ($current==null) { | 1891 | lv_entries_3_0=ruleObjectiveEntry |
1892 | $current = createModelElement(grammarAccess.getConfigDeclarationRule()); | 1892 | { |
1893 | } | 1893 | if ($current==null) { |
1894 | setWithLastConsumed( | 1894 | $current = createModelElementForParent(grammarAccess.getObjectiveSpecificationRule()); |
1895 | $current, | 1895 | } |
1896 | "name", | 1896 | add( |
1897 | lv_name_1_0, | 1897 | $current, |
1898 | "org.eclipse.xtext.common.Terminals.ID"); | 1898 | "entries", |
1899 | } | 1899 | lv_entries_3_0, |
1900 | ) | 1900 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveEntry"); |
1901 | ) | 1901 | afterParserOrEnumRuleCall(); |
1902 | ( | 1902 | } |
1903 | ( | 1903 | ) |
1904 | { | 1904 | ) |
1905 | newCompositeNode(grammarAccess.getConfigDeclarationAccess().getSpecificationConfigSpecificationParserRuleCall_2_0()); | 1905 | )* |
1906 | } | 1906 | otherlv_4='}' |
1907 | lv_specification_2_0=ruleConfigSpecification | 1907 | { |
1908 | { | 1908 | newLeafNode(otherlv_4, grammarAccess.getObjectiveSpecificationAccess().getRightCurlyBracketKeyword_3()); |
1909 | if ($current==null) { | 1909 | } |
1910 | $current = createModelElementForParent(grammarAccess.getConfigDeclarationRule()); | 1910 | ) |
1911 | } | 1911 | ; |
1912 | set( | 1912 | |
1913 | $current, | 1913 | // Entry rule entryRuleObjectiveEntry |
1914 | "specification", | 1914 | entryRuleObjectiveEntry returns [EObject current=null]: |
1915 | lv_specification_2_0, | 1915 | { newCompositeNode(grammarAccess.getObjectiveEntryRule()); } |
1916 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigSpecification"); | 1916 | iv_ruleObjectiveEntry=ruleObjectiveEntry |
1917 | afterParserOrEnumRuleCall(); | 1917 | { $current=$iv_ruleObjectiveEntry.current; } |
1918 | } | 1918 | EOF; |
1919 | ) | 1919 | |
1920 | ) | 1920 | // Rule ObjectiveEntry |
1921 | ) | 1921 | ruleObjectiveEntry returns [EObject current=null] |
1922 | ; | 1922 | @init { |
1923 | 1923 | enterRule(); | |
1924 | // Entry rule entryRuleConfigEntry | 1924 | } |
1925 | entryRuleConfigEntry returns [EObject current=null]: | 1925 | @after { |
1926 | { newCompositeNode(grammarAccess.getConfigEntryRule()); } | 1926 | leaveRule(); |
1927 | iv_ruleConfigEntry=ruleConfigEntry | 1927 | }: |
1928 | { $current=$iv_ruleConfigEntry.current; } | 1928 | ( |
1929 | EOF; | 1929 | { |
1930 | 1930 | newCompositeNode(grammarAccess.getObjectiveEntryAccess().getOptimizationEntryParserRuleCall_0()); | |
1931 | // Rule ConfigEntry | 1931 | } |
1932 | ruleConfigEntry returns [EObject current=null] | 1932 | this_OptimizationEntry_0=ruleOptimizationEntry |
1933 | @init { | 1933 | { |
1934 | enterRule(); | 1934 | $current = $this_OptimizationEntry_0.current; |
1935 | } | 1935 | afterParserOrEnumRuleCall(); |
1936 | @after { | 1936 | } |
1937 | leaveRule(); | 1937 | | |
1938 | }: | 1938 | { |
1939 | ( | 1939 | newCompositeNode(grammarAccess.getObjectiveEntryAccess().getThresholdEntryParserRuleCall_1()); |
1940 | { | 1940 | } |
1941 | newCompositeNode(grammarAccess.getConfigEntryAccess().getDocumentationEntryParserRuleCall_0()); | 1941 | this_ThresholdEntry_1=ruleThresholdEntry |
1942 | } | 1942 | { |
1943 | this_DocumentationEntry_0=ruleDocumentationEntry | 1943 | $current = $this_ThresholdEntry_1.current; |
1944 | { | 1944 | afterParserOrEnumRuleCall(); |
1945 | $current = $this_DocumentationEntry_0.current; | 1945 | } |
1946 | afterParserOrEnumRuleCall(); | 1946 | ) |
1947 | } | 1947 | ; |
1948 | | | 1948 | |
1949 | { | 1949 | // Entry rule entryRuleOptimizationEntry |
1950 | newCompositeNode(grammarAccess.getConfigEntryAccess().getRuntimeEntryParserRuleCall_1()); | 1950 | entryRuleOptimizationEntry returns [EObject current=null]: |
1951 | } | 1951 | { newCompositeNode(grammarAccess.getOptimizationEntryRule()); } |
1952 | this_RuntimeEntry_1=ruleRuntimeEntry | 1952 | iv_ruleOptimizationEntry=ruleOptimizationEntry |
1953 | { | 1953 | { $current=$iv_ruleOptimizationEntry.current; } |
1954 | $current = $this_RuntimeEntry_1.current; | 1954 | EOF; |
1955 | afterParserOrEnumRuleCall(); | 1955 | |
1956 | } | 1956 | // Rule OptimizationEntry |
1957 | | | 1957 | ruleOptimizationEntry returns [EObject current=null] |
1958 | { | 1958 | @init { |
1959 | newCompositeNode(grammarAccess.getConfigEntryAccess().getMemoryEntryParserRuleCall_2()); | 1959 | enterRule(); |
1960 | } | 1960 | } |
1961 | this_MemoryEntry_2=ruleMemoryEntry | 1961 | @after { |
1962 | { | 1962 | leaveRule(); |
1963 | $current = $this_MemoryEntry_2.current; | 1963 | }: |
1964 | afterParserOrEnumRuleCall(); | 1964 | ( |
1965 | } | 1965 | ( |
1966 | | | 1966 | ( |
1967 | { | 1967 | { |
1968 | newCompositeNode(grammarAccess.getConfigEntryAccess().getCustomEntryParserRuleCall_3()); | 1968 | newCompositeNode(grammarAccess.getOptimizationEntryAccess().getDirectionOptimizationDirectionEnumRuleCall_0_0()); |
1969 | } | 1969 | } |
1970 | this_CustomEntry_3=ruleCustomEntry | 1970 | lv_direction_0_0=ruleOptimizationDirection |
1971 | { | 1971 | { |
1972 | $current = $this_CustomEntry_3.current; | 1972 | if ($current==null) { |
1973 | afterParserOrEnumRuleCall(); | 1973 | $current = createModelElementForParent(grammarAccess.getOptimizationEntryRule()); |
1974 | } | 1974 | } |
1975 | ) | 1975 | set( |
1976 | ; | 1976 | $current, |
1977 | 1977 | "direction", | |
1978 | // Entry rule entryRuleDocumentationEntry | 1978 | lv_direction_0_0, |
1979 | entryRuleDocumentationEntry returns [EObject current=null]: | 1979 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.OptimizationDirection"); |
1980 | { newCompositeNode(grammarAccess.getDocumentationEntryRule()); } | 1980 | afterParserOrEnumRuleCall(); |
1981 | iv_ruleDocumentationEntry=ruleDocumentationEntry | 1981 | } |
1982 | { $current=$iv_ruleDocumentationEntry.current; } | 1982 | ) |
1983 | EOF; | 1983 | ) |
1984 | 1984 | ( | |
1985 | // Rule DocumentationEntry | 1985 | ( |
1986 | ruleDocumentationEntry returns [EObject current=null] | 1986 | { |
1987 | @init { | 1987 | newCompositeNode(grammarAccess.getOptimizationEntryAccess().getFunctionObjectiveFunctionParserRuleCall_1_0()); |
1988 | enterRule(); | 1988 | } |
1989 | } | 1989 | lv_function_1_0=ruleObjectiveFunction |
1990 | @after { | 1990 | { |
1991 | leaveRule(); | 1991 | if ($current==null) { |
1992 | }: | 1992 | $current = createModelElementForParent(grammarAccess.getOptimizationEntryRule()); |
1993 | ( | 1993 | } |
1994 | otherlv_0='log-level' | 1994 | set( |
1995 | { | 1995 | $current, |
1996 | newLeafNode(otherlv_0, grammarAccess.getDocumentationEntryAccess().getLogLevelKeyword_0()); | 1996 | "function", |
1997 | } | 1997 | lv_function_1_0, |
1998 | otherlv_1='=' | 1998 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveFunction"); |
1999 | { | 1999 | afterParserOrEnumRuleCall(); |
2000 | newLeafNode(otherlv_1, grammarAccess.getDocumentationEntryAccess().getEqualsSignKeyword_1()); | 2000 | } |
2001 | } | 2001 | ) |
2002 | ( | 2002 | ) |
2003 | ( | 2003 | ) |
2004 | { | 2004 | ; |
2005 | newCompositeNode(grammarAccess.getDocumentationEntryAccess().getLevelDocumentLevelSpecificationEnumRuleCall_2_0()); | 2005 | |
2006 | } | 2006 | // Entry rule entryRuleThresholdEntry |
2007 | lv_level_2_0=ruleDocumentLevelSpecification | 2007 | entryRuleThresholdEntry returns [EObject current=null]: |
2008 | { | 2008 | { newCompositeNode(grammarAccess.getThresholdEntryRule()); } |
2009 | if ($current==null) { | 2009 | iv_ruleThresholdEntry=ruleThresholdEntry |
2010 | $current = createModelElementForParent(grammarAccess.getDocumentationEntryRule()); | 2010 | { $current=$iv_ruleThresholdEntry.current; } |
2011 | } | 2011 | EOF; |
2012 | set( | 2012 | |
2013 | $current, | 2013 | // Rule ThresholdEntry |
2014 | "level", | 2014 | ruleThresholdEntry returns [EObject current=null] |
2015 | lv_level_2_0, | 2015 | @init { |
2016 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.DocumentLevelSpecification"); | 2016 | enterRule(); |
2017 | afterParserOrEnumRuleCall(); | 2017 | } |
2018 | } | 2018 | @after { |
2019 | ) | 2019 | leaveRule(); |
2020 | ) | 2020 | }: |
2021 | ) | 2021 | ( |
2022 | ; | 2022 | ( |
2023 | 2023 | ( | |
2024 | // Entry rule entryRuleRuntimeEntry | 2024 | { |
2025 | entryRuleRuntimeEntry returns [EObject current=null]: | 2025 | newCompositeNode(grammarAccess.getThresholdEntryAccess().getFunctionObjectiveFunctionParserRuleCall_0_0()); |
2026 | { newCompositeNode(grammarAccess.getRuntimeEntryRule()); } | 2026 | } |
2027 | iv_ruleRuntimeEntry=ruleRuntimeEntry | 2027 | lv_function_0_0=ruleObjectiveFunction |
2028 | { $current=$iv_ruleRuntimeEntry.current; } | 2028 | { |
2029 | EOF; | 2029 | if ($current==null) { |
2030 | 2030 | $current = createModelElementForParent(grammarAccess.getThresholdEntryRule()); | |
2031 | // Rule RuntimeEntry | 2031 | } |
2032 | ruleRuntimeEntry returns [EObject current=null] | 2032 | set( |
2033 | @init { | 2033 | $current, |
2034 | enterRule(); | 2034 | "function", |
2035 | } | 2035 | lv_function_0_0, |
2036 | @after { | 2036 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveFunction"); |
2037 | leaveRule(); | 2037 | afterParserOrEnumRuleCall(); |
2038 | }: | 2038 | } |
2039 | ( | 2039 | ) |
2040 | otherlv_0='runtime' | 2040 | ) |
2041 | { | 2041 | ( |
2042 | newLeafNode(otherlv_0, grammarAccess.getRuntimeEntryAccess().getRuntimeKeyword_0()); | 2042 | ( |
2043 | } | 2043 | { |
2044 | otherlv_1='=' | 2044 | newCompositeNode(grammarAccess.getThresholdEntryAccess().getOperatorComparisonOperatorEnumRuleCall_1_0()); |
2045 | { | 2045 | } |
2046 | newLeafNode(otherlv_1, grammarAccess.getRuntimeEntryAccess().getEqualsSignKeyword_1()); | 2046 | lv_operator_1_0=ruleComparisonOperator |
2047 | } | 2047 | { |
2048 | ( | 2048 | if ($current==null) { |
2049 | ( | 2049 | $current = createModelElementForParent(grammarAccess.getThresholdEntryRule()); |
2050 | lv_millisecLimit_2_0=RULE_INT | 2050 | } |
2051 | { | 2051 | set( |
2052 | newLeafNode(lv_millisecLimit_2_0, grammarAccess.getRuntimeEntryAccess().getMillisecLimitINTTerminalRuleCall_2_0()); | 2052 | $current, |
2053 | } | 2053 | "operator", |
2054 | { | 2054 | lv_operator_1_0, |
2055 | if ($current==null) { | 2055 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ComparisonOperator"); |
2056 | $current = createModelElement(grammarAccess.getRuntimeEntryRule()); | 2056 | afterParserOrEnumRuleCall(); |
2057 | } | 2057 | } |
2058 | setWithLastConsumed( | 2058 | ) |
2059 | $current, | 2059 | ) |
2060 | "millisecLimit", | 2060 | ( |
2061 | lv_millisecLimit_2_0, | 2061 | ( |
2062 | "org.eclipse.xtext.common.Terminals.INT"); | 2062 | { |
2063 | } | 2063 | newCompositeNode(grammarAccess.getThresholdEntryAccess().getThresholdREALLiteralParserRuleCall_2_0()); |
2064 | ) | 2064 | } |
2065 | ) | 2065 | lv_threshold_2_0=ruleREALLiteral |
2066 | ) | 2066 | { |
2067 | ; | 2067 | if ($current==null) { |
2068 | 2068 | $current = createModelElementForParent(grammarAccess.getThresholdEntryRule()); | |
2069 | // Entry rule entryRuleMemoryEntry | 2069 | } |
2070 | entryRuleMemoryEntry returns [EObject current=null]: | 2070 | set( |
2071 | { newCompositeNode(grammarAccess.getMemoryEntryRule()); } | 2071 | $current, |
2072 | iv_ruleMemoryEntry=ruleMemoryEntry | 2072 | "threshold", |
2073 | { $current=$iv_ruleMemoryEntry.current; } | 2073 | lv_threshold_2_0, |
2074 | EOF; | 2074 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); |
2075 | 2075 | afterParserOrEnumRuleCall(); | |
2076 | // Rule MemoryEntry | 2076 | } |
2077 | ruleMemoryEntry returns [EObject current=null] | 2077 | ) |
2078 | @init { | 2078 | ) |
2079 | enterRule(); | 2079 | ) |
2080 | } | 2080 | ; |
2081 | @after { | 2081 | |
2082 | leaveRule(); | 2082 | // Entry rule entryRuleObjectiveFunction |
2083 | }: | 2083 | entryRuleObjectiveFunction returns [EObject current=null]: |
2084 | ( | 2084 | { newCompositeNode(grammarAccess.getObjectiveFunctionRule()); } |
2085 | otherlv_0='memory' | 2085 | iv_ruleObjectiveFunction=ruleObjectiveFunction |
2086 | { | 2086 | { $current=$iv_ruleObjectiveFunction.current; } |
2087 | newLeafNode(otherlv_0, grammarAccess.getMemoryEntryAccess().getMemoryKeyword_0()); | 2087 | EOF; |
2088 | } | 2088 | |
2089 | otherlv_1='=' | 2089 | // Rule ObjectiveFunction |
2090 | { | 2090 | ruleObjectiveFunction returns [EObject current=null] |
2091 | newLeafNode(otherlv_1, grammarAccess.getMemoryEntryAccess().getEqualsSignKeyword_1()); | 2091 | @init { |
2092 | } | 2092 | enterRule(); |
2093 | ( | 2093 | } |
2094 | ( | 2094 | @after { |
2095 | lv_megabyteLimit_2_0=RULE_INT | 2095 | leaveRule(); |
2096 | { | 2096 | }: |
2097 | newLeafNode(lv_megabyteLimit_2_0, grammarAccess.getMemoryEntryAccess().getMegabyteLimitINTTerminalRuleCall_2_0()); | 2097 | ( |
2098 | } | 2098 | { |
2099 | { | 2099 | newCompositeNode(grammarAccess.getObjectiveFunctionAccess().getCostObjectiveFunctionParserRuleCall_0()); |
2100 | if ($current==null) { | 2100 | } |
2101 | $current = createModelElement(grammarAccess.getMemoryEntryRule()); | 2101 | this_CostObjectiveFunction_0=ruleCostObjectiveFunction |
2102 | } | 2102 | { |
2103 | setWithLastConsumed( | 2103 | $current = $this_CostObjectiveFunction_0.current; |
2104 | $current, | 2104 | afterParserOrEnumRuleCall(); |
2105 | "megabyteLimit", | 2105 | } |
2106 | lv_megabyteLimit_2_0, | 2106 | | |
2107 | "org.eclipse.xtext.common.Terminals.INT"); | 2107 | { |
2108 | } | 2108 | newCompositeNode(grammarAccess.getObjectiveFunctionAccess().getReliabilityObjectiveFunctionParserRuleCall_1()); |
2109 | ) | 2109 | } |
2110 | ) | 2110 | this_ReliabilityObjectiveFunction_1=ruleReliabilityObjectiveFunction |
2111 | ) | 2111 | { |
2112 | ; | 2112 | $current = $this_ReliabilityObjectiveFunction_1.current; |
2113 | 2113 | afterParserOrEnumRuleCall(); | |
2114 | // Entry rule entryRuleCustomEntry | 2114 | } |
2115 | entryRuleCustomEntry returns [EObject current=null]: | 2115 | ) |
2116 | { newCompositeNode(grammarAccess.getCustomEntryRule()); } | 2116 | ; |
2117 | iv_ruleCustomEntry=ruleCustomEntry | 2117 | |
2118 | { $current=$iv_ruleCustomEntry.current; } | 2118 | // Entry rule entryRuleCostObjectiveFunction |
2119 | EOF; | 2119 | entryRuleCostObjectiveFunction returns [EObject current=null]: |
2120 | 2120 | { newCompositeNode(grammarAccess.getCostObjectiveFunctionRule()); } | |
2121 | // Rule CustomEntry | 2121 | iv_ruleCostObjectiveFunction=ruleCostObjectiveFunction |
2122 | ruleCustomEntry returns [EObject current=null] | 2122 | { $current=$iv_ruleCostObjectiveFunction.current; } |
2123 | @init { | 2123 | EOF; |
2124 | enterRule(); | 2124 | |
2125 | } | 2125 | // Rule CostObjectiveFunction |
2126 | @after { | 2126 | ruleCostObjectiveFunction returns [EObject current=null] |
2127 | leaveRule(); | 2127 | @init { |
2128 | }: | 2128 | enterRule(); |
2129 | ( | 2129 | } |
2130 | ( | 2130 | @after { |
2131 | ( | 2131 | leaveRule(); |
2132 | lv_key_0_0=RULE_STRING | 2132 | }: |
2133 | { | 2133 | ( |
2134 | newLeafNode(lv_key_0_0, grammarAccess.getCustomEntryAccess().getKeySTRINGTerminalRuleCall_0_0()); | 2134 | otherlv_0='cost' |
2135 | } | 2135 | { |
2136 | { | 2136 | newLeafNode(otherlv_0, grammarAccess.getCostObjectiveFunctionAccess().getCostKeyword_0()); |
2137 | if ($current==null) { | 2137 | } |
2138 | $current = createModelElement(grammarAccess.getCustomEntryRule()); | 2138 | otherlv_1='{' |
2139 | } | 2139 | { |
2140 | setWithLastConsumed( | 2140 | newLeafNode(otherlv_1, grammarAccess.getCostObjectiveFunctionAccess().getLeftCurlyBracketKeyword_1()); |
2141 | $current, | 2141 | } |
2142 | "key", | 2142 | ( |
2143 | lv_key_0_0, | 2143 | ( |
2144 | "org.eclipse.xtext.common.Terminals.STRING"); | 2144 | { |
2145 | } | 2145 | newCompositeNode(grammarAccess.getCostObjectiveFunctionAccess().getEntriesCostEntryParserRuleCall_2_0()); |
2146 | ) | 2146 | } |
2147 | ) | 2147 | lv_entries_2_0=ruleCostEntry |
2148 | otherlv_1='=' | 2148 | { |
2149 | { | 2149 | if ($current==null) { |
2150 | newLeafNode(otherlv_1, grammarAccess.getCustomEntryAccess().getEqualsSignKeyword_1()); | 2150 | $current = createModelElementForParent(grammarAccess.getCostObjectiveFunctionRule()); |
2151 | } | 2151 | } |
2152 | ( | 2152 | add( |
2153 | ( | 2153 | $current, |
2154 | lv_value_2_0=RULE_STRING | 2154 | "entries", |
2155 | { | 2155 | lv_entries_2_0, |
2156 | newLeafNode(lv_value_2_0, grammarAccess.getCustomEntryAccess().getValueSTRINGTerminalRuleCall_2_0()); | 2156 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.CostEntry"); |
2157 | } | 2157 | afterParserOrEnumRuleCall(); |
2158 | { | 2158 | } |
2159 | if ($current==null) { | 2159 | ) |
2160 | $current = createModelElement(grammarAccess.getCustomEntryRule()); | 2160 | ) |
2161 | } | 2161 | ( |
2162 | setWithLastConsumed( | 2162 | otherlv_3=',' |
2163 | $current, | 2163 | { |
2164 | "value", | 2164 | newLeafNode(otherlv_3, grammarAccess.getCostObjectiveFunctionAccess().getCommaKeyword_3_0()); |
2165 | lv_value_2_0, | 2165 | } |
2166 | "org.eclipse.xtext.common.Terminals.STRING"); | 2166 | ( |
2167 | } | 2167 | ( |
2168 | ) | 2168 | { |
2169 | ) | 2169 | newCompositeNode(grammarAccess.getCostObjectiveFunctionAccess().getEntriesCostEntryParserRuleCall_3_1_0()); |
2170 | ) | 2170 | } |
2171 | ; | 2171 | lv_entries_4_0=ruleCostEntry |
2172 | 2172 | { | |
2173 | // Entry rule entryRuleConfigReference | 2173 | if ($current==null) { |
2174 | entryRuleConfigReference returns [EObject current=null]: | 2174 | $current = createModelElementForParent(grammarAccess.getCostObjectiveFunctionRule()); |
2175 | { newCompositeNode(grammarAccess.getConfigReferenceRule()); } | 2175 | } |
2176 | iv_ruleConfigReference=ruleConfigReference | 2176 | add( |
2177 | { $current=$iv_ruleConfigReference.current; } | 2177 | $current, |
2178 | EOF; | 2178 | "entries", |
2179 | 2179 | lv_entries_4_0, | |
2180 | // Rule ConfigReference | 2180 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.CostEntry"); |
2181 | ruleConfigReference returns [EObject current=null] | 2181 | afterParserOrEnumRuleCall(); |
2182 | @init { | 2182 | } |
2183 | enterRule(); | 2183 | ) |
2184 | } | 2184 | ) |
2185 | @after { | 2185 | )* |
2186 | leaveRule(); | 2186 | otherlv_5='}' |
2187 | }: | 2187 | { |
2188 | ( | 2188 | newLeafNode(otherlv_5, grammarAccess.getCostObjectiveFunctionAccess().getRightCurlyBracketKeyword_4()); |
2189 | ( | 2189 | } |
2190 | { | 2190 | ) |
2191 | if ($current==null) { | 2191 | ; |
2192 | $current = createModelElement(grammarAccess.getConfigReferenceRule()); | 2192 | |
2193 | } | 2193 | // Entry rule entryRuleCostEntry |
2194 | } | 2194 | entryRuleCostEntry returns [EObject current=null]: |
2195 | otherlv_0=RULE_ID | 2195 | { newCompositeNode(grammarAccess.getCostEntryRule()); } |
2196 | { | 2196 | iv_ruleCostEntry=ruleCostEntry |
2197 | newLeafNode(otherlv_0, grammarAccess.getConfigReferenceAccess().getConfigConfigDeclarationCrossReference_0()); | 2197 | { $current=$iv_ruleCostEntry.current; } |
2198 | } | 2198 | EOF; |
2199 | ) | 2199 | |
2200 | ) | 2200 | // Rule CostEntry |
2201 | ; | 2201 | ruleCostEntry returns [EObject current=null] |
2202 | 2202 | @init { | |
2203 | // Entry rule entryRuleConfig | 2203 | enterRule(); |
2204 | entryRuleConfig returns [EObject current=null]: | 2204 | } |
2205 | { newCompositeNode(grammarAccess.getConfigRule()); } | 2205 | @after { |
2206 | iv_ruleConfig=ruleConfig | 2206 | leaveRule(); |
2207 | { $current=$iv_ruleConfig.current; } | 2207 | }: |
2208 | EOF; | 2208 | ( |
2209 | 2209 | ( | |
2210 | // Rule Config | 2210 | ( |
2211 | ruleConfig returns [EObject current=null] | 2211 | { |
2212 | @init { | 2212 | newCompositeNode(grammarAccess.getCostEntryAccess().getPatternElementPatternElementParserRuleCall_0_0()); |
2213 | enterRule(); | 2213 | } |
2214 | } | 2214 | lv_patternElement_0_0=rulePatternElement |
2215 | @after { | 2215 | { |
2216 | leaveRule(); | 2216 | if ($current==null) { |
2217 | }: | 2217 | $current = createModelElementForParent(grammarAccess.getCostEntryRule()); |
2218 | ( | 2218 | } |
2219 | { | 2219 | set( |
2220 | newCompositeNode(grammarAccess.getConfigAccess().getConfigSpecificationParserRuleCall_0()); | 2220 | $current, |
2221 | } | 2221 | "patternElement", |
2222 | this_ConfigSpecification_0=ruleConfigSpecification | 2222 | lv_patternElement_0_0, |
2223 | { | 2223 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); |
2224 | $current = $this_ConfigSpecification_0.current; | 2224 | afterParserOrEnumRuleCall(); |
2225 | afterParserOrEnumRuleCall(); | 2225 | } |
2226 | } | 2226 | ) |
2227 | | | 2227 | ) |
2228 | { | 2228 | otherlv_1='=' |
2229 | newCompositeNode(grammarAccess.getConfigAccess().getConfigReferenceParserRuleCall_1()); | 2229 | { |
2230 | } | 2230 | newLeafNode(otherlv_1, grammarAccess.getCostEntryAccess().getEqualsSignKeyword_1()); |
2231 | this_ConfigReference_1=ruleConfigReference | 2231 | } |
2232 | { | 2232 | ( |
2233 | $current = $this_ConfigReference_1.current; | 2233 | ( |
2234 | afterParserOrEnumRuleCall(); | 2234 | { |
2235 | } | 2235 | newCompositeNode(grammarAccess.getCostEntryAccess().getWeightINTLiteralParserRuleCall_2_0()); |
2236 | ) | 2236 | } |
2237 | ; | 2237 | lv_weight_2_0=ruleINTLiteral |
2238 | 2238 | { | |
2239 | // Entry rule entryRuleScopeSpecification | 2239 | if ($current==null) { |
2240 | entryRuleScopeSpecification returns [EObject current=null]: | 2240 | $current = createModelElementForParent(grammarAccess.getCostEntryRule()); |
2241 | { newCompositeNode(grammarAccess.getScopeSpecificationRule()); } | 2241 | } |
2242 | iv_ruleScopeSpecification=ruleScopeSpecification | 2242 | set( |
2243 | { $current=$iv_ruleScopeSpecification.current; } | 2243 | $current, |
2244 | EOF; | 2244 | "weight", |
2245 | 2245 | lv_weight_2_0, | |
2246 | // Rule ScopeSpecification | 2246 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); |
2247 | ruleScopeSpecification returns [EObject current=null] | 2247 | afterParserOrEnumRuleCall(); |
2248 | @init { | 2248 | } |
2249 | enterRule(); | 2249 | ) |
2250 | } | 2250 | ) |
2251 | @after { | 2251 | ) |
2252 | leaveRule(); | 2252 | ; |
2253 | }: | 2253 | |
2254 | ( | 2254 | // Entry rule entryRuleReliabilityObjectiveFunction |
2255 | ( | 2255 | entryRuleReliabilityObjectiveFunction returns [EObject current=null]: |
2256 | { | 2256 | { newCompositeNode(grammarAccess.getReliabilityObjectiveFunctionRule()); } |
2257 | $current = forceCreateModelElement( | 2257 | iv_ruleReliabilityObjectiveFunction=ruleReliabilityObjectiveFunction |
2258 | grammarAccess.getScopeSpecificationAccess().getScopeSpecificationAction_0(), | 2258 | { $current=$iv_ruleReliabilityObjectiveFunction.current; } |
2259 | $current); | 2259 | EOF; |
2260 | } | 2260 | |
2261 | ) | 2261 | // Rule ReliabilityObjectiveFunction |
2262 | otherlv_1='{' | 2262 | ruleReliabilityObjectiveFunction returns [EObject current=null] |
2263 | { | 2263 | @init { |
2264 | newLeafNode(otherlv_1, grammarAccess.getScopeSpecificationAccess().getLeftCurlyBracketKeyword_1()); | 2264 | enterRule(); |
2265 | } | 2265 | } |
2266 | ( | 2266 | @after { |
2267 | ( | 2267 | leaveRule(); |
2268 | ( | 2268 | }: |
2269 | { | 2269 | ( |
2270 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_0_0()); | 2270 | { |
2271 | } | 2271 | newCompositeNode(grammarAccess.getReliabilityObjectiveFunctionAccess().getReliabiltiyProbabilityParserRuleCall_0()); |
2272 | lv_scopes_2_0=ruleTypeScope | 2272 | } |
2273 | { | 2273 | this_ReliabiltiyProbability_0=ruleReliabiltiyProbability |
2274 | if ($current==null) { | 2274 | { |
2275 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); | 2275 | $current = $this_ReliabiltiyProbability_0.current; |
2276 | } | 2276 | afterParserOrEnumRuleCall(); |
2277 | add( | 2277 | } |
2278 | $current, | 2278 | | |
2279 | "scopes", | 2279 | { |
2280 | lv_scopes_2_0, | 2280 | newCompositeNode(grammarAccess.getReliabilityObjectiveFunctionAccess().getMtffParserRuleCall_1()); |
2281 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); | 2281 | } |
2282 | afterParserOrEnumRuleCall(); | 2282 | this_Mtff_1=ruleMtff |
2283 | } | 2283 | { |
2284 | ) | 2284 | $current = $this_Mtff_1.current; |
2285 | ) | 2285 | afterParserOrEnumRuleCall(); |
2286 | ( | 2286 | } |
2287 | otherlv_3=',' | 2287 | ) |
2288 | { | 2288 | ; |
2289 | newLeafNode(otherlv_3, grammarAccess.getScopeSpecificationAccess().getCommaKeyword_2_1_0()); | 2289 | |
2290 | } | 2290 | // Entry rule entryRuleReliabiltiyProbability |
2291 | ( | 2291 | entryRuleReliabiltiyProbability returns [EObject current=null]: |
2292 | ( | 2292 | { newCompositeNode(grammarAccess.getReliabiltiyProbabilityRule()); } |
2293 | { | 2293 | iv_ruleReliabiltiyProbability=ruleReliabiltiyProbability |
2294 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_1_1_0()); | 2294 | { $current=$iv_ruleReliabiltiyProbability.current; } |
2295 | } | 2295 | EOF; |
2296 | lv_scopes_4_0=ruleTypeScope | 2296 | |
2297 | { | 2297 | // Rule ReliabiltiyProbability |
2298 | if ($current==null) { | 2298 | ruleReliabiltiyProbability returns [EObject current=null] |
2299 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); | 2299 | @init { |
2300 | } | 2300 | enterRule(); |
2301 | add( | 2301 | } |
2302 | $current, | 2302 | @after { |
2303 | "scopes", | 2303 | leaveRule(); |
2304 | lv_scopes_4_0, | 2304 | }: |
2305 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); | 2305 | ( |
2306 | afterParserOrEnumRuleCall(); | 2306 | otherlv_0='reliability' |
2307 | } | 2307 | { |
2308 | ) | 2308 | newLeafNode(otherlv_0, grammarAccess.getReliabiltiyProbabilityAccess().getReliabilityKeyword_0()); |
2309 | ) | 2309 | } |
2310 | )* | 2310 | ( |
2311 | )? | 2311 | ( |
2312 | otherlv_5='}' | 2312 | ( |
2313 | { | 2313 | { |
2314 | newLeafNode(otherlv_5, grammarAccess.getScopeSpecificationAccess().getRightCurlyBracketKeyword_3()); | 2314 | if ($current==null) { |
2315 | } | 2315 | $current = createModelElement(grammarAccess.getReliabiltiyProbabilityRule()); |
2316 | ) | 2316 | } |
2317 | ; | 2317 | } |
2318 | 2318 | { | |
2319 | // Entry rule entryRuleTypeScope | 2319 | newCompositeNode(grammarAccess.getReliabiltiyProbabilityAccess().getPackageCftModelCrossReference_1_0_0()); |
2320 | entryRuleTypeScope returns [EObject current=null]: | 2320 | } |
2321 | { newCompositeNode(grammarAccess.getTypeScopeRule()); } | 2321 | ruleQualifiedName |
2322 | iv_ruleTypeScope=ruleTypeScope | 2322 | { |
2323 | { $current=$iv_ruleTypeScope.current; } | 2323 | afterParserOrEnumRuleCall(); |
2324 | EOF; | 2324 | } |
2325 | 2325 | ) | |
2326 | // Rule TypeScope | 2326 | ) |
2327 | ruleTypeScope returns [EObject current=null] | 2327 | otherlv_2='::' |
2328 | @init { | 2328 | { |
2329 | enterRule(); | 2329 | newLeafNode(otherlv_2, grammarAccess.getReliabiltiyProbabilityAccess().getColonColonKeyword_1_1()); |
2330 | } | 2330 | } |
2331 | @after { | 2331 | )? |
2332 | leaveRule(); | 2332 | ( |
2333 | }: | 2333 | ( |
2334 | ( | 2334 | { |
2335 | { | 2335 | if ($current==null) { |
2336 | newCompositeNode(grammarAccess.getTypeScopeAccess().getClassTypeScopeParserRuleCall_0()); | 2336 | $current = createModelElement(grammarAccess.getReliabiltiyProbabilityRule()); |
2337 | } | 2337 | } |
2338 | this_ClassTypeScope_0=ruleClassTypeScope | 2338 | } |
2339 | { | 2339 | otherlv_3=RULE_ID |
2340 | $current = $this_ClassTypeScope_0.current; | 2340 | { |
2341 | afterParserOrEnumRuleCall(); | 2341 | newLeafNode(otherlv_3, grammarAccess.getReliabiltiyProbabilityAccess().getTransformationTransformationDefinitionCrossReference_2_0()); |
2342 | } | 2342 | } |
2343 | | | 2343 | ) |
2344 | { | 2344 | ) |
2345 | newCompositeNode(grammarAccess.getTypeScopeAccess().getObjectTypeScopeParserRuleCall_1()); | 2345 | otherlv_4='at' |
2346 | } | 2346 | { |
2347 | this_ObjectTypeScope_1=ruleObjectTypeScope | 2347 | newLeafNode(otherlv_4, grammarAccess.getReliabiltiyProbabilityAccess().getAtKeyword_3()); |
2348 | { | 2348 | } |
2349 | $current = $this_ObjectTypeScope_1.current; | 2349 | ( |
2350 | afterParserOrEnumRuleCall(); | 2350 | ( |
2351 | } | 2351 | { |
2352 | | | 2352 | newCompositeNode(grammarAccess.getReliabiltiyProbabilityAccess().getTimeREALLiteralParserRuleCall_4_0()); |
2353 | { | 2353 | } |
2354 | newCompositeNode(grammarAccess.getTypeScopeAccess().getIntegerTypeScopeParserRuleCall_2()); | 2354 | lv_time_5_0=ruleREALLiteral |
2355 | } | 2355 | { |
2356 | this_IntegerTypeScope_2=ruleIntegerTypeScope | 2356 | if ($current==null) { |
2357 | { | 2357 | $current = createModelElementForParent(grammarAccess.getReliabiltiyProbabilityRule()); |
2358 | $current = $this_IntegerTypeScope_2.current; | 2358 | } |
2359 | afterParserOrEnumRuleCall(); | 2359 | set( |
2360 | } | 2360 | $current, |
2361 | | | 2361 | "time", |
2362 | { | 2362 | lv_time_5_0, |
2363 | newCompositeNode(grammarAccess.getTypeScopeAccess().getRealTypeScopeParserRuleCall_3()); | 2363 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); |
2364 | } | 2364 | afterParserOrEnumRuleCall(); |
2365 | this_RealTypeScope_3=ruleRealTypeScope | 2365 | } |
2366 | { | 2366 | ) |
2367 | $current = $this_RealTypeScope_3.current; | 2367 | ) |
2368 | afterParserOrEnumRuleCall(); | 2368 | ) |
2369 | } | 2369 | ; |
2370 | | | 2370 | |
2371 | { | 2371 | // Entry rule entryRuleMtff |
2372 | newCompositeNode(grammarAccess.getTypeScopeAccess().getStringTypeScopeParserRuleCall_4()); | 2372 | entryRuleMtff returns [EObject current=null]: |
2373 | } | 2373 | { newCompositeNode(grammarAccess.getMtffRule()); } |
2374 | this_StringTypeScope_4=ruleStringTypeScope | 2374 | iv_ruleMtff=ruleMtff |
2375 | { | 2375 | { $current=$iv_ruleMtff.current; } |
2376 | $current = $this_StringTypeScope_4.current; | 2376 | EOF; |
2377 | afterParserOrEnumRuleCall(); | 2377 | |
2378 | } | 2378 | // Rule Mtff |
2379 | ) | 2379 | ruleMtff returns [EObject current=null] |
2380 | ; | 2380 | @init { |
2381 | 2381 | enterRule(); | |
2382 | // Entry rule entryRuleClassTypeScope | 2382 | } |
2383 | entryRuleClassTypeScope returns [EObject current=null]: | 2383 | @after { |
2384 | { newCompositeNode(grammarAccess.getClassTypeScopeRule()); } | 2384 | leaveRule(); |
2385 | iv_ruleClassTypeScope=ruleClassTypeScope | 2385 | }: |
2386 | { $current=$iv_ruleClassTypeScope.current; } | 2386 | ( |
2387 | EOF; | 2387 | otherlv_0='mtff' |
2388 | 2388 | { | |
2389 | // Rule ClassTypeScope | 2389 | newLeafNode(otherlv_0, grammarAccess.getMtffAccess().getMtffKeyword_0()); |
2390 | ruleClassTypeScope returns [EObject current=null] | 2390 | } |
2391 | @init { | 2391 | ( |
2392 | enterRule(); | 2392 | ( |
2393 | } | 2393 | ( |
2394 | @after { | 2394 | { |
2395 | leaveRule(); | 2395 | if ($current==null) { |
2396 | }: | 2396 | $current = createModelElement(grammarAccess.getMtffRule()); |
2397 | ( | 2397 | } |
2398 | otherlv_0='#' | 2398 | } |
2399 | { | 2399 | { |
2400 | newLeafNode(otherlv_0, grammarAccess.getClassTypeScopeAccess().getNumberSignKeyword_0()); | 2400 | newCompositeNode(grammarAccess.getMtffAccess().getPackageCftModelCrossReference_1_0_0()); |
2401 | } | 2401 | } |
2402 | ( | 2402 | ruleQualifiedName |
2403 | ( | 2403 | { |
2404 | { | 2404 | afterParserOrEnumRuleCall(); |
2405 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getTypeClassReferenceParserRuleCall_1_0()); | 2405 | } |
2406 | } | 2406 | ) |
2407 | lv_type_1_0=ruleClassReference | 2407 | ) |
2408 | { | 2408 | otherlv_2='::' |
2409 | if ($current==null) { | 2409 | { |
2410 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); | 2410 | newLeafNode(otherlv_2, grammarAccess.getMtffAccess().getColonColonKeyword_1_1()); |
2411 | } | 2411 | } |
2412 | set( | 2412 | )? |
2413 | $current, | 2413 | ( |
2414 | "type", | 2414 | ( |
2415 | lv_type_1_0, | 2415 | { |
2416 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ClassReference"); | 2416 | if ($current==null) { |
2417 | afterParserOrEnumRuleCall(); | 2417 | $current = createModelElement(grammarAccess.getMtffRule()); |
2418 | } | 2418 | } |
2419 | ) | 2419 | } |
2420 | ) | 2420 | otherlv_3=RULE_ID |
2421 | ( | 2421 | { |
2422 | ( | 2422 | newLeafNode(otherlv_3, grammarAccess.getMtffAccess().getTransformationTransformationDefinitionCrossReference_2_0()); |
2423 | ( | 2423 | } |
2424 | lv_setsNew_2_0='+=' | 2424 | ) |
2425 | { | 2425 | ) |
2426 | newLeafNode(lv_setsNew_2_0, grammarAccess.getClassTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2426 | ) |
2427 | } | 2427 | ; |
2428 | { | 2428 | |
2429 | if ($current==null) { | 2429 | // Entry rule entryRuleObjectiveDeclaration |
2430 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); | 2430 | entryRuleObjectiveDeclaration returns [EObject current=null]: |
2431 | } | 2431 | { newCompositeNode(grammarAccess.getObjectiveDeclarationRule()); } |
2432 | setWithLastConsumed($current, "setsNew", true, "+="); | 2432 | iv_ruleObjectiveDeclaration=ruleObjectiveDeclaration |
2433 | } | 2433 | { $current=$iv_ruleObjectiveDeclaration.current; } |
2434 | ) | 2434 | EOF; |
2435 | ) | 2435 | |
2436 | | | 2436 | // Rule ObjectiveDeclaration |
2437 | ( | 2437 | ruleObjectiveDeclaration returns [EObject current=null] |
2438 | ( | 2438 | @init { |
2439 | lv_setsSum_3_0='=' | 2439 | enterRule(); |
2440 | { | 2440 | } |
2441 | newLeafNode(lv_setsSum_3_0, grammarAccess.getClassTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2441 | @after { |
2442 | } | 2442 | leaveRule(); |
2443 | { | 2443 | }: |
2444 | if ($current==null) { | 2444 | ( |
2445 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); | 2445 | otherlv_0='objectives' |
2446 | } | 2446 | { |
2447 | setWithLastConsumed($current, "setsSum", true, "="); | 2447 | newLeafNode(otherlv_0, grammarAccess.getObjectiveDeclarationAccess().getObjectivesKeyword_0()); |
2448 | } | 2448 | } |
2449 | ) | 2449 | ( |
2450 | ) | 2450 | ( |
2451 | ) | 2451 | lv_name_1_0=RULE_ID |
2452 | ( | 2452 | { |
2453 | ( | 2453 | newLeafNode(lv_name_1_0, grammarAccess.getObjectiveDeclarationAccess().getNameIDTerminalRuleCall_1_0()); |
2454 | ( | 2454 | } |
2455 | { | 2455 | { |
2456 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2456 | if ($current==null) { |
2457 | } | 2457 | $current = createModelElement(grammarAccess.getObjectiveDeclarationRule()); |
2458 | lv_number_4_0=ruleExactNumber | 2458 | } |
2459 | { | 2459 | setWithLastConsumed( |
2460 | if ($current==null) { | 2460 | $current, |
2461 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); | 2461 | "name", |
2462 | } | 2462 | lv_name_1_0, |
2463 | set( | 2463 | "org.eclipse.xtext.common.Terminals.ID"); |
2464 | $current, | 2464 | } |
2465 | "number", | 2465 | ) |
2466 | lv_number_4_0, | 2466 | ) |
2467 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2467 | ( |
2468 | afterParserOrEnumRuleCall(); | 2468 | ( |
2469 | } | 2469 | { |
2470 | ) | 2470 | newCompositeNode(grammarAccess.getObjectiveDeclarationAccess().getSpecificationObjectiveSpecificationParserRuleCall_2_0()); |
2471 | ) | 2471 | } |
2472 | | | 2472 | lv_specification_2_0=ruleObjectiveSpecification |
2473 | ( | 2473 | { |
2474 | ( | 2474 | if ($current==null) { |
2475 | { | 2475 | $current = createModelElementForParent(grammarAccess.getObjectiveDeclarationRule()); |
2476 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2476 | } |
2477 | } | 2477 | set( |
2478 | lv_number_5_0=ruleIntervallNumber | 2478 | $current, |
2479 | { | 2479 | "specification", |
2480 | if ($current==null) { | 2480 | lv_specification_2_0, |
2481 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); | 2481 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveSpecification"); |
2482 | } | 2482 | afterParserOrEnumRuleCall(); |
2483 | set( | 2483 | } |
2484 | $current, | 2484 | ) |
2485 | "number", | 2485 | ) |
2486 | lv_number_5_0, | 2486 | ) |
2487 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2487 | ; |
2488 | afterParserOrEnumRuleCall(); | 2488 | |
2489 | } | 2489 | // Entry rule entryRuleObjectiveReference |
2490 | ) | 2490 | entryRuleObjectiveReference returns [EObject current=null]: |
2491 | ) | 2491 | { newCompositeNode(grammarAccess.getObjectiveReferenceRule()); } |
2492 | ) | 2492 | iv_ruleObjectiveReference=ruleObjectiveReference |
2493 | ) | 2493 | { $current=$iv_ruleObjectiveReference.current; } |
2494 | ; | 2494 | EOF; |
2495 | 2495 | ||
2496 | // Entry rule entryRuleObjectTypeScope | 2496 | // Rule ObjectiveReference |
2497 | entryRuleObjectTypeScope returns [EObject current=null]: | 2497 | ruleObjectiveReference returns [EObject current=null] |
2498 | { newCompositeNode(grammarAccess.getObjectTypeScopeRule()); } | 2498 | @init { |
2499 | iv_ruleObjectTypeScope=ruleObjectTypeScope | 2499 | enterRule(); |
2500 | { $current=$iv_ruleObjectTypeScope.current; } | 2500 | } |
2501 | EOF; | 2501 | @after { |
2502 | 2502 | leaveRule(); | |
2503 | // Rule ObjectTypeScope | 2503 | }: |
2504 | ruleObjectTypeScope returns [EObject current=null] | 2504 | ( |
2505 | @init { | 2505 | ( |
2506 | enterRule(); | 2506 | { |
2507 | } | 2507 | if ($current==null) { |
2508 | @after { | 2508 | $current = createModelElement(grammarAccess.getObjectiveReferenceRule()); |
2509 | leaveRule(); | 2509 | } |
2510 | }: | 2510 | } |
2511 | ( | 2511 | otherlv_0=RULE_ID |
2512 | otherlv_0='#' | 2512 | { |
2513 | { | 2513 | newLeafNode(otherlv_0, grammarAccess.getObjectiveReferenceAccess().getReferredObjectiveDeclarationCrossReference_0()); |
2514 | newLeafNode(otherlv_0, grammarAccess.getObjectTypeScopeAccess().getNumberSignKeyword_0()); | 2514 | } |
2515 | } | 2515 | ) |
2516 | ( | 2516 | ) |
2517 | ( | 2517 | ; |
2518 | { | 2518 | |
2519 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getTypeObjectReferenceParserRuleCall_1_0()); | 2519 | // Entry rule entryRuleObjective |
2520 | } | 2520 | entryRuleObjective returns [EObject current=null]: |
2521 | lv_type_1_0=ruleObjectReference | 2521 | { newCompositeNode(grammarAccess.getObjectiveRule()); } |
2522 | { | 2522 | iv_ruleObjective=ruleObjective |
2523 | if ($current==null) { | 2523 | { $current=$iv_ruleObjective.current; } |
2524 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); | 2524 | EOF; |
2525 | } | 2525 | |
2526 | set( | 2526 | // Rule Objective |
2527 | $current, | 2527 | ruleObjective returns [EObject current=null] |
2528 | "type", | 2528 | @init { |
2529 | lv_type_1_0, | 2529 | enterRule(); |
2530 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectReference"); | 2530 | } |
2531 | afterParserOrEnumRuleCall(); | 2531 | @after { |
2532 | } | 2532 | leaveRule(); |
2533 | ) | 2533 | }: |
2534 | ) | 2534 | ( |
2535 | ( | 2535 | { |
2536 | ( | 2536 | newCompositeNode(grammarAccess.getObjectiveAccess().getObjectiveReferenceParserRuleCall_0()); |
2537 | ( | 2537 | } |
2538 | lv_setsNew_2_0='+=' | 2538 | this_ObjectiveReference_0=ruleObjectiveReference |
2539 | { | 2539 | { |
2540 | newLeafNode(lv_setsNew_2_0, grammarAccess.getObjectTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2540 | $current = $this_ObjectiveReference_0.current; |
2541 | } | 2541 | afterParserOrEnumRuleCall(); |
2542 | { | 2542 | } |
2543 | if ($current==null) { | 2543 | | |
2544 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); | 2544 | { |
2545 | } | 2545 | newCompositeNode(grammarAccess.getObjectiveAccess().getObjectiveSpecificationParserRuleCall_1()); |
2546 | setWithLastConsumed($current, "setsNew", true, "+="); | 2546 | } |
2547 | } | 2547 | this_ObjectiveSpecification_1=ruleObjectiveSpecification |
2548 | ) | 2548 | { |
2549 | ) | 2549 | $current = $this_ObjectiveSpecification_1.current; |
2550 | | | 2550 | afterParserOrEnumRuleCall(); |
2551 | ( | 2551 | } |
2552 | ( | 2552 | ) |
2553 | lv_setsSum_3_0='=' | 2553 | ; |
2554 | { | 2554 | |
2555 | newLeafNode(lv_setsSum_3_0, grammarAccess.getObjectTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2555 | // Entry rule entryRuleConfigSpecification |
2556 | } | 2556 | entryRuleConfigSpecification returns [EObject current=null]: |
2557 | { | 2557 | { newCompositeNode(grammarAccess.getConfigSpecificationRule()); } |
2558 | if ($current==null) { | 2558 | iv_ruleConfigSpecification=ruleConfigSpecification |
2559 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); | 2559 | { $current=$iv_ruleConfigSpecification.current; } |
2560 | } | 2560 | EOF; |
2561 | setWithLastConsumed($current, "setsSum", true, "="); | 2561 | |
2562 | } | 2562 | // Rule ConfigSpecification |
2563 | ) | 2563 | ruleConfigSpecification returns [EObject current=null] |
2564 | ) | 2564 | @init { |
2565 | ) | 2565 | enterRule(); |
2566 | ( | 2566 | } |
2567 | ( | 2567 | @after { |
2568 | ( | 2568 | leaveRule(); |
2569 | { | 2569 | }: |
2570 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2570 | ( |
2571 | } | 2571 | ( |
2572 | lv_number_4_0=ruleExactNumber | 2572 | { |
2573 | { | 2573 | $current = forceCreateModelElement( |
2574 | if ($current==null) { | 2574 | grammarAccess.getConfigSpecificationAccess().getConfigSpecificationAction_0(), |
2575 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); | 2575 | $current); |
2576 | } | 2576 | } |
2577 | set( | 2577 | ) |
2578 | $current, | 2578 | otherlv_1='{' |
2579 | "number", | 2579 | { |
2580 | lv_number_4_0, | 2580 | newLeafNode(otherlv_1, grammarAccess.getConfigSpecificationAccess().getLeftCurlyBracketKeyword_1()); |
2581 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2581 | } |
2582 | afterParserOrEnumRuleCall(); | 2582 | ( |
2583 | } | 2583 | ( |
2584 | ) | 2584 | ( |
2585 | ) | 2585 | { |
2586 | | | 2586 | newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_0_0()); |
2587 | ( | 2587 | } |
2588 | ( | 2588 | lv_entries_2_0=ruleConfigEntry |
2589 | { | 2589 | { |
2590 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2590 | if ($current==null) { |
2591 | } | 2591 | $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); |
2592 | lv_number_5_0=ruleIntervallNumber | 2592 | } |
2593 | { | 2593 | add( |
2594 | if ($current==null) { | 2594 | $current, |
2595 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); | 2595 | "entries", |
2596 | } | 2596 | lv_entries_2_0, |
2597 | set( | 2597 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); |
2598 | $current, | 2598 | afterParserOrEnumRuleCall(); |
2599 | "number", | 2599 | } |
2600 | lv_number_5_0, | 2600 | ) |
2601 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2601 | ) |
2602 | afterParserOrEnumRuleCall(); | 2602 | ( |
2603 | } | 2603 | otherlv_3=',' |
2604 | ) | 2604 | { |
2605 | ) | 2605 | newLeafNode(otherlv_3, grammarAccess.getConfigSpecificationAccess().getCommaKeyword_2_1_0()); |
2606 | ) | 2606 | } |
2607 | ) | 2607 | ( |
2608 | ; | 2608 | ( |
2609 | 2609 | { | |
2610 | // Entry rule entryRuleIntegerTypeScope | 2610 | newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_1_1_0()); |
2611 | entryRuleIntegerTypeScope returns [EObject current=null]: | 2611 | } |
2612 | { newCompositeNode(grammarAccess.getIntegerTypeScopeRule()); } | 2612 | lv_entries_4_0=ruleConfigEntry |
2613 | iv_ruleIntegerTypeScope=ruleIntegerTypeScope | 2613 | { |
2614 | { $current=$iv_ruleIntegerTypeScope.current; } | 2614 | if ($current==null) { |
2615 | EOF; | 2615 | $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); |
2616 | 2616 | } | |
2617 | // Rule IntegerTypeScope | 2617 | add( |
2618 | ruleIntegerTypeScope returns [EObject current=null] | 2618 | $current, |
2619 | @init { | 2619 | "entries", |
2620 | enterRule(); | 2620 | lv_entries_4_0, |
2621 | } | 2621 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); |
2622 | @after { | 2622 | afterParserOrEnumRuleCall(); |
2623 | leaveRule(); | 2623 | } |
2624 | }: | 2624 | ) |
2625 | ( | 2625 | ) |
2626 | otherlv_0='#' | 2626 | )* |
2627 | { | 2627 | )? |
2628 | newLeafNode(otherlv_0, grammarAccess.getIntegerTypeScopeAccess().getNumberSignKeyword_0()); | 2628 | otherlv_5='}' |
2629 | } | 2629 | { |
2630 | ( | 2630 | newLeafNode(otherlv_5, grammarAccess.getConfigSpecificationAccess().getRightCurlyBracketKeyword_3()); |
2631 | ( | 2631 | } |
2632 | { | 2632 | ) |
2633 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getTypeIntegerReferenceParserRuleCall_1_0()); | 2633 | ; |
2634 | } | 2634 | |
2635 | lv_type_1_0=ruleIntegerReference | 2635 | // Entry rule entryRuleConfigDeclaration |
2636 | { | 2636 | entryRuleConfigDeclaration returns [EObject current=null]: |
2637 | if ($current==null) { | 2637 | { newCompositeNode(grammarAccess.getConfigDeclarationRule()); } |
2638 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | 2638 | iv_ruleConfigDeclaration=ruleConfigDeclaration |
2639 | } | 2639 | { $current=$iv_ruleConfigDeclaration.current; } |
2640 | set( | 2640 | EOF; |
2641 | $current, | 2641 | |
2642 | "type", | 2642 | // Rule ConfigDeclaration |
2643 | lv_type_1_0, | 2643 | ruleConfigDeclaration returns [EObject current=null] |
2644 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntegerReference"); | 2644 | @init { |
2645 | afterParserOrEnumRuleCall(); | 2645 | enterRule(); |
2646 | } | 2646 | } |
2647 | ) | 2647 | @after { |
2648 | ) | 2648 | leaveRule(); |
2649 | ( | 2649 | }: |
2650 | ( | 2650 | ( |
2651 | ( | 2651 | otherlv_0='config' |
2652 | lv_setsNew_2_0='+=' | 2652 | { |
2653 | { | 2653 | newLeafNode(otherlv_0, grammarAccess.getConfigDeclarationAccess().getConfigKeyword_0()); |
2654 | newLeafNode(lv_setsNew_2_0, grammarAccess.getIntegerTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2654 | } |
2655 | } | 2655 | ( |
2656 | { | 2656 | ( |
2657 | if ($current==null) { | 2657 | lv_name_1_0=RULE_ID |
2658 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); | 2658 | { |
2659 | } | 2659 | newLeafNode(lv_name_1_0, grammarAccess.getConfigDeclarationAccess().getNameIDTerminalRuleCall_1_0()); |
2660 | setWithLastConsumed($current, "setsNew", true, "+="); | 2660 | } |
2661 | } | 2661 | { |
2662 | ) | 2662 | if ($current==null) { |
2663 | ) | 2663 | $current = createModelElement(grammarAccess.getConfigDeclarationRule()); |
2664 | | | 2664 | } |
2665 | ( | 2665 | setWithLastConsumed( |
2666 | ( | 2666 | $current, |
2667 | lv_setsSum_3_0='=' | 2667 | "name", |
2668 | { | 2668 | lv_name_1_0, |
2669 | newLeafNode(lv_setsSum_3_0, grammarAccess.getIntegerTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2669 | "org.eclipse.xtext.common.Terminals.ID"); |
2670 | } | 2670 | } |
2671 | { | 2671 | ) |
2672 | if ($current==null) { | 2672 | ) |
2673 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); | 2673 | ( |
2674 | } | 2674 | ( |
2675 | setWithLastConsumed($current, "setsSum", true, "="); | 2675 | { |
2676 | } | 2676 | newCompositeNode(grammarAccess.getConfigDeclarationAccess().getSpecificationConfigSpecificationParserRuleCall_2_0()); |
2677 | ) | 2677 | } |
2678 | ) | 2678 | lv_specification_2_0=ruleConfigSpecification |
2679 | ) | 2679 | { |
2680 | ( | 2680 | if ($current==null) { |
2681 | ( | 2681 | $current = createModelElementForParent(grammarAccess.getConfigDeclarationRule()); |
2682 | ( | 2682 | } |
2683 | { | 2683 | set( |
2684 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2684 | $current, |
2685 | } | 2685 | "specification", |
2686 | lv_number_4_0=ruleExactNumber | 2686 | lv_specification_2_0, |
2687 | { | 2687 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigSpecification"); |
2688 | if ($current==null) { | 2688 | afterParserOrEnumRuleCall(); |
2689 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | 2689 | } |
2690 | } | 2690 | ) |
2691 | set( | 2691 | ) |
2692 | $current, | 2692 | ) |
2693 | "number", | 2693 | ; |
2694 | lv_number_4_0, | 2694 | |
2695 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2695 | // Entry rule entryRuleConfigEntry |
2696 | afterParserOrEnumRuleCall(); | 2696 | entryRuleConfigEntry returns [EObject current=null]: |
2697 | } | 2697 | { newCompositeNode(grammarAccess.getConfigEntryRule()); } |
2698 | ) | 2698 | iv_ruleConfigEntry=ruleConfigEntry |
2699 | ) | 2699 | { $current=$iv_ruleConfigEntry.current; } |
2700 | | | 2700 | EOF; |
2701 | ( | 2701 | |
2702 | ( | 2702 | // Rule ConfigEntry |
2703 | { | 2703 | ruleConfigEntry returns [EObject current=null] |
2704 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2704 | @init { |
2705 | } | 2705 | enterRule(); |
2706 | lv_number_5_0=ruleIntervallNumber | 2706 | } |
2707 | { | 2707 | @after { |
2708 | if ($current==null) { | 2708 | leaveRule(); |
2709 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | 2709 | }: |
2710 | } | 2710 | ( |
2711 | set( | 2711 | { |
2712 | $current, | 2712 | newCompositeNode(grammarAccess.getConfigEntryAccess().getDocumentationEntryParserRuleCall_0()); |
2713 | "number", | 2713 | } |
2714 | lv_number_5_0, | 2714 | this_DocumentationEntry_0=ruleDocumentationEntry |
2715 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2715 | { |
2716 | afterParserOrEnumRuleCall(); | 2716 | $current = $this_DocumentationEntry_0.current; |
2717 | } | 2717 | afterParserOrEnumRuleCall(); |
2718 | ) | 2718 | } |
2719 | ) | 2719 | | |
2720 | | | 2720 | { |
2721 | ( | 2721 | newCompositeNode(grammarAccess.getConfigEntryAccess().getRuntimeEntryParserRuleCall_1()); |
2722 | ( | 2722 | } |
2723 | { | 2723 | this_RuntimeEntry_1=ruleRuntimeEntry |
2724 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntEnumberationParserRuleCall_3_2_0()); | 2724 | { |
2725 | } | 2725 | $current = $this_RuntimeEntry_1.current; |
2726 | lv_number_6_0=ruleIntEnumberation | 2726 | afterParserOrEnumRuleCall(); |
2727 | { | 2727 | } |
2728 | if ($current==null) { | 2728 | | |
2729 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | 2729 | { |
2730 | } | 2730 | newCompositeNode(grammarAccess.getConfigEntryAccess().getMemoryEntryParserRuleCall_2()); |
2731 | set( | 2731 | } |
2732 | $current, | 2732 | this_MemoryEntry_2=ruleMemoryEntry |
2733 | "number", | 2733 | { |
2734 | lv_number_6_0, | 2734 | $current = $this_MemoryEntry_2.current; |
2735 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntEnumberation"); | 2735 | afterParserOrEnumRuleCall(); |
2736 | afterParserOrEnumRuleCall(); | 2736 | } |
2737 | } | 2737 | | |
2738 | ) | 2738 | { |
2739 | ) | 2739 | newCompositeNode(grammarAccess.getConfigEntryAccess().getCustomEntryParserRuleCall_3()); |
2740 | ) | 2740 | } |
2741 | ) | 2741 | this_CustomEntry_3=ruleCustomEntry |
2742 | ; | 2742 | { |
2743 | 2743 | $current = $this_CustomEntry_3.current; | |
2744 | // Entry rule entryRuleRealTypeScope | 2744 | afterParserOrEnumRuleCall(); |
2745 | entryRuleRealTypeScope returns [EObject current=null]: | 2745 | } |
2746 | { newCompositeNode(grammarAccess.getRealTypeScopeRule()); } | 2746 | ) |
2747 | iv_ruleRealTypeScope=ruleRealTypeScope | 2747 | ; |
2748 | { $current=$iv_ruleRealTypeScope.current; } | 2748 | |
2749 | EOF; | 2749 | // Entry rule entryRuleDocumentationEntry |
2750 | 2750 | entryRuleDocumentationEntry returns [EObject current=null]: | |
2751 | // Rule RealTypeScope | 2751 | { newCompositeNode(grammarAccess.getDocumentationEntryRule()); } |
2752 | ruleRealTypeScope returns [EObject current=null] | 2752 | iv_ruleDocumentationEntry=ruleDocumentationEntry |
2753 | @init { | 2753 | { $current=$iv_ruleDocumentationEntry.current; } |
2754 | enterRule(); | 2754 | EOF; |
2755 | } | 2755 | |
2756 | @after { | 2756 | // Rule DocumentationEntry |
2757 | leaveRule(); | 2757 | ruleDocumentationEntry returns [EObject current=null] |
2758 | }: | 2758 | @init { |
2759 | ( | 2759 | enterRule(); |
2760 | otherlv_0='#' | 2760 | } |
2761 | { | 2761 | @after { |
2762 | newLeafNode(otherlv_0, grammarAccess.getRealTypeScopeAccess().getNumberSignKeyword_0()); | 2762 | leaveRule(); |
2763 | } | 2763 | }: |
2764 | ( | 2764 | ( |
2765 | ( | 2765 | otherlv_0='log-level' |
2766 | { | 2766 | { |
2767 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getTypeRealReferenceParserRuleCall_1_0()); | 2767 | newLeafNode(otherlv_0, grammarAccess.getDocumentationEntryAccess().getLogLevelKeyword_0()); |
2768 | } | 2768 | } |
2769 | lv_type_1_0=ruleRealReference | 2769 | otherlv_1='=' |
2770 | { | 2770 | { |
2771 | if ($current==null) { | 2771 | newLeafNode(otherlv_1, grammarAccess.getDocumentationEntryAccess().getEqualsSignKeyword_1()); |
2772 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | 2772 | } |
2773 | } | 2773 | ( |
2774 | set( | 2774 | ( |
2775 | $current, | 2775 | { |
2776 | "type", | 2776 | newCompositeNode(grammarAccess.getDocumentationEntryAccess().getLevelDocumentLevelSpecificationEnumRuleCall_2_0()); |
2777 | lv_type_1_0, | 2777 | } |
2778 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealReference"); | 2778 | lv_level_2_0=ruleDocumentLevelSpecification |
2779 | afterParserOrEnumRuleCall(); | 2779 | { |
2780 | } | 2780 | if ($current==null) { |
2781 | ) | 2781 | $current = createModelElementForParent(grammarAccess.getDocumentationEntryRule()); |
2782 | ) | 2782 | } |
2783 | ( | 2783 | set( |
2784 | ( | 2784 | $current, |
2785 | ( | 2785 | "level", |
2786 | lv_setsNew_2_0='+=' | 2786 | lv_level_2_0, |
2787 | { | 2787 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.DocumentLevelSpecification"); |
2788 | newLeafNode(lv_setsNew_2_0, grammarAccess.getRealTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2788 | afterParserOrEnumRuleCall(); |
2789 | } | 2789 | } |
2790 | { | 2790 | ) |
2791 | if ($current==null) { | 2791 | ) |
2792 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); | 2792 | ) |
2793 | } | 2793 | ; |
2794 | setWithLastConsumed($current, "setsNew", true, "+="); | 2794 | |
2795 | } | 2795 | // Entry rule entryRuleRuntimeEntry |
2796 | ) | 2796 | entryRuleRuntimeEntry returns [EObject current=null]: |
2797 | ) | 2797 | { newCompositeNode(grammarAccess.getRuntimeEntryRule()); } |
2798 | | | 2798 | iv_ruleRuntimeEntry=ruleRuntimeEntry |
2799 | ( | 2799 | { $current=$iv_ruleRuntimeEntry.current; } |
2800 | ( | 2800 | EOF; |
2801 | lv_setsSum_3_0='=' | 2801 | |
2802 | { | 2802 | // Rule RuntimeEntry |
2803 | newLeafNode(lv_setsSum_3_0, grammarAccess.getRealTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2803 | ruleRuntimeEntry returns [EObject current=null] |
2804 | } | 2804 | @init { |
2805 | { | 2805 | enterRule(); |
2806 | if ($current==null) { | 2806 | } |
2807 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); | 2807 | @after { |
2808 | } | 2808 | leaveRule(); |
2809 | setWithLastConsumed($current, "setsSum", true, "="); | 2809 | }: |
2810 | } | 2810 | ( |
2811 | ) | 2811 | otherlv_0='runtime' |
2812 | ) | 2812 | { |
2813 | ) | 2813 | newLeafNode(otherlv_0, grammarAccess.getRuntimeEntryAccess().getRuntimeKeyword_0()); |
2814 | ( | 2814 | } |
2815 | ( | 2815 | otherlv_1='=' |
2816 | ( | 2816 | { |
2817 | { | 2817 | newLeafNode(otherlv_1, grammarAccess.getRuntimeEntryAccess().getEqualsSignKeyword_1()); |
2818 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2818 | } |
2819 | } | 2819 | ( |
2820 | lv_number_4_0=ruleExactNumber | 2820 | ( |
2821 | { | 2821 | lv_millisecLimit_2_0=RULE_INT |
2822 | if ($current==null) { | 2822 | { |
2823 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | 2823 | newLeafNode(lv_millisecLimit_2_0, grammarAccess.getRuntimeEntryAccess().getMillisecLimitINTTerminalRuleCall_2_0()); |
2824 | } | 2824 | } |
2825 | set( | 2825 | { |
2826 | $current, | 2826 | if ($current==null) { |
2827 | "number", | 2827 | $current = createModelElement(grammarAccess.getRuntimeEntryRule()); |
2828 | lv_number_4_0, | 2828 | } |
2829 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2829 | setWithLastConsumed( |
2830 | afterParserOrEnumRuleCall(); | 2830 | $current, |
2831 | } | 2831 | "millisecLimit", |
2832 | ) | 2832 | lv_millisecLimit_2_0, |
2833 | ) | 2833 | "org.eclipse.xtext.common.Terminals.INT"); |
2834 | | | 2834 | } |
2835 | ( | 2835 | ) |
2836 | ( | 2836 | ) |
2837 | { | 2837 | ) |
2838 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2838 | ; |
2839 | } | 2839 | |
2840 | lv_number_5_0=ruleIntervallNumber | 2840 | // Entry rule entryRuleMemoryEntry |
2841 | { | 2841 | entryRuleMemoryEntry returns [EObject current=null]: |
2842 | if ($current==null) { | 2842 | { newCompositeNode(grammarAccess.getMemoryEntryRule()); } |
2843 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | 2843 | iv_ruleMemoryEntry=ruleMemoryEntry |
2844 | } | 2844 | { $current=$iv_ruleMemoryEntry.current; } |
2845 | set( | 2845 | EOF; |
2846 | $current, | 2846 | |
2847 | "number", | 2847 | // Rule MemoryEntry |
2848 | lv_number_5_0, | 2848 | ruleMemoryEntry returns [EObject current=null] |
2849 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2849 | @init { |
2850 | afterParserOrEnumRuleCall(); | 2850 | enterRule(); |
2851 | } | 2851 | } |
2852 | ) | 2852 | @after { |
2853 | ) | 2853 | leaveRule(); |
2854 | | | 2854 | }: |
2855 | ( | 2855 | ( |
2856 | ( | 2856 | otherlv_0='memory' |
2857 | { | 2857 | { |
2858 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberRealEnumerationParserRuleCall_3_2_0()); | 2858 | newLeafNode(otherlv_0, grammarAccess.getMemoryEntryAccess().getMemoryKeyword_0()); |
2859 | } | 2859 | } |
2860 | lv_number_6_0=ruleRealEnumeration | 2860 | otherlv_1='=' |
2861 | { | 2861 | { |
2862 | if ($current==null) { | 2862 | newLeafNode(otherlv_1, grammarAccess.getMemoryEntryAccess().getEqualsSignKeyword_1()); |
2863 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | 2863 | } |
2864 | } | 2864 | ( |
2865 | set( | 2865 | ( |
2866 | $current, | 2866 | lv_megabyteLimit_2_0=RULE_INT |
2867 | "number", | 2867 | { |
2868 | lv_number_6_0, | 2868 | newLeafNode(lv_megabyteLimit_2_0, grammarAccess.getMemoryEntryAccess().getMegabyteLimitINTTerminalRuleCall_2_0()); |
2869 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealEnumeration"); | 2869 | } |
2870 | afterParserOrEnumRuleCall(); | 2870 | { |
2871 | } | 2871 | if ($current==null) { |
2872 | ) | 2872 | $current = createModelElement(grammarAccess.getMemoryEntryRule()); |
2873 | ) | 2873 | } |
2874 | ) | 2874 | setWithLastConsumed( |
2875 | ) | 2875 | $current, |
2876 | ; | 2876 | "megabyteLimit", |
2877 | 2877 | lv_megabyteLimit_2_0, | |
2878 | // Entry rule entryRuleStringTypeScope | 2878 | "org.eclipse.xtext.common.Terminals.INT"); |
2879 | entryRuleStringTypeScope returns [EObject current=null]: | 2879 | } |
2880 | { newCompositeNode(grammarAccess.getStringTypeScopeRule()); } | 2880 | ) |
2881 | iv_ruleStringTypeScope=ruleStringTypeScope | 2881 | ) |
2882 | { $current=$iv_ruleStringTypeScope.current; } | 2882 | ) |
2883 | EOF; | 2883 | ; |
2884 | 2884 | ||
2885 | // Rule StringTypeScope | 2885 | // Entry rule entryRuleCustomEntry |
2886 | ruleStringTypeScope returns [EObject current=null] | 2886 | entryRuleCustomEntry returns [EObject current=null]: |
2887 | @init { | 2887 | { newCompositeNode(grammarAccess.getCustomEntryRule()); } |
2888 | enterRule(); | 2888 | iv_ruleCustomEntry=ruleCustomEntry |
2889 | } | 2889 | { $current=$iv_ruleCustomEntry.current; } |
2890 | @after { | 2890 | EOF; |
2891 | leaveRule(); | 2891 | |
2892 | }: | 2892 | // Rule CustomEntry |
2893 | ( | 2893 | ruleCustomEntry returns [EObject current=null] |
2894 | otherlv_0='#' | 2894 | @init { |
2895 | { | 2895 | enterRule(); |
2896 | newLeafNode(otherlv_0, grammarAccess.getStringTypeScopeAccess().getNumberSignKeyword_0()); | 2896 | } |
2897 | } | 2897 | @after { |
2898 | ( | 2898 | leaveRule(); |
2899 | ( | 2899 | }: |
2900 | { | 2900 | ( |
2901 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getTypeStringReferenceParserRuleCall_1_0()); | 2901 | ( |
2902 | } | 2902 | ( |
2903 | lv_type_1_0=ruleStringReference | 2903 | lv_key_0_0=RULE_STRING |
2904 | { | 2904 | { |
2905 | if ($current==null) { | 2905 | newLeafNode(lv_key_0_0, grammarAccess.getCustomEntryAccess().getKeySTRINGTerminalRuleCall_0_0()); |
2906 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | 2906 | } |
2907 | } | 2907 | { |
2908 | set( | 2908 | if ($current==null) { |
2909 | $current, | 2909 | $current = createModelElement(grammarAccess.getCustomEntryRule()); |
2910 | "type", | 2910 | } |
2911 | lv_type_1_0, | 2911 | setWithLastConsumed( |
2912 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringReference"); | 2912 | $current, |
2913 | afterParserOrEnumRuleCall(); | 2913 | "key", |
2914 | } | 2914 | lv_key_0_0, |
2915 | ) | 2915 | "org.eclipse.xtext.common.Terminals.STRING"); |
2916 | ) | 2916 | } |
2917 | ( | 2917 | ) |
2918 | ( | 2918 | ) |
2919 | ( | 2919 | otherlv_1='=' |
2920 | lv_setsNew_2_0='+=' | 2920 | { |
2921 | { | 2921 | newLeafNode(otherlv_1, grammarAccess.getCustomEntryAccess().getEqualsSignKeyword_1()); |
2922 | newLeafNode(lv_setsNew_2_0, grammarAccess.getStringTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2922 | } |
2923 | } | 2923 | ( |
2924 | { | 2924 | ( |
2925 | if ($current==null) { | 2925 | lv_value_2_0=RULE_STRING |
2926 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); | 2926 | { |
2927 | } | 2927 | newLeafNode(lv_value_2_0, grammarAccess.getCustomEntryAccess().getValueSTRINGTerminalRuleCall_2_0()); |
2928 | setWithLastConsumed($current, "setsNew", true, "+="); | 2928 | } |
2929 | } | 2929 | { |
2930 | ) | 2930 | if ($current==null) { |
2931 | ) | 2931 | $current = createModelElement(grammarAccess.getCustomEntryRule()); |
2932 | | | 2932 | } |
2933 | ( | 2933 | setWithLastConsumed( |
2934 | ( | 2934 | $current, |
2935 | lv_setsSum_3_0='=' | 2935 | "value", |
2936 | { | 2936 | lv_value_2_0, |
2937 | newLeafNode(lv_setsSum_3_0, grammarAccess.getStringTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2937 | "org.eclipse.xtext.common.Terminals.STRING"); |
2938 | } | 2938 | } |
2939 | { | 2939 | ) |
2940 | if ($current==null) { | 2940 | ) |
2941 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); | 2941 | ) |
2942 | } | 2942 | ; |
2943 | setWithLastConsumed($current, "setsSum", true, "="); | 2943 | |
2944 | } | 2944 | // Entry rule entryRuleConfigReference |
2945 | ) | 2945 | entryRuleConfigReference returns [EObject current=null]: |
2946 | ) | 2946 | { newCompositeNode(grammarAccess.getConfigReferenceRule()); } |
2947 | ) | 2947 | iv_ruleConfigReference=ruleConfigReference |
2948 | ( | 2948 | { $current=$iv_ruleConfigReference.current; } |
2949 | ( | 2949 | EOF; |
2950 | ( | 2950 | |
2951 | { | 2951 | // Rule ConfigReference |
2952 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2952 | ruleConfigReference returns [EObject current=null] |
2953 | } | 2953 | @init { |
2954 | lv_number_4_0=ruleExactNumber | 2954 | enterRule(); |
2955 | { | 2955 | } |
2956 | if ($current==null) { | 2956 | @after { |
2957 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | 2957 | leaveRule(); |
2958 | } | 2958 | }: |
2959 | set( | 2959 | ( |
2960 | $current, | 2960 | ( |
2961 | "number", | 2961 | { |
2962 | lv_number_4_0, | 2962 | if ($current==null) { |
2963 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2963 | $current = createModelElement(grammarAccess.getConfigReferenceRule()); |
2964 | afterParserOrEnumRuleCall(); | 2964 | } |
2965 | } | 2965 | } |
2966 | ) | 2966 | otherlv_0=RULE_ID |
2967 | ) | 2967 | { |
2968 | | | 2968 | newLeafNode(otherlv_0, grammarAccess.getConfigReferenceAccess().getConfigConfigDeclarationCrossReference_0()); |
2969 | ( | 2969 | } |
2970 | ( | 2970 | ) |
2971 | { | 2971 | ) |
2972 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2972 | ; |
2973 | } | 2973 | |
2974 | lv_number_5_0=ruleIntervallNumber | 2974 | // Entry rule entryRuleConfig |
2975 | { | 2975 | entryRuleConfig returns [EObject current=null]: |
2976 | if ($current==null) { | 2976 | { newCompositeNode(grammarAccess.getConfigRule()); } |
2977 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | 2977 | iv_ruleConfig=ruleConfig |
2978 | } | 2978 | { $current=$iv_ruleConfig.current; } |
2979 | set( | 2979 | EOF; |
2980 | $current, | 2980 | |
2981 | "number", | 2981 | // Rule Config |
2982 | lv_number_5_0, | 2982 | ruleConfig returns [EObject current=null] |
2983 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2983 | @init { |
2984 | afterParserOrEnumRuleCall(); | 2984 | enterRule(); |
2985 | } | 2985 | } |
2986 | ) | 2986 | @after { |
2987 | ) | 2987 | leaveRule(); |
2988 | | | 2988 | }: |
2989 | ( | 2989 | ( |
2990 | ( | 2990 | { |
2991 | { | 2991 | newCompositeNode(grammarAccess.getConfigAccess().getConfigSpecificationParserRuleCall_0()); |
2992 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberStringEnumerationParserRuleCall_3_2_0()); | 2992 | } |
2993 | } | 2993 | this_ConfigSpecification_0=ruleConfigSpecification |
2994 | lv_number_6_0=ruleStringEnumeration | 2994 | { |
2995 | { | 2995 | $current = $this_ConfigSpecification_0.current; |
2996 | if ($current==null) { | 2996 | afterParserOrEnumRuleCall(); |
2997 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | 2997 | } |
2998 | } | 2998 | | |
2999 | set( | 2999 | { |
3000 | $current, | 3000 | newCompositeNode(grammarAccess.getConfigAccess().getConfigReferenceParserRuleCall_1()); |
3001 | "number", | 3001 | } |
3002 | lv_number_6_0, | 3002 | this_ConfigReference_1=ruleConfigReference |
3003 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringEnumeration"); | 3003 | { |
3004 | afterParserOrEnumRuleCall(); | 3004 | $current = $this_ConfigReference_1.current; |
3005 | } | 3005 | afterParserOrEnumRuleCall(); |
3006 | ) | 3006 | } |
3007 | ) | 3007 | ) |
3008 | ) | 3008 | ; |
3009 | ) | 3009 | |
3010 | ; | 3010 | // Entry rule entryRuleScopeSpecification |
3011 | 3011 | entryRuleScopeSpecification returns [EObject current=null]: | |
3012 | // Entry rule entryRuleClassReference | 3012 | { newCompositeNode(grammarAccess.getScopeSpecificationRule()); } |
3013 | entryRuleClassReference returns [EObject current=null]: | 3013 | iv_ruleScopeSpecification=ruleScopeSpecification |
3014 | { newCompositeNode(grammarAccess.getClassReferenceRule()); } | 3014 | { $current=$iv_ruleScopeSpecification.current; } |
3015 | iv_ruleClassReference=ruleClassReference | 3015 | EOF; |
3016 | { $current=$iv_ruleClassReference.current; } | 3016 | |
3017 | EOF; | 3017 | // Rule ScopeSpecification |
3018 | 3018 | ruleScopeSpecification returns [EObject current=null] | |
3019 | // Rule ClassReference | 3019 | @init { |
3020 | ruleClassReference returns [EObject current=null] | 3020 | enterRule(); |
3021 | @init { | 3021 | } |
3022 | enterRule(); | 3022 | @after { |
3023 | } | 3023 | leaveRule(); |
3024 | @after { | 3024 | }: |
3025 | leaveRule(); | 3025 | ( |
3026 | }: | 3026 | ( |
3027 | ( | 3027 | { |
3028 | otherlv_0='<' | 3028 | $current = forceCreateModelElement( |
3029 | { | 3029 | grammarAccess.getScopeSpecificationAccess().getScopeSpecificationAction_0(), |
3030 | newLeafNode(otherlv_0, grammarAccess.getClassReferenceAccess().getLessThanSignKeyword_0()); | 3030 | $current); |
3031 | } | 3031 | } |
3032 | ( | 3032 | ) |
3033 | ( | 3033 | otherlv_1='{' |
3034 | { | 3034 | { |
3035 | newCompositeNode(grammarAccess.getClassReferenceAccess().getElementMetamodelElementParserRuleCall_1_0()); | 3035 | newLeafNode(otherlv_1, grammarAccess.getScopeSpecificationAccess().getLeftCurlyBracketKeyword_1()); |
3036 | } | 3036 | } |
3037 | lv_element_1_0=ruleMetamodelElement | 3037 | ( |
3038 | { | 3038 | ( |
3039 | if ($current==null) { | 3039 | ( |
3040 | $current = createModelElementForParent(grammarAccess.getClassReferenceRule()); | 3040 | { |
3041 | } | 3041 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_0_0()); |
3042 | set( | 3042 | } |
3043 | $current, | 3043 | lv_scopes_2_0=ruleTypeScope |
3044 | "element", | 3044 | { |
3045 | lv_element_1_0, | 3045 | if ($current==null) { |
3046 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | 3046 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); |
3047 | afterParserOrEnumRuleCall(); | 3047 | } |
3048 | } | 3048 | add( |
3049 | ) | 3049 | $current, |
3050 | ) | 3050 | "scopes", |
3051 | otherlv_2='>' | 3051 | lv_scopes_2_0, |
3052 | { | 3052 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); |
3053 | newLeafNode(otherlv_2, grammarAccess.getClassReferenceAccess().getGreaterThanSignKeyword_2()); | 3053 | afterParserOrEnumRuleCall(); |
3054 | } | 3054 | } |
3055 | ) | 3055 | ) |
3056 | ; | 3056 | ) |
3057 | 3057 | ( | |
3058 | // Entry rule entryRuleObjectReference | 3058 | otherlv_3=',' |
3059 | entryRuleObjectReference returns [EObject current=null]: | 3059 | { |
3060 | { newCompositeNode(grammarAccess.getObjectReferenceRule()); } | 3060 | newLeafNode(otherlv_3, grammarAccess.getScopeSpecificationAccess().getCommaKeyword_2_1_0()); |
3061 | iv_ruleObjectReference=ruleObjectReference | 3061 | } |
3062 | { $current=$iv_ruleObjectReference.current; } | 3062 | ( |
3063 | EOF; | 3063 | ( |
3064 | 3064 | { | |
3065 | // Rule ObjectReference | 3065 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_1_1_0()); |
3066 | ruleObjectReference returns [EObject current=null] | 3066 | } |
3067 | @init { | 3067 | lv_scopes_4_0=ruleTypeScope |
3068 | enterRule(); | 3068 | { |
3069 | } | 3069 | if ($current==null) { |
3070 | @after { | 3070 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); |
3071 | leaveRule(); | 3071 | } |
3072 | }: | 3072 | add( |
3073 | ( | 3073 | $current, |
3074 | ( | 3074 | "scopes", |
3075 | { | 3075 | lv_scopes_4_0, |
3076 | $current = forceCreateModelElement( | 3076 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); |
3077 | grammarAccess.getObjectReferenceAccess().getObjectReferenceAction_0(), | 3077 | afterParserOrEnumRuleCall(); |
3078 | $current); | 3078 | } |
3079 | } | 3079 | ) |
3080 | ) | 3080 | ) |
3081 | otherlv_1='node' | 3081 | )* |
3082 | { | 3082 | )? |
3083 | newLeafNode(otherlv_1, grammarAccess.getObjectReferenceAccess().getNodeKeyword_1()); | 3083 | otherlv_5='}' |
3084 | } | 3084 | { |
3085 | ) | 3085 | newLeafNode(otherlv_5, grammarAccess.getScopeSpecificationAccess().getRightCurlyBracketKeyword_3()); |
3086 | ; | 3086 | } |
3087 | 3087 | ) | |
3088 | // Entry rule entryRuleIntegerReference | 3088 | ; |
3089 | entryRuleIntegerReference returns [EObject current=null]: | 3089 | |
3090 | { newCompositeNode(grammarAccess.getIntegerReferenceRule()); } | 3090 | // Entry rule entryRuleTypeScope |
3091 | iv_ruleIntegerReference=ruleIntegerReference | 3091 | entryRuleTypeScope returns [EObject current=null]: |
3092 | { $current=$iv_ruleIntegerReference.current; } | 3092 | { newCompositeNode(grammarAccess.getTypeScopeRule()); } |
3093 | EOF; | 3093 | iv_ruleTypeScope=ruleTypeScope |
3094 | 3094 | { $current=$iv_ruleTypeScope.current; } | |
3095 | // Rule IntegerReference | 3095 | EOF; |
3096 | ruleIntegerReference returns [EObject current=null] | 3096 | |
3097 | @init { | 3097 | // Rule TypeScope |
3098 | enterRule(); | 3098 | ruleTypeScope returns [EObject current=null] |
3099 | } | 3099 | @init { |
3100 | @after { | 3100 | enterRule(); |
3101 | leaveRule(); | 3101 | } |
3102 | }: | 3102 | @after { |
3103 | ( | 3103 | leaveRule(); |
3104 | ( | 3104 | }: |
3105 | { | 3105 | ( |
3106 | $current = forceCreateModelElement( | 3106 | { |
3107 | grammarAccess.getIntegerReferenceAccess().getIntegerScopeAction_0(), | 3107 | newCompositeNode(grammarAccess.getTypeScopeAccess().getClassTypeScopeParserRuleCall_0()); |
3108 | $current); | 3108 | } |
3109 | } | 3109 | this_ClassTypeScope_0=ruleClassTypeScope |
3110 | ) | 3110 | { |
3111 | otherlv_1='int' | 3111 | $current = $this_ClassTypeScope_0.current; |
3112 | { | 3112 | afterParserOrEnumRuleCall(); |
3113 | newLeafNode(otherlv_1, grammarAccess.getIntegerReferenceAccess().getIntKeyword_1()); | 3113 | } |
3114 | } | 3114 | | |
3115 | ) | 3115 | { |
3116 | ; | 3116 | newCompositeNode(grammarAccess.getTypeScopeAccess().getObjectTypeScopeParserRuleCall_1()); |
3117 | 3117 | } | |
3118 | // Entry rule entryRuleRealReference | 3118 | this_ObjectTypeScope_1=ruleObjectTypeScope |
3119 | entryRuleRealReference returns [EObject current=null]: | 3119 | { |
3120 | { newCompositeNode(grammarAccess.getRealReferenceRule()); } | 3120 | $current = $this_ObjectTypeScope_1.current; |
3121 | iv_ruleRealReference=ruleRealReference | 3121 | afterParserOrEnumRuleCall(); |
3122 | { $current=$iv_ruleRealReference.current; } | 3122 | } |
3123 | EOF; | 3123 | | |
3124 | 3124 | { | |
3125 | // Rule RealReference | 3125 | newCompositeNode(grammarAccess.getTypeScopeAccess().getIntegerTypeScopeParserRuleCall_2()); |
3126 | ruleRealReference returns [EObject current=null] | 3126 | } |
3127 | @init { | 3127 | this_IntegerTypeScope_2=ruleIntegerTypeScope |
3128 | enterRule(); | 3128 | { |
3129 | } | 3129 | $current = $this_IntegerTypeScope_2.current; |
3130 | @after { | 3130 | afterParserOrEnumRuleCall(); |
3131 | leaveRule(); | 3131 | } |
3132 | }: | 3132 | | |
3133 | ( | 3133 | { |
3134 | ( | 3134 | newCompositeNode(grammarAccess.getTypeScopeAccess().getRealTypeScopeParserRuleCall_3()); |
3135 | { | 3135 | } |
3136 | $current = forceCreateModelElement( | 3136 | this_RealTypeScope_3=ruleRealTypeScope |
3137 | grammarAccess.getRealReferenceAccess().getRealScopeAction_0(), | 3137 | { |
3138 | $current); | 3138 | $current = $this_RealTypeScope_3.current; |
3139 | } | 3139 | afterParserOrEnumRuleCall(); |
3140 | ) | 3140 | } |
3141 | otherlv_1='real' | 3141 | | |
3142 | { | 3142 | { |
3143 | newLeafNode(otherlv_1, grammarAccess.getRealReferenceAccess().getRealKeyword_1()); | 3143 | newCompositeNode(grammarAccess.getTypeScopeAccess().getStringTypeScopeParserRuleCall_4()); |
3144 | } | 3144 | } |
3145 | ) | 3145 | this_StringTypeScope_4=ruleStringTypeScope |
3146 | ; | 3146 | { |
3147 | 3147 | $current = $this_StringTypeScope_4.current; | |
3148 | // Entry rule entryRuleStringReference | 3148 | afterParserOrEnumRuleCall(); |
3149 | entryRuleStringReference returns [EObject current=null]: | 3149 | } |
3150 | { newCompositeNode(grammarAccess.getStringReferenceRule()); } | 3150 | ) |
3151 | iv_ruleStringReference=ruleStringReference | 3151 | ; |
3152 | { $current=$iv_ruleStringReference.current; } | 3152 | |
3153 | EOF; | 3153 | // Entry rule entryRuleClassTypeScope |
3154 | 3154 | entryRuleClassTypeScope returns [EObject current=null]: | |
3155 | // Rule StringReference | 3155 | { newCompositeNode(grammarAccess.getClassTypeScopeRule()); } |
3156 | ruleStringReference returns [EObject current=null] | 3156 | iv_ruleClassTypeScope=ruleClassTypeScope |
3157 | @init { | 3157 | { $current=$iv_ruleClassTypeScope.current; } |
3158 | enterRule(); | 3158 | EOF; |
3159 | } | 3159 | |
3160 | @after { | 3160 | // Rule ClassTypeScope |
3161 | leaveRule(); | 3161 | ruleClassTypeScope returns [EObject current=null] |
3162 | }: | 3162 | @init { |
3163 | ( | 3163 | enterRule(); |
3164 | ( | 3164 | } |
3165 | { | 3165 | @after { |
3166 | $current = forceCreateModelElement( | 3166 | leaveRule(); |
3167 | grammarAccess.getStringReferenceAccess().getStringScopeAction_0(), | 3167 | }: |
3168 | $current); | 3168 | ( |
3169 | } | 3169 | otherlv_0='#' |
3170 | ) | 3170 | { |
3171 | otherlv_1='string' | 3171 | newLeafNode(otherlv_0, grammarAccess.getClassTypeScopeAccess().getNumberSignKeyword_0()); |
3172 | { | 3172 | } |
3173 | newLeafNode(otherlv_1, grammarAccess.getStringReferenceAccess().getStringKeyword_1()); | 3173 | ( |
3174 | } | 3174 | ( |
3175 | ) | 3175 | { |
3176 | ; | 3176 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getTypeClassReferenceParserRuleCall_1_0()); |
3177 | 3177 | } | |
3178 | // Entry rule entryRuleExactNumber | 3178 | lv_type_1_0=ruleClassReference |
3179 | entryRuleExactNumber returns [EObject current=null]: | 3179 | { |
3180 | { newCompositeNode(grammarAccess.getExactNumberRule()); } | 3180 | if ($current==null) { |
3181 | iv_ruleExactNumber=ruleExactNumber | 3181 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); |
3182 | { $current=$iv_ruleExactNumber.current; } | 3182 | } |
3183 | EOF; | 3183 | set( |
3184 | 3184 | $current, | |
3185 | // Rule ExactNumber | 3185 | "type", |
3186 | ruleExactNumber returns [EObject current=null] | 3186 | lv_type_1_0, |
3187 | @init { | 3187 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ClassReference"); |
3188 | enterRule(); | 3188 | afterParserOrEnumRuleCall(); |
3189 | } | 3189 | } |
3190 | @after { | 3190 | ) |
3191 | leaveRule(); | 3191 | ) |
3192 | }: | 3192 | ( |
3193 | ( | 3193 | ( |
3194 | ( | 3194 | ( |
3195 | ( | 3195 | lv_setsNew_2_0='+=' |
3196 | lv_exactNumber_0_0=RULE_INT | 3196 | { |
3197 | { | 3197 | newLeafNode(lv_setsNew_2_0, grammarAccess.getClassTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
3198 | newLeafNode(lv_exactNumber_0_0, grammarAccess.getExactNumberAccess().getExactNumberINTTerminalRuleCall_0_0()); | 3198 | } |
3199 | } | 3199 | { |
3200 | { | 3200 | if ($current==null) { |
3201 | if ($current==null) { | 3201 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); |
3202 | $current = createModelElement(grammarAccess.getExactNumberRule()); | 3202 | } |
3203 | } | 3203 | setWithLastConsumed($current, "setsNew", true, "+="); |
3204 | setWithLastConsumed( | 3204 | } |
3205 | $current, | 3205 | ) |
3206 | "exactNumber", | 3206 | ) |
3207 | lv_exactNumber_0_0, | 3207 | | |
3208 | "org.eclipse.xtext.common.Terminals.INT"); | 3208 | ( |
3209 | } | 3209 | ( |
3210 | ) | 3210 | lv_setsSum_3_0='=' |
3211 | ) | 3211 | { |
3212 | | | 3212 | newLeafNode(lv_setsSum_3_0, grammarAccess.getClassTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
3213 | ( | 3213 | } |
3214 | ( | 3214 | { |
3215 | lv_exactUnlimited_1_0='*' | 3215 | if ($current==null) { |
3216 | { | 3216 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); |
3217 | newLeafNode(lv_exactUnlimited_1_0, grammarAccess.getExactNumberAccess().getExactUnlimitedAsteriskKeyword_1_0()); | 3217 | } |
3218 | } | 3218 | setWithLastConsumed($current, "setsSum", true, "="); |
3219 | { | 3219 | } |
3220 | if ($current==null) { | 3220 | ) |
3221 | $current = createModelElement(grammarAccess.getExactNumberRule()); | 3221 | ) |
3222 | } | 3222 | ) |
3223 | setWithLastConsumed($current, "exactUnlimited", true, "*"); | 3223 | ( |
3224 | } | 3224 | ( |
3225 | ) | 3225 | ( |
3226 | ) | 3226 | { |
3227 | ) | 3227 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
3228 | ; | 3228 | } |
3229 | 3229 | lv_number_4_0=ruleExactNumber | |
3230 | // Entry rule entryRuleIntervallNumber | 3230 | { |
3231 | entryRuleIntervallNumber returns [EObject current=null]: | 3231 | if ($current==null) { |
3232 | { newCompositeNode(grammarAccess.getIntervallNumberRule()); } | 3232 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); |
3233 | iv_ruleIntervallNumber=ruleIntervallNumber | 3233 | } |
3234 | { $current=$iv_ruleIntervallNumber.current; } | 3234 | set( |
3235 | EOF; | 3235 | $current, |
3236 | 3236 | "number", | |
3237 | // Rule IntervallNumber | 3237 | lv_number_4_0, |
3238 | ruleIntervallNumber returns [EObject current=null] | 3238 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
3239 | @init { | 3239 | afterParserOrEnumRuleCall(); |
3240 | enterRule(); | 3240 | } |
3241 | } | 3241 | ) |
3242 | @after { | 3242 | ) |
3243 | leaveRule(); | 3243 | | |
3244 | }: | 3244 | ( |
3245 | ( | 3245 | ( |
3246 | ( | 3246 | { |
3247 | ( | 3247 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
3248 | lv_min_0_0=RULE_INT | 3248 | } |
3249 | { | 3249 | lv_number_5_0=ruleIntervallNumber |
3250 | newLeafNode(lv_min_0_0, grammarAccess.getIntervallNumberAccess().getMinINTTerminalRuleCall_0_0()); | 3250 | { |
3251 | } | 3251 | if ($current==null) { |
3252 | { | 3252 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); |
3253 | if ($current==null) { | 3253 | } |
3254 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); | 3254 | set( |
3255 | } | 3255 | $current, |
3256 | setWithLastConsumed( | 3256 | "number", |
3257 | $current, | 3257 | lv_number_5_0, |
3258 | "min", | 3258 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
3259 | lv_min_0_0, | 3259 | afterParserOrEnumRuleCall(); |
3260 | "org.eclipse.xtext.common.Terminals.INT"); | 3260 | } |
3261 | } | 3261 | ) |
3262 | ) | 3262 | ) |
3263 | ) | 3263 | ) |
3264 | otherlv_1='..' | 3264 | ) |
3265 | { | 3265 | ; |
3266 | newLeafNode(otherlv_1, grammarAccess.getIntervallNumberAccess().getFullStopFullStopKeyword_1()); | 3266 | |
3267 | } | 3267 | // Entry rule entryRuleObjectTypeScope |
3268 | ( | 3268 | entryRuleObjectTypeScope returns [EObject current=null]: |
3269 | ( | 3269 | { newCompositeNode(grammarAccess.getObjectTypeScopeRule()); } |
3270 | ( | 3270 | iv_ruleObjectTypeScope=ruleObjectTypeScope |
3271 | lv_maxNumber_2_0=RULE_INT | 3271 | { $current=$iv_ruleObjectTypeScope.current; } |
3272 | { | 3272 | EOF; |
3273 | newLeafNode(lv_maxNumber_2_0, grammarAccess.getIntervallNumberAccess().getMaxNumberINTTerminalRuleCall_2_0_0()); | 3273 | |
3274 | } | 3274 | // Rule ObjectTypeScope |
3275 | { | 3275 | ruleObjectTypeScope returns [EObject current=null] |
3276 | if ($current==null) { | 3276 | @init { |
3277 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); | 3277 | enterRule(); |
3278 | } | 3278 | } |
3279 | setWithLastConsumed( | 3279 | @after { |
3280 | $current, | 3280 | leaveRule(); |
3281 | "maxNumber", | 3281 | }: |
3282 | lv_maxNumber_2_0, | 3282 | ( |
3283 | "org.eclipse.xtext.common.Terminals.INT"); | 3283 | otherlv_0='#' |
3284 | } | 3284 | { |
3285 | ) | 3285 | newLeafNode(otherlv_0, grammarAccess.getObjectTypeScopeAccess().getNumberSignKeyword_0()); |
3286 | ) | 3286 | } |
3287 | | | 3287 | ( |
3288 | ( | 3288 | ( |
3289 | ( | 3289 | { |
3290 | lv_maxUnlimited_3_0='*' | 3290 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getTypeObjectReferenceParserRuleCall_1_0()); |
3291 | { | 3291 | } |
3292 | newLeafNode(lv_maxUnlimited_3_0, grammarAccess.getIntervallNumberAccess().getMaxUnlimitedAsteriskKeyword_2_1_0()); | 3292 | lv_type_1_0=ruleObjectReference |
3293 | } | 3293 | { |
3294 | { | 3294 | if ($current==null) { |
3295 | if ($current==null) { | 3295 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); |
3296 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); | 3296 | } |
3297 | } | 3297 | set( |
3298 | setWithLastConsumed($current, "maxUnlimited", true, "*"); | 3298 | $current, |
3299 | } | 3299 | "type", |
3300 | ) | 3300 | lv_type_1_0, |
3301 | ) | 3301 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectReference"); |
3302 | ) | 3302 | afterParserOrEnumRuleCall(); |
3303 | ) | 3303 | } |
3304 | ; | 3304 | ) |
3305 | 3305 | ) | |
3306 | // Entry rule entryRuleIntEnumberation | 3306 | ( |
3307 | entryRuleIntEnumberation returns [EObject current=null]: | 3307 | ( |
3308 | { newCompositeNode(grammarAccess.getIntEnumberationRule()); } | 3308 | ( |
3309 | iv_ruleIntEnumberation=ruleIntEnumberation | 3309 | lv_setsNew_2_0='+=' |
3310 | { $current=$iv_ruleIntEnumberation.current; } | 3310 | { |
3311 | EOF; | 3311 | newLeafNode(lv_setsNew_2_0, grammarAccess.getObjectTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
3312 | 3312 | } | |
3313 | // Rule IntEnumberation | 3313 | { |
3314 | ruleIntEnumberation returns [EObject current=null] | 3314 | if ($current==null) { |
3315 | @init { | 3315 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); |
3316 | enterRule(); | 3316 | } |
3317 | } | 3317 | setWithLastConsumed($current, "setsNew", true, "+="); |
3318 | @after { | 3318 | } |
3319 | leaveRule(); | 3319 | ) |
3320 | }: | 3320 | ) |
3321 | ( | 3321 | | |
3322 | ( | 3322 | ( |
3323 | { | 3323 | ( |
3324 | $current = forceCreateModelElement( | 3324 | lv_setsSum_3_0='=' |
3325 | grammarAccess.getIntEnumberationAccess().getIntEnumberationAction_0(), | 3325 | { |
3326 | $current); | 3326 | newLeafNode(lv_setsSum_3_0, grammarAccess.getObjectTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
3327 | } | 3327 | } |
3328 | ) | 3328 | { |
3329 | otherlv_1='{' | 3329 | if ($current==null) { |
3330 | { | 3330 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); |
3331 | newLeafNode(otherlv_1, grammarAccess.getIntEnumberationAccess().getLeftCurlyBracketKeyword_1()); | 3331 | } |
3332 | } | 3332 | setWithLastConsumed($current, "setsSum", true, "="); |
3333 | ( | 3333 | } |
3334 | ( | 3334 | ) |
3335 | ( | 3335 | ) |
3336 | { | 3336 | ) |
3337 | newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_0_0()); | 3337 | ( |
3338 | } | 3338 | ( |
3339 | lv_entry_2_0=ruleINTLiteral | 3339 | ( |
3340 | { | 3340 | { |
3341 | if ($current==null) { | 3341 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
3342 | $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); | 3342 | } |
3343 | } | 3343 | lv_number_4_0=ruleExactNumber |
3344 | add( | 3344 | { |
3345 | $current, | 3345 | if ($current==null) { |
3346 | "entry", | 3346 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); |
3347 | lv_entry_2_0, | 3347 | } |
3348 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); | 3348 | set( |
3349 | afterParserOrEnumRuleCall(); | 3349 | $current, |
3350 | } | 3350 | "number", |
3351 | ) | 3351 | lv_number_4_0, |
3352 | ) | 3352 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
3353 | ( | 3353 | afterParserOrEnumRuleCall(); |
3354 | otherlv_3=',' | 3354 | } |
3355 | { | 3355 | ) |
3356 | newLeafNode(otherlv_3, grammarAccess.getIntEnumberationAccess().getCommaKeyword_2_1_0()); | 3356 | ) |
3357 | } | 3357 | | |
3358 | ( | 3358 | ( |
3359 | ( | 3359 | ( |
3360 | { | 3360 | { |
3361 | newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_1_1_0()); | 3361 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
3362 | } | 3362 | } |
3363 | lv_entry_4_0=ruleINTLiteral | 3363 | lv_number_5_0=ruleIntervallNumber |
3364 | { | 3364 | { |
3365 | if ($current==null) { | 3365 | if ($current==null) { |
3366 | $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); | 3366 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); |
3367 | } | 3367 | } |
3368 | add( | 3368 | set( |
3369 | $current, | 3369 | $current, |
3370 | "entry", | 3370 | "number", |
3371 | lv_entry_4_0, | 3371 | lv_number_5_0, |
3372 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); | 3372 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
3373 | afterParserOrEnumRuleCall(); | 3373 | afterParserOrEnumRuleCall(); |
3374 | } | 3374 | } |
3375 | ) | 3375 | ) |
3376 | ) | 3376 | ) |
3377 | )* | 3377 | ) |
3378 | )? | 3378 | ) |
3379 | otherlv_5='}' | 3379 | ; |
3380 | { | 3380 | |
3381 | newLeafNode(otherlv_5, grammarAccess.getIntEnumberationAccess().getRightCurlyBracketKeyword_3()); | 3381 | // Entry rule entryRuleIntegerTypeScope |
3382 | } | 3382 | entryRuleIntegerTypeScope returns [EObject current=null]: |
3383 | ) | 3383 | { newCompositeNode(grammarAccess.getIntegerTypeScopeRule()); } |
3384 | ; | 3384 | iv_ruleIntegerTypeScope=ruleIntegerTypeScope |
3385 | 3385 | { $current=$iv_ruleIntegerTypeScope.current; } | |
3386 | // Entry rule entryRuleRealEnumeration | 3386 | EOF; |
3387 | entryRuleRealEnumeration returns [EObject current=null]: | 3387 | |
3388 | { newCompositeNode(grammarAccess.getRealEnumerationRule()); } | 3388 | // Rule IntegerTypeScope |
3389 | iv_ruleRealEnumeration=ruleRealEnumeration | 3389 | ruleIntegerTypeScope returns [EObject current=null] |
3390 | { $current=$iv_ruleRealEnumeration.current; } | 3390 | @init { |
3391 | EOF; | 3391 | enterRule(); |
3392 | 3392 | } | |
3393 | // Rule RealEnumeration | 3393 | @after { |
3394 | ruleRealEnumeration returns [EObject current=null] | 3394 | leaveRule(); |
3395 | @init { | 3395 | }: |
3396 | enterRule(); | 3396 | ( |
3397 | } | 3397 | otherlv_0='#' |
3398 | @after { | 3398 | { |
3399 | leaveRule(); | 3399 | newLeafNode(otherlv_0, grammarAccess.getIntegerTypeScopeAccess().getNumberSignKeyword_0()); |
3400 | }: | 3400 | } |
3401 | ( | 3401 | ( |
3402 | ( | 3402 | ( |
3403 | { | 3403 | { |
3404 | $current = forceCreateModelElement( | 3404 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getTypeIntegerReferenceParserRuleCall_1_0()); |
3405 | grammarAccess.getRealEnumerationAccess().getRealEnumerationAction_0(), | 3405 | } |
3406 | $current); | 3406 | lv_type_1_0=ruleIntegerReference |
3407 | } | 3407 | { |
3408 | ) | 3408 | if ($current==null) { |
3409 | otherlv_1='{' | 3409 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); |
3410 | { | 3410 | } |
3411 | newLeafNode(otherlv_1, grammarAccess.getRealEnumerationAccess().getLeftCurlyBracketKeyword_1()); | 3411 | set( |
3412 | } | 3412 | $current, |
3413 | ( | 3413 | "type", |
3414 | ( | 3414 | lv_type_1_0, |
3415 | ( | 3415 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntegerReference"); |
3416 | { | 3416 | afterParserOrEnumRuleCall(); |
3417 | newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_0_0()); | 3417 | } |
3418 | } | 3418 | ) |
3419 | lv_entry_2_0=ruleREALLiteral | 3419 | ) |
3420 | { | 3420 | ( |
3421 | if ($current==null) { | 3421 | ( |
3422 | $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); | 3422 | ( |
3423 | } | 3423 | lv_setsNew_2_0='+=' |
3424 | add( | 3424 | { |
3425 | $current, | 3425 | newLeafNode(lv_setsNew_2_0, grammarAccess.getIntegerTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
3426 | "entry", | 3426 | } |
3427 | lv_entry_2_0, | 3427 | { |
3428 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); | 3428 | if ($current==null) { |
3429 | afterParserOrEnumRuleCall(); | 3429 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); |
3430 | } | 3430 | } |
3431 | ) | 3431 | setWithLastConsumed($current, "setsNew", true, "+="); |
3432 | ) | 3432 | } |
3433 | ( | 3433 | ) |
3434 | otherlv_3=',' | 3434 | ) |
3435 | { | 3435 | | |
3436 | newLeafNode(otherlv_3, grammarAccess.getRealEnumerationAccess().getCommaKeyword_2_1_0()); | 3436 | ( |
3437 | } | 3437 | ( |
3438 | ( | 3438 | lv_setsSum_3_0='=' |
3439 | ( | 3439 | { |
3440 | { | 3440 | newLeafNode(lv_setsSum_3_0, grammarAccess.getIntegerTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
3441 | newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_1_1_0()); | 3441 | } |
3442 | } | 3442 | { |
3443 | lv_entry_4_0=ruleREALLiteral | 3443 | if ($current==null) { |
3444 | { | 3444 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); |
3445 | if ($current==null) { | 3445 | } |
3446 | $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); | 3446 | setWithLastConsumed($current, "setsSum", true, "="); |
3447 | } | 3447 | } |
3448 | add( | 3448 | ) |
3449 | $current, | 3449 | ) |
3450 | "entry", | 3450 | ) |
3451 | lv_entry_4_0, | 3451 | ( |
3452 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); | 3452 | ( |
3453 | afterParserOrEnumRuleCall(); | 3453 | ( |
3454 | } | 3454 | { |
3455 | ) | 3455 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
3456 | ) | 3456 | } |
3457 | )* | 3457 | lv_number_4_0=ruleExactNumber |
3458 | )? | 3458 | { |
3459 | otherlv_5='}' | 3459 | if ($current==null) { |
3460 | { | 3460 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); |
3461 | newLeafNode(otherlv_5, grammarAccess.getRealEnumerationAccess().getRightCurlyBracketKeyword_3()); | 3461 | } |
3462 | } | 3462 | set( |
3463 | ) | 3463 | $current, |
3464 | ; | 3464 | "number", |
3465 | 3465 | lv_number_4_0, | |
3466 | // Entry rule entryRuleStringEnumeration | 3466 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
3467 | entryRuleStringEnumeration returns [EObject current=null]: | 3467 | afterParserOrEnumRuleCall(); |
3468 | { newCompositeNode(grammarAccess.getStringEnumerationRule()); } | 3468 | } |
3469 | iv_ruleStringEnumeration=ruleStringEnumeration | 3469 | ) |
3470 | { $current=$iv_ruleStringEnumeration.current; } | 3470 | ) |
3471 | EOF; | 3471 | | |
3472 | 3472 | ( | |
3473 | // Rule StringEnumeration | 3473 | ( |
3474 | ruleStringEnumeration returns [EObject current=null] | 3474 | { |
3475 | @init { | 3475 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
3476 | enterRule(); | 3476 | } |
3477 | } | 3477 | lv_number_5_0=ruleIntervallNumber |
3478 | @after { | 3478 | { |
3479 | leaveRule(); | 3479 | if ($current==null) { |
3480 | }: | 3480 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); |
3481 | ( | 3481 | } |
3482 | ( | 3482 | set( |
3483 | { | 3483 | $current, |
3484 | $current = forceCreateModelElement( | 3484 | "number", |
3485 | grammarAccess.getStringEnumerationAccess().getStringEnumerationAction_0(), | 3485 | lv_number_5_0, |
3486 | $current); | 3486 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
3487 | } | 3487 | afterParserOrEnumRuleCall(); |
3488 | ) | 3488 | } |
3489 | otherlv_1='{' | 3489 | ) |
3490 | { | 3490 | ) |
3491 | newLeafNode(otherlv_1, grammarAccess.getStringEnumerationAccess().getLeftCurlyBracketKeyword_1()); | 3491 | | |
3492 | } | 3492 | ( |
3493 | ( | 3493 | ( |
3494 | ( | 3494 | { |
3495 | ( | 3495 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntEnumberationParserRuleCall_3_2_0()); |
3496 | lv_entry_2_0=RULE_STRING | 3496 | } |
3497 | { | 3497 | lv_number_6_0=ruleIntEnumberation |
3498 | newLeafNode(lv_entry_2_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_0_0()); | 3498 | { |
3499 | } | 3499 | if ($current==null) { |
3500 | { | 3500 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); |
3501 | if ($current==null) { | 3501 | } |
3502 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); | 3502 | set( |
3503 | } | 3503 | $current, |
3504 | addWithLastConsumed( | 3504 | "number", |
3505 | $current, | 3505 | lv_number_6_0, |
3506 | "entry", | 3506 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntEnumberation"); |
3507 | lv_entry_2_0, | 3507 | afterParserOrEnumRuleCall(); |
3508 | "org.eclipse.xtext.common.Terminals.STRING"); | 3508 | } |
3509 | } | 3509 | ) |
3510 | ) | 3510 | ) |
3511 | ) | 3511 | ) |
3512 | ( | 3512 | ) |
3513 | otherlv_3=',' | 3513 | ; |
3514 | { | 3514 | |
3515 | newLeafNode(otherlv_3, grammarAccess.getStringEnumerationAccess().getCommaKeyword_2_1_0()); | 3515 | // Entry rule entryRuleRealTypeScope |
3516 | } | 3516 | entryRuleRealTypeScope returns [EObject current=null]: |
3517 | ( | 3517 | { newCompositeNode(grammarAccess.getRealTypeScopeRule()); } |
3518 | ( | 3518 | iv_ruleRealTypeScope=ruleRealTypeScope |
3519 | lv_entry_4_0=RULE_STRING | 3519 | { $current=$iv_ruleRealTypeScope.current; } |
3520 | { | 3520 | EOF; |
3521 | newLeafNode(lv_entry_4_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_1_1_0()); | 3521 | |
3522 | } | 3522 | // Rule RealTypeScope |
3523 | { | 3523 | ruleRealTypeScope returns [EObject current=null] |
3524 | if ($current==null) { | 3524 | @init { |
3525 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); | 3525 | enterRule(); |
3526 | } | 3526 | } |
3527 | addWithLastConsumed( | 3527 | @after { |
3528 | $current, | 3528 | leaveRule(); |
3529 | "entry", | 3529 | }: |
3530 | lv_entry_4_0, | 3530 | ( |
3531 | "org.eclipse.xtext.common.Terminals.STRING"); | 3531 | otherlv_0='#' |
3532 | } | 3532 | { |
3533 | ) | 3533 | newLeafNode(otherlv_0, grammarAccess.getRealTypeScopeAccess().getNumberSignKeyword_0()); |
3534 | ) | 3534 | } |
3535 | )* | 3535 | ( |
3536 | )? | 3536 | ( |
3537 | otherlv_5='}' | 3537 | { |
3538 | { | 3538 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getTypeRealReferenceParserRuleCall_1_0()); |
3539 | newLeafNode(otherlv_5, grammarAccess.getStringEnumerationAccess().getRightCurlyBracketKeyword_3()); | 3539 | } |
3540 | } | 3540 | lv_type_1_0=ruleRealReference |
3541 | ) | 3541 | { |
3542 | ; | 3542 | if ($current==null) { |
3543 | 3543 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | |
3544 | // Entry rule entryRuleScopeDeclaration | 3544 | } |
3545 | entryRuleScopeDeclaration returns [EObject current=null]: | 3545 | set( |
3546 | { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } | 3546 | $current, |
3547 | iv_ruleScopeDeclaration=ruleScopeDeclaration | 3547 | "type", |
3548 | { $current=$iv_ruleScopeDeclaration.current; } | 3548 | lv_type_1_0, |
3549 | EOF; | 3549 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealReference"); |
3550 | 3550 | afterParserOrEnumRuleCall(); | |
3551 | // Rule ScopeDeclaration | 3551 | } |
3552 | ruleScopeDeclaration returns [EObject current=null] | 3552 | ) |
3553 | @init { | 3553 | ) |
3554 | enterRule(); | 3554 | ( |
3555 | } | 3555 | ( |
3556 | @after { | 3556 | ( |
3557 | leaveRule(); | 3557 | lv_setsNew_2_0='+=' |
3558 | }: | 3558 | { |
3559 | ( | 3559 | newLeafNode(lv_setsNew_2_0, grammarAccess.getRealTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
3560 | otherlv_0='scope' | 3560 | } |
3561 | { | 3561 | { |
3562 | newLeafNode(otherlv_0, grammarAccess.getScopeDeclarationAccess().getScopeKeyword_0()); | 3562 | if ($current==null) { |
3563 | } | 3563 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); |
3564 | ( | 3564 | } |
3565 | ( | 3565 | setWithLastConsumed($current, "setsNew", true, "+="); |
3566 | lv_name_1_0=RULE_ID | 3566 | } |
3567 | { | 3567 | ) |
3568 | newLeafNode(lv_name_1_0, grammarAccess.getScopeDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | 3568 | ) |
3569 | } | 3569 | | |
3570 | { | 3570 | ( |
3571 | if ($current==null) { | 3571 | ( |
3572 | $current = createModelElement(grammarAccess.getScopeDeclarationRule()); | 3572 | lv_setsSum_3_0='=' |
3573 | } | 3573 | { |
3574 | setWithLastConsumed( | 3574 | newLeafNode(lv_setsSum_3_0, grammarAccess.getRealTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
3575 | $current, | 3575 | } |
3576 | "name", | 3576 | { |
3577 | lv_name_1_0, | 3577 | if ($current==null) { |
3578 | "org.eclipse.xtext.common.Terminals.ID"); | 3578 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); |
3579 | } | 3579 | } |
3580 | ) | 3580 | setWithLastConsumed($current, "setsSum", true, "="); |
3581 | ) | 3581 | } |
3582 | ( | 3582 | ) |
3583 | ( | 3583 | ) |
3584 | { | 3584 | ) |
3585 | newCompositeNode(grammarAccess.getScopeDeclarationAccess().getSpecificationScopeSpecificationParserRuleCall_2_0()); | 3585 | ( |
3586 | } | 3586 | ( |
3587 | lv_specification_2_0=ruleScopeSpecification | 3587 | ( |
3588 | { | 3588 | { |
3589 | if ($current==null) { | 3589 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
3590 | $current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); | 3590 | } |
3591 | } | 3591 | lv_number_4_0=ruleExactNumber |
3592 | set( | 3592 | { |
3593 | $current, | 3593 | if ($current==null) { |
3594 | "specification", | 3594 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); |
3595 | lv_specification_2_0, | 3595 | } |
3596 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ScopeSpecification"); | 3596 | set( |
3597 | afterParserOrEnumRuleCall(); | 3597 | $current, |
3598 | } | 3598 | "number", |
3599 | ) | 3599 | lv_number_4_0, |
3600 | ) | 3600 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
3601 | ) | 3601 | afterParserOrEnumRuleCall(); |
3602 | ; | 3602 | } |
3603 | 3603 | ) | |
3604 | // Entry rule entryRuleScopeReference | 3604 | ) |
3605 | entryRuleScopeReference returns [EObject current=null]: | 3605 | | |
3606 | { newCompositeNode(grammarAccess.getScopeReferenceRule()); } | 3606 | ( |
3607 | iv_ruleScopeReference=ruleScopeReference | 3607 | ( |
3608 | { $current=$iv_ruleScopeReference.current; } | 3608 | { |
3609 | EOF; | 3609 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
3610 | 3610 | } | |
3611 | // Rule ScopeReference | 3611 | lv_number_5_0=ruleIntervallNumber |
3612 | ruleScopeReference returns [EObject current=null] | 3612 | { |
3613 | @init { | 3613 | if ($current==null) { |
3614 | enterRule(); | 3614 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); |
3615 | } | 3615 | } |
3616 | @after { | 3616 | set( |
3617 | leaveRule(); | 3617 | $current, |
3618 | }: | 3618 | "number", |
3619 | ( | 3619 | lv_number_5_0, |
3620 | ( | 3620 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
3621 | { | 3621 | afterParserOrEnumRuleCall(); |
3622 | if ($current==null) { | 3622 | } |
3623 | $current = createModelElement(grammarAccess.getScopeReferenceRule()); | 3623 | ) |
3624 | } | 3624 | ) |
3625 | } | 3625 | | |
3626 | otherlv_0=RULE_ID | 3626 | ( |
3627 | { | 3627 | ( |
3628 | newLeafNode(otherlv_0, grammarAccess.getScopeReferenceAccess().getReferredScopeDeclarationCrossReference_0()); | 3628 | { |
3629 | } | 3629 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberRealEnumerationParserRuleCall_3_2_0()); |
3630 | ) | 3630 | } |
3631 | ) | 3631 | lv_number_6_0=ruleRealEnumeration |
3632 | ; | 3632 | { |
3633 | 3633 | if ($current==null) { | |
3634 | // Entry rule entryRuleScope | 3634 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); |
3635 | entryRuleScope returns [EObject current=null]: | 3635 | } |
3636 | { newCompositeNode(grammarAccess.getScopeRule()); } | 3636 | set( |
3637 | iv_ruleScope=ruleScope | 3637 | $current, |
3638 | { $current=$iv_ruleScope.current; } | 3638 | "number", |
3639 | EOF; | 3639 | lv_number_6_0, |
3640 | 3640 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealEnumeration"); | |
3641 | // Rule Scope | 3641 | afterParserOrEnumRuleCall(); |
3642 | ruleScope returns [EObject current=null] | 3642 | } |
3643 | @init { | 3643 | ) |
3644 | enterRule(); | 3644 | ) |
3645 | } | 3645 | ) |
3646 | @after { | 3646 | ) |
3647 | leaveRule(); | 3647 | ; |
3648 | }: | 3648 | |
3649 | ( | 3649 | // Entry rule entryRuleStringTypeScope |
3650 | { | 3650 | entryRuleStringTypeScope returns [EObject current=null]: |
3651 | newCompositeNode(grammarAccess.getScopeAccess().getScopeSpecificationParserRuleCall_0()); | 3651 | { newCompositeNode(grammarAccess.getStringTypeScopeRule()); } |
3652 | } | 3652 | iv_ruleStringTypeScope=ruleStringTypeScope |
3653 | this_ScopeSpecification_0=ruleScopeSpecification | 3653 | { $current=$iv_ruleStringTypeScope.current; } |
3654 | { | 3654 | EOF; |
3655 | $current = $this_ScopeSpecification_0.current; | 3655 | |
3656 | afterParserOrEnumRuleCall(); | 3656 | // Rule StringTypeScope |
3657 | } | 3657 | ruleStringTypeScope returns [EObject current=null] |
3658 | | | 3658 | @init { |
3659 | { | 3659 | enterRule(); |
3660 | newCompositeNode(grammarAccess.getScopeAccess().getScopeReferenceParserRuleCall_1()); | 3660 | } |
3661 | } | 3661 | @after { |
3662 | this_ScopeReference_1=ruleScopeReference | 3662 | leaveRule(); |
3663 | { | 3663 | }: |
3664 | $current = $this_ScopeReference_1.current; | 3664 | ( |
3665 | afterParserOrEnumRuleCall(); | 3665 | otherlv_0='#' |
3666 | } | 3666 | { |
3667 | ) | 3667 | newLeafNode(otherlv_0, grammarAccess.getStringTypeScopeAccess().getNumberSignKeyword_0()); |
3668 | ; | 3668 | } |
3669 | 3669 | ( | |
3670 | // Entry rule entryRuleTask | 3670 | ( |
3671 | entryRuleTask returns [EObject current=null]: | 3671 | { |
3672 | { newCompositeNode(grammarAccess.getTaskRule()); } | 3672 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getTypeStringReferenceParserRuleCall_1_0()); |
3673 | iv_ruleTask=ruleTask | 3673 | } |
3674 | { $current=$iv_ruleTask.current; } | 3674 | lv_type_1_0=ruleStringReference |
3675 | EOF; | 3675 | { |
3676 | 3676 | if ($current==null) { | |
3677 | // Rule Task | 3677 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); |
3678 | ruleTask returns [EObject current=null] | 3678 | } |
3679 | @init { | 3679 | set( |
3680 | enterRule(); | 3680 | $current, |
3681 | } | 3681 | "type", |
3682 | @after { | 3682 | lv_type_1_0, |
3683 | leaveRule(); | 3683 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringReference"); |
3684 | }: | 3684 | afterParserOrEnumRuleCall(); |
3685 | { | 3685 | } |
3686 | newCompositeNode(grammarAccess.getTaskAccess().getGenerationTaskParserRuleCall()); | 3686 | ) |
3687 | } | 3687 | ) |
3688 | this_GenerationTask_0=ruleGenerationTask | 3688 | ( |
3689 | { | 3689 | ( |
3690 | $current = $this_GenerationTask_0.current; | 3690 | ( |
3691 | afterParserOrEnumRuleCall(); | 3691 | lv_setsNew_2_0='+=' |
3692 | } | 3692 | { |
3693 | ; | 3693 | newLeafNode(lv_setsNew_2_0, grammarAccess.getStringTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
3694 | 3694 | } | |
3695 | // Entry rule entryRuleGenerationTask | 3695 | { |
3696 | entryRuleGenerationTask returns [EObject current=null]: | 3696 | if ($current==null) { |
3697 | { newCompositeNode(grammarAccess.getGenerationTaskRule()); } | 3697 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); |
3698 | iv_ruleGenerationTask=ruleGenerationTask | 3698 | } |
3699 | { $current=$iv_ruleGenerationTask.current; } | 3699 | setWithLastConsumed($current, "setsNew", true, "+="); |
3700 | EOF; | 3700 | } |
3701 | 3701 | ) | |
3702 | // Rule GenerationTask | 3702 | ) |
3703 | ruleGenerationTask returns [EObject current=null] | 3703 | | |
3704 | @init { | 3704 | ( |
3705 | enterRule(); | 3705 | ( |
3706 | } | 3706 | lv_setsSum_3_0='=' |
3707 | @after { | 3707 | { |
3708 | leaveRule(); | 3708 | newLeafNode(lv_setsSum_3_0, grammarAccess.getStringTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
3709 | }: | 3709 | } |
3710 | ( | 3710 | { |
3711 | otherlv_0='generate' | 3711 | if ($current==null) { |
3712 | { | 3712 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); |
3713 | newLeafNode(otherlv_0, grammarAccess.getGenerationTaskAccess().getGenerateKeyword_0()); | 3713 | } |
3714 | } | 3714 | setWithLastConsumed($current, "setsSum", true, "="); |
3715 | ( | 3715 | } |
3716 | { | 3716 | ) |
3717 | $current = forceCreateModelElement( | 3717 | ) |
3718 | grammarAccess.getGenerationTaskAccess().getGenerationTaskAction_1(), | 3718 | ) |
3719 | $current); | 3719 | ( |
3720 | } | 3720 | ( |
3721 | ) | 3721 | ( |
3722 | otherlv_2='{' | 3722 | { |
3723 | { | 3723 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
3724 | newLeafNode(otherlv_2, grammarAccess.getGenerationTaskAccess().getLeftCurlyBracketKeyword_2()); | 3724 | } |
3725 | } | 3725 | lv_number_4_0=ruleExactNumber |
3726 | ( | 3726 | { |
3727 | ( | 3727 | if ($current==null) { |
3728 | { | 3728 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); |
3729 | getUnorderedGroupHelper().enter(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3729 | } |
3730 | } | 3730 | set( |
3731 | ( | 3731 | $current, |
3732 | ( | 3732 | "number", |
3733 | ( | 3733 | lv_number_4_0, |
3734 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0)}?=>( | 3734 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
3735 | { | 3735 | afterParserOrEnumRuleCall(); |
3736 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0); | 3736 | } |
3737 | } | 3737 | ) |
3738 | ({true}?=>(otherlv_4='metamodel' | 3738 | ) |
3739 | { | 3739 | | |
3740 | newLeafNode(otherlv_4, grammarAccess.getGenerationTaskAccess().getMetamodelKeyword_3_0_0()); | 3740 | ( |
3741 | } | 3741 | ( |
3742 | otherlv_5='=' | 3742 | { |
3743 | { | 3743 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
3744 | newLeafNode(otherlv_5, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_0_1()); | 3744 | } |
3745 | } | 3745 | lv_number_5_0=ruleIntervallNumber |
3746 | ( | 3746 | { |
3747 | ( | 3747 | if ($current==null) { |
3748 | { | 3748 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); |
3749 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getMetamodelMetamodelParserRuleCall_3_0_2_0()); | 3749 | } |
3750 | } | 3750 | set( |
3751 | lv_metamodel_6_0=ruleMetamodel | 3751 | $current, |
3752 | { | 3752 | "number", |
3753 | if ($current==null) { | 3753 | lv_number_5_0, |
3754 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3754 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
3755 | } | 3755 | afterParserOrEnumRuleCall(); |
3756 | set( | 3756 | } |
3757 | $current, | 3757 | ) |
3758 | "metamodel", | 3758 | ) |
3759 | lv_metamodel_6_0, | 3759 | | |
3760 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Metamodel"); | 3760 | ( |
3761 | afterParserOrEnumRuleCall(); | 3761 | ( |
3762 | } | 3762 | { |
3763 | ) | 3763 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberStringEnumerationParserRuleCall_3_2_0()); |
3764 | ) | 3764 | } |
3765 | )) | 3765 | lv_number_6_0=ruleStringEnumeration |
3766 | { | 3766 | { |
3767 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3767 | if ($current==null) { |
3768 | } | 3768 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); |
3769 | ) | 3769 | } |
3770 | )| | 3770 | set( |
3771 | ( | 3771 | $current, |
3772 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1)}?=>( | 3772 | "number", |
3773 | { | 3773 | lv_number_6_0, |
3774 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1); | 3774 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringEnumeration"); |
3775 | } | 3775 | afterParserOrEnumRuleCall(); |
3776 | ({true}?=>(otherlv_7='partial-model' | 3776 | } |
3777 | { | 3777 | ) |
3778 | newLeafNode(otherlv_7, grammarAccess.getGenerationTaskAccess().getPartialModelKeyword_3_1_0()); | 3778 | ) |
3779 | } | 3779 | ) |
3780 | otherlv_8='=' | 3780 | ) |
3781 | { | 3781 | ; |
3782 | newLeafNode(otherlv_8, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_1_1()); | 3782 | |
3783 | } | 3783 | // Entry rule entryRuleClassReference |
3784 | ( | 3784 | entryRuleClassReference returns [EObject current=null]: |
3785 | ( | 3785 | { newCompositeNode(grammarAccess.getClassReferenceRule()); } |
3786 | { | 3786 | iv_ruleClassReference=ruleClassReference |
3787 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPartialModelPartialModelParserRuleCall_3_1_2_0()); | 3787 | { $current=$iv_ruleClassReference.current; } |
3788 | } | 3788 | EOF; |
3789 | lv_partialModel_9_0=rulePartialModel | 3789 | |
3790 | { | 3790 | // Rule ClassReference |
3791 | if ($current==null) { | 3791 | ruleClassReference returns [EObject current=null] |
3792 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3792 | @init { |
3793 | } | 3793 | enterRule(); |
3794 | set( | 3794 | } |
3795 | $current, | 3795 | @after { |
3796 | "partialModel", | 3796 | leaveRule(); |
3797 | lv_partialModel_9_0, | 3797 | }: |
3798 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModel"); | 3798 | ( |
3799 | afterParserOrEnumRuleCall(); | 3799 | otherlv_0='<' |
3800 | } | 3800 | { |
3801 | ) | 3801 | newLeafNode(otherlv_0, grammarAccess.getClassReferenceAccess().getLessThanSignKeyword_0()); |
3802 | ) | 3802 | } |
3803 | )) | 3803 | ( |
3804 | { | 3804 | ( |
3805 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3805 | { |
3806 | } | 3806 | newCompositeNode(grammarAccess.getClassReferenceAccess().getElementMetamodelElementParserRuleCall_1_0()); |
3807 | ) | 3807 | } |
3808 | )| | 3808 | lv_element_1_0=ruleMetamodelElement |
3809 | ( | 3809 | { |
3810 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2)}?=>( | 3810 | if ($current==null) { |
3811 | { | 3811 | $current = createModelElementForParent(grammarAccess.getClassReferenceRule()); |
3812 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2); | 3812 | } |
3813 | } | 3813 | set( |
3814 | ({true}?=>(otherlv_10='constraints' | 3814 | $current, |
3815 | { | 3815 | "element", |
3816 | newLeafNode(otherlv_10, grammarAccess.getGenerationTaskAccess().getConstraintsKeyword_3_2_0()); | 3816 | lv_element_1_0, |
3817 | } | 3817 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); |
3818 | otherlv_11='=' | 3818 | afterParserOrEnumRuleCall(); |
3819 | { | 3819 | } |
3820 | newLeafNode(otherlv_11, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_2_1()); | 3820 | ) |
3821 | } | 3821 | ) |
3822 | ( | 3822 | otherlv_2='>' |
3823 | ( | 3823 | { |
3824 | { | 3824 | newLeafNode(otherlv_2, grammarAccess.getClassReferenceAccess().getGreaterThanSignKeyword_2()); |
3825 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPatternsGraphPatternParserRuleCall_3_2_2_0()); | 3825 | } |
3826 | } | 3826 | ) |
3827 | lv_patterns_12_0=ruleGraphPattern | 3827 | ; |
3828 | { | 3828 | |
3829 | if ($current==null) { | 3829 | // Entry rule entryRuleObjectReference |
3830 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3830 | entryRuleObjectReference returns [EObject current=null]: |
3831 | } | 3831 | { newCompositeNode(grammarAccess.getObjectReferenceRule()); } |
3832 | set( | 3832 | iv_ruleObjectReference=ruleObjectReference |
3833 | $current, | 3833 | { $current=$iv_ruleObjectReference.current; } |
3834 | "patterns", | 3834 | EOF; |
3835 | lv_patterns_12_0, | 3835 | |
3836 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.GraphPattern"); | 3836 | // Rule ObjectReference |
3837 | afterParserOrEnumRuleCall(); | 3837 | ruleObjectReference returns [EObject current=null] |
3838 | } | 3838 | @init { |
3839 | ) | 3839 | enterRule(); |
3840 | ) | 3840 | } |
3841 | )) | 3841 | @after { |
3842 | { | 3842 | leaveRule(); |
3843 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3843 | }: |
3844 | } | 3844 | ( |
3845 | ) | 3845 | ( |
3846 | )| | 3846 | { |
3847 | ( | 3847 | $current = forceCreateModelElement( |
3848 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3)}?=>( | 3848 | grammarAccess.getObjectReferenceAccess().getObjectReferenceAction_0(), |
3849 | { | 3849 | $current); |
3850 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3); | 3850 | } |
3851 | } | 3851 | ) |
3852 | ({true}?=>(otherlv_13='scope' | 3852 | otherlv_1='node' |
3853 | { | 3853 | { |
3854 | newLeafNode(otherlv_13, grammarAccess.getGenerationTaskAccess().getScopeKeyword_3_3_0()); | 3854 | newLeafNode(otherlv_1, grammarAccess.getObjectReferenceAccess().getNodeKeyword_1()); |
3855 | } | 3855 | } |
3856 | otherlv_14='=' | 3856 | ) |
3857 | { | 3857 | ; |
3858 | newLeafNode(otherlv_14, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_3_1()); | 3858 | |
3859 | } | 3859 | // Entry rule entryRuleIntegerReference |
3860 | ( | 3860 | entryRuleIntegerReference returns [EObject current=null]: |
3861 | ( | 3861 | { newCompositeNode(grammarAccess.getIntegerReferenceRule()); } |
3862 | { | 3862 | iv_ruleIntegerReference=ruleIntegerReference |
3863 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getScopeScopeParserRuleCall_3_3_2_0()); | 3863 | { $current=$iv_ruleIntegerReference.current; } |
3864 | } | 3864 | EOF; |
3865 | lv_scope_15_0=ruleScope | 3865 | |
3866 | { | 3866 | // Rule IntegerReference |
3867 | if ($current==null) { | 3867 | ruleIntegerReference returns [EObject current=null] |
3868 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3868 | @init { |
3869 | } | 3869 | enterRule(); |
3870 | set( | 3870 | } |
3871 | $current, | 3871 | @after { |
3872 | "scope", | 3872 | leaveRule(); |
3873 | lv_scope_15_0, | 3873 | }: |
3874 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Scope"); | 3874 | ( |
3875 | afterParserOrEnumRuleCall(); | 3875 | ( |
3876 | } | 3876 | { |
3877 | ) | 3877 | $current = forceCreateModelElement( |
3878 | ) | 3878 | grammarAccess.getIntegerReferenceAccess().getIntegerScopeAction_0(), |
3879 | )) | 3879 | $current); |
3880 | { | 3880 | } |
3881 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3881 | ) |
3882 | } | 3882 | otherlv_1='int' |
3883 | ) | 3883 | { |
3884 | )| | 3884 | newLeafNode(otherlv_1, grammarAccess.getIntegerReferenceAccess().getIntKeyword_1()); |
3885 | ( | 3885 | } |
3886 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4)}?=>( | 3886 | ) |
3887 | { | 3887 | ; |
3888 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4); | 3888 | |
3889 | } | 3889 | // Entry rule entryRuleRealReference |
3890 | ({true}?=>(( | 3890 | entryRuleRealReference returns [EObject current=null]: |
3891 | ( | 3891 | { newCompositeNode(grammarAccess.getRealReferenceRule()); } |
3892 | lv_numberSpecified_16_0='number' | 3892 | iv_ruleRealReference=ruleRealReference |
3893 | { | 3893 | { $current=$iv_ruleRealReference.current; } |
3894 | newLeafNode(lv_numberSpecified_16_0, grammarAccess.getGenerationTaskAccess().getNumberSpecifiedNumberKeyword_3_4_0_0()); | 3894 | EOF; |
3895 | } | 3895 | |
3896 | { | 3896 | // Rule RealReference |
3897 | if ($current==null) { | 3897 | ruleRealReference returns [EObject current=null] |
3898 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | 3898 | @init { |
3899 | } | 3899 | enterRule(); |
3900 | setWithLastConsumed($current, "numberSpecified", true, "number"); | 3900 | } |
3901 | } | 3901 | @after { |
3902 | ) | 3902 | leaveRule(); |
3903 | ) | 3903 | }: |
3904 | otherlv_17='=' | 3904 | ( |
3905 | { | 3905 | ( |
3906 | newLeafNode(otherlv_17, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_4_1()); | 3906 | { |
3907 | } | 3907 | $current = forceCreateModelElement( |
3908 | ( | 3908 | grammarAccess.getRealReferenceAccess().getRealScopeAction_0(), |
3909 | ( | 3909 | $current); |
3910 | lv_number_18_0=RULE_INT | 3910 | } |
3911 | { | 3911 | ) |
3912 | newLeafNode(lv_number_18_0, grammarAccess.getGenerationTaskAccess().getNumberINTTerminalRuleCall_3_4_2_0()); | 3912 | otherlv_1='real' |
3913 | } | 3913 | { |
3914 | { | 3914 | newLeafNode(otherlv_1, grammarAccess.getRealReferenceAccess().getRealKeyword_1()); |
3915 | if ($current==null) { | 3915 | } |
3916 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | 3916 | ) |
3917 | } | 3917 | ; |
3918 | setWithLastConsumed( | 3918 | |
3919 | $current, | 3919 | // Entry rule entryRuleStringReference |
3920 | "number", | 3920 | entryRuleStringReference returns [EObject current=null]: |
3921 | lv_number_18_0, | 3921 | { newCompositeNode(grammarAccess.getStringReferenceRule()); } |
3922 | "org.eclipse.xtext.common.Terminals.INT"); | 3922 | iv_ruleStringReference=ruleStringReference |
3923 | } | 3923 | { $current=$iv_ruleStringReference.current; } |
3924 | ) | 3924 | EOF; |
3925 | ) | 3925 | |
3926 | )) | 3926 | // Rule StringReference |
3927 | { | 3927 | ruleStringReference returns [EObject current=null] |
3928 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3928 | @init { |
3929 | } | 3929 | enterRule(); |
3930 | ) | 3930 | } |
3931 | )| | 3931 | @after { |
3932 | ( | 3932 | leaveRule(); |
3933 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5)}?=>( | 3933 | }: |
3934 | { | 3934 | ( |
3935 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5); | 3935 | ( |
3936 | } | 3936 | { |
3937 | ({true}?=>(( | 3937 | $current = forceCreateModelElement( |
3938 | ( | 3938 | grammarAccess.getStringReferenceAccess().getStringScopeAction_0(), |
3939 | lv_runSpecified_19_0='runs' | 3939 | $current); |
3940 | { | 3940 | } |
3941 | newLeafNode(lv_runSpecified_19_0, grammarAccess.getGenerationTaskAccess().getRunSpecifiedRunsKeyword_3_5_0_0()); | 3941 | ) |
3942 | } | 3942 | otherlv_1='string' |
3943 | { | 3943 | { |
3944 | if ($current==null) { | 3944 | newLeafNode(otherlv_1, grammarAccess.getStringReferenceAccess().getStringKeyword_1()); |
3945 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | 3945 | } |
3946 | } | 3946 | ) |
3947 | setWithLastConsumed($current, "runSpecified", true, "runs"); | 3947 | ; |
3948 | } | 3948 | |
3949 | ) | 3949 | // Entry rule entryRuleExactNumber |
3950 | ) | 3950 | entryRuleExactNumber returns [EObject current=null]: |
3951 | otherlv_20='=' | 3951 | { newCompositeNode(grammarAccess.getExactNumberRule()); } |
3952 | { | 3952 | iv_ruleExactNumber=ruleExactNumber |
3953 | newLeafNode(otherlv_20, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_5_1()); | 3953 | { $current=$iv_ruleExactNumber.current; } |
3954 | } | 3954 | EOF; |
3955 | ( | 3955 | |
3956 | ( | 3956 | // Rule ExactNumber |
3957 | lv_runs_21_0=RULE_INT | 3957 | ruleExactNumber returns [EObject current=null] |
3958 | { | 3958 | @init { |
3959 | newLeafNode(lv_runs_21_0, grammarAccess.getGenerationTaskAccess().getRunsINTTerminalRuleCall_3_5_2_0()); | 3959 | enterRule(); |
3960 | } | 3960 | } |
3961 | { | 3961 | @after { |
3962 | if ($current==null) { | 3962 | leaveRule(); |
3963 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | 3963 | }: |
3964 | } | 3964 | ( |
3965 | setWithLastConsumed( | 3965 | ( |
3966 | $current, | 3966 | ( |
3967 | "runs", | 3967 | lv_exactNumber_0_0=RULE_INT |
3968 | lv_runs_21_0, | 3968 | { |
3969 | "org.eclipse.xtext.common.Terminals.INT"); | 3969 | newLeafNode(lv_exactNumber_0_0, grammarAccess.getExactNumberAccess().getExactNumberINTTerminalRuleCall_0_0()); |
3970 | } | 3970 | } |
3971 | ) | 3971 | { |
3972 | ) | 3972 | if ($current==null) { |
3973 | )) | 3973 | $current = createModelElement(grammarAccess.getExactNumberRule()); |
3974 | { | 3974 | } |
3975 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3975 | setWithLastConsumed( |
3976 | } | 3976 | $current, |
3977 | ) | 3977 | "exactNumber", |
3978 | )| | 3978 | lv_exactNumber_0_0, |
3979 | ( | 3979 | "org.eclipse.xtext.common.Terminals.INT"); |
3980 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6)}?=>( | 3980 | } |
3981 | { | 3981 | ) |
3982 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6); | 3982 | ) |
3983 | } | 3983 | | |
3984 | ({true}?=>(otherlv_22='solver' | 3984 | ( |
3985 | { | 3985 | ( |
3986 | newLeafNode(otherlv_22, grammarAccess.getGenerationTaskAccess().getSolverKeyword_3_6_0()); | 3986 | lv_exactUnlimited_1_0='*' |
3987 | } | 3987 | { |
3988 | otherlv_23='=' | 3988 | newLeafNode(lv_exactUnlimited_1_0, grammarAccess.getExactNumberAccess().getExactUnlimitedAsteriskKeyword_1_0()); |
3989 | { | 3989 | } |
3990 | newLeafNode(otherlv_23, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_6_1()); | 3990 | { |
3991 | } | 3991 | if ($current==null) { |
3992 | ( | 3992 | $current = createModelElement(grammarAccess.getExactNumberRule()); |
3993 | ( | 3993 | } |
3994 | { | 3994 | setWithLastConsumed($current, "exactUnlimited", true, "*"); |
3995 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getSolverSolverEnumRuleCall_3_6_2_0()); | 3995 | } |
3996 | } | 3996 | ) |
3997 | lv_solver_24_0=ruleSolver | 3997 | ) |
3998 | { | 3998 | ) |
3999 | if ($current==null) { | 3999 | ; |
4000 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4000 | |
4001 | } | 4001 | // Entry rule entryRuleIntervallNumber |
4002 | set( | 4002 | entryRuleIntervallNumber returns [EObject current=null]: |
4003 | $current, | 4003 | { newCompositeNode(grammarAccess.getIntervallNumberRule()); } |
4004 | "solver", | 4004 | iv_ruleIntervallNumber=ruleIntervallNumber |
4005 | lv_solver_24_0, | 4005 | { $current=$iv_ruleIntervallNumber.current; } |
4006 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Solver"); | 4006 | EOF; |
4007 | afterParserOrEnumRuleCall(); | 4007 | |
4008 | } | 4008 | // Rule IntervallNumber |
4009 | ) | 4009 | ruleIntervallNumber returns [EObject current=null] |
4010 | ) | 4010 | @init { |
4011 | )) | 4011 | enterRule(); |
4012 | { | 4012 | } |
4013 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4013 | @after { |
4014 | } | 4014 | leaveRule(); |
4015 | ) | 4015 | }: |
4016 | )| | 4016 | ( |
4017 | ( | 4017 | ( |
4018 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7)}?=>( | 4018 | ( |
4019 | { | 4019 | lv_min_0_0=RULE_INT |
4020 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7); | 4020 | { |
4021 | } | 4021 | newLeafNode(lv_min_0_0, grammarAccess.getIntervallNumberAccess().getMinINTTerminalRuleCall_0_0()); |
4022 | ({true}?=>(otherlv_25='config' | 4022 | } |
4023 | { | 4023 | { |
4024 | newLeafNode(otherlv_25, grammarAccess.getGenerationTaskAccess().getConfigKeyword_3_7_0()); | 4024 | if ($current==null) { |
4025 | } | 4025 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); |
4026 | otherlv_26='=' | 4026 | } |
4027 | { | 4027 | setWithLastConsumed( |
4028 | newLeafNode(otherlv_26, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_7_1()); | 4028 | $current, |
4029 | } | 4029 | "min", |
4030 | ( | 4030 | lv_min_0_0, |
4031 | ( | 4031 | "org.eclipse.xtext.common.Terminals.INT"); |
4032 | { | 4032 | } |
4033 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getConfigConfigParserRuleCall_3_7_2_0()); | 4033 | ) |
4034 | } | 4034 | ) |
4035 | lv_config_27_0=ruleConfig | 4035 | otherlv_1='..' |
4036 | { | 4036 | { |
4037 | if ($current==null) { | 4037 | newLeafNode(otherlv_1, grammarAccess.getIntervallNumberAccess().getFullStopFullStopKeyword_1()); |
4038 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4038 | } |
4039 | } | 4039 | ( |
4040 | set( | 4040 | ( |
4041 | $current, | 4041 | ( |
4042 | "config", | 4042 | lv_maxNumber_2_0=RULE_INT |
4043 | lv_config_27_0, | 4043 | { |
4044 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Config"); | 4044 | newLeafNode(lv_maxNumber_2_0, grammarAccess.getIntervallNumberAccess().getMaxNumberINTTerminalRuleCall_2_0_0()); |
4045 | afterParserOrEnumRuleCall(); | 4045 | } |
4046 | } | 4046 | { |
4047 | ) | 4047 | if ($current==null) { |
4048 | ) | 4048 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); |
4049 | )) | 4049 | } |
4050 | { | 4050 | setWithLastConsumed( |
4051 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4051 | $current, |
4052 | } | 4052 | "maxNumber", |
4053 | ) | 4053 | lv_maxNumber_2_0, |
4054 | )| | 4054 | "org.eclipse.xtext.common.Terminals.INT"); |
4055 | ( | 4055 | } |
4056 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8)}?=>( | 4056 | ) |
4057 | { | 4057 | ) |
4058 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8); | 4058 | | |
4059 | } | 4059 | ( |
4060 | ({true}?=>(otherlv_28='debug' | 4060 | ( |
4061 | { | 4061 | lv_maxUnlimited_3_0='*' |
4062 | newLeafNode(otherlv_28, grammarAccess.getGenerationTaskAccess().getDebugKeyword_3_8_0()); | 4062 | { |
4063 | } | 4063 | newLeafNode(lv_maxUnlimited_3_0, grammarAccess.getIntervallNumberAccess().getMaxUnlimitedAsteriskKeyword_2_1_0()); |
4064 | otherlv_29='=' | 4064 | } |
4065 | { | 4065 | { |
4066 | newLeafNode(otherlv_29, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_8_1()); | 4066 | if ($current==null) { |
4067 | } | 4067 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); |
4068 | ( | 4068 | } |
4069 | ( | 4069 | setWithLastConsumed($current, "maxUnlimited", true, "*"); |
4070 | { | 4070 | } |
4071 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getDebugFolderFileParserRuleCall_3_8_2_0()); | 4071 | ) |
4072 | } | 4072 | ) |
4073 | lv_debugFolder_30_0=ruleFile | 4073 | ) |
4074 | { | 4074 | ) |
4075 | if ($current==null) { | 4075 | ; |
4076 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4076 | |
4077 | } | 4077 | // Entry rule entryRuleIntEnumberation |
4078 | set( | 4078 | entryRuleIntEnumberation returns [EObject current=null]: |
4079 | $current, | 4079 | { newCompositeNode(grammarAccess.getIntEnumberationRule()); } |
4080 | "debugFolder", | 4080 | iv_ruleIntEnumberation=ruleIntEnumberation |
4081 | lv_debugFolder_30_0, | 4081 | { $current=$iv_ruleIntEnumberation.current; } |
4082 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 4082 | EOF; |
4083 | afterParserOrEnumRuleCall(); | 4083 | |
4084 | } | 4084 | // Rule IntEnumberation |
4085 | ) | 4085 | ruleIntEnumberation returns [EObject current=null] |
4086 | ) | 4086 | @init { |
4087 | )) | 4087 | enterRule(); |
4088 | { | 4088 | } |
4089 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4089 | @after { |
4090 | } | 4090 | leaveRule(); |
4091 | ) | 4091 | }: |
4092 | )| | 4092 | ( |
4093 | ( | 4093 | ( |
4094 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9)}?=>( | 4094 | { |
4095 | { | 4095 | $current = forceCreateModelElement( |
4096 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9); | 4096 | grammarAccess.getIntEnumberationAccess().getIntEnumberationAction_0(), |
4097 | } | 4097 | $current); |
4098 | ({true}?=>(otherlv_31='log' | 4098 | } |
4099 | { | 4099 | ) |
4100 | newLeafNode(otherlv_31, grammarAccess.getGenerationTaskAccess().getLogKeyword_3_9_0()); | 4100 | otherlv_1='{' |
4101 | } | 4101 | { |
4102 | otherlv_32='=' | 4102 | newLeafNode(otherlv_1, grammarAccess.getIntEnumberationAccess().getLeftCurlyBracketKeyword_1()); |
4103 | { | 4103 | } |
4104 | newLeafNode(otherlv_32, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_9_1()); | 4104 | ( |
4105 | } | 4105 | ( |
4106 | ( | 4106 | ( |
4107 | ( | 4107 | { |
4108 | { | 4108 | newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_0_0()); |
4109 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetLogFileFileParserRuleCall_3_9_2_0()); | 4109 | } |
4110 | } | 4110 | lv_entry_2_0=ruleINTLiteral |
4111 | lv_targetLogFile_33_0=ruleFile | 4111 | { |
4112 | { | 4112 | if ($current==null) { |
4113 | if ($current==null) { | 4113 | $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); |
4114 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4114 | } |
4115 | } | 4115 | add( |
4116 | set( | 4116 | $current, |
4117 | $current, | 4117 | "entry", |
4118 | "targetLogFile", | 4118 | lv_entry_2_0, |
4119 | lv_targetLogFile_33_0, | 4119 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); |
4120 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 4120 | afterParserOrEnumRuleCall(); |
4121 | afterParserOrEnumRuleCall(); | 4121 | } |
4122 | } | 4122 | ) |
4123 | ) | 4123 | ) |
4124 | ) | 4124 | ( |
4125 | )) | 4125 | otherlv_3=',' |
4126 | { | 4126 | { |
4127 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4127 | newLeafNode(otherlv_3, grammarAccess.getIntEnumberationAccess().getCommaKeyword_2_1_0()); |
4128 | } | 4128 | } |
4129 | ) | 4129 | ( |
4130 | )| | 4130 | ( |
4131 | ( | 4131 | { |
4132 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10)}?=>( | 4132 | newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_1_1_0()); |
4133 | { | 4133 | } |
4134 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10); | 4134 | lv_entry_4_0=ruleINTLiteral |
4135 | } | 4135 | { |
4136 | ({true}?=>(otherlv_34='statistics' | 4136 | if ($current==null) { |
4137 | { | 4137 | $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); |
4138 | newLeafNode(otherlv_34, grammarAccess.getGenerationTaskAccess().getStatisticsKeyword_3_10_0()); | 4138 | } |
4139 | } | 4139 | add( |
4140 | otherlv_35='=' | 4140 | $current, |
4141 | { | 4141 | "entry", |
4142 | newLeafNode(otherlv_35, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_10_1()); | 4142 | lv_entry_4_0, |
4143 | } | 4143 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); |
4144 | ( | 4144 | afterParserOrEnumRuleCall(); |
4145 | ( | 4145 | } |
4146 | { | 4146 | ) |
4147 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetStatisticsFileFileParserRuleCall_3_10_2_0()); | 4147 | ) |
4148 | } | 4148 | )* |
4149 | lv_targetStatisticsFile_36_0=ruleFile | 4149 | )? |
4150 | { | 4150 | otherlv_5='}' |
4151 | if ($current==null) { | 4151 | { |
4152 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4152 | newLeafNode(otherlv_5, grammarAccess.getIntEnumberationAccess().getRightCurlyBracketKeyword_3()); |
4153 | } | 4153 | } |
4154 | set( | 4154 | ) |
4155 | $current, | 4155 | ; |
4156 | "targetStatisticsFile", | 4156 | |
4157 | lv_targetStatisticsFile_36_0, | 4157 | // Entry rule entryRuleRealEnumeration |
4158 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 4158 | entryRuleRealEnumeration returns [EObject current=null]: |
4159 | afterParserOrEnumRuleCall(); | 4159 | { newCompositeNode(grammarAccess.getRealEnumerationRule()); } |
4160 | } | 4160 | iv_ruleRealEnumeration=ruleRealEnumeration |
4161 | ) | 4161 | { $current=$iv_ruleRealEnumeration.current; } |
4162 | ) | 4162 | EOF; |
4163 | )) | 4163 | |
4164 | { | 4164 | // Rule RealEnumeration |
4165 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4165 | ruleRealEnumeration returns [EObject current=null] |
4166 | } | 4166 | @init { |
4167 | ) | 4167 | enterRule(); |
4168 | )| | 4168 | } |
4169 | ( | 4169 | @after { |
4170 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11)}?=>( | 4170 | leaveRule(); |
4171 | { | 4171 | }: |
4172 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11); | 4172 | ( |
4173 | } | 4173 | ( |
4174 | ({true}?=>(otherlv_37='output' | 4174 | { |
4175 | { | 4175 | $current = forceCreateModelElement( |
4176 | newLeafNode(otherlv_37, grammarAccess.getGenerationTaskAccess().getOutputKeyword_3_11_0()); | 4176 | grammarAccess.getRealEnumerationAccess().getRealEnumerationAction_0(), |
4177 | } | 4177 | $current); |
4178 | otherlv_38='=' | 4178 | } |
4179 | { | 4179 | ) |
4180 | newLeafNode(otherlv_38, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_11_1()); | 4180 | otherlv_1='{' |
4181 | } | 4181 | { |
4182 | ( | 4182 | newLeafNode(otherlv_1, grammarAccess.getRealEnumerationAccess().getLeftCurlyBracketKeyword_1()); |
4183 | ( | 4183 | } |
4184 | { | 4184 | ( |
4185 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTagetFolderFileParserRuleCall_3_11_2_0()); | 4185 | ( |
4186 | } | 4186 | ( |
4187 | lv_tagetFolder_39_0=ruleFile | 4187 | { |
4188 | { | 4188 | newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_0_0()); |
4189 | if ($current==null) { | 4189 | } |
4190 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4190 | lv_entry_2_0=ruleREALLiteral |
4191 | } | 4191 | { |
4192 | set( | 4192 | if ($current==null) { |
4193 | $current, | 4193 | $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); |
4194 | "tagetFolder", | 4194 | } |
4195 | lv_tagetFolder_39_0, | 4195 | add( |
4196 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 4196 | $current, |
4197 | afterParserOrEnumRuleCall(); | 4197 | "entry", |
4198 | } | 4198 | lv_entry_2_0, |
4199 | ) | 4199 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); |
4200 | ) | 4200 | afterParserOrEnumRuleCall(); |
4201 | )) | 4201 | } |
4202 | { | 4202 | ) |
4203 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4203 | ) |
4204 | } | 4204 | ( |
4205 | ) | 4205 | otherlv_3=',' |
4206 | ) | 4206 | { |
4207 | )* | 4207 | newLeafNode(otherlv_3, grammarAccess.getRealEnumerationAccess().getCommaKeyword_2_1_0()); |
4208 | ) | 4208 | } |
4209 | ) | 4209 | ( |
4210 | { | 4210 | ( |
4211 | getUnorderedGroupHelper().leave(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4211 | { |
4212 | } | 4212 | newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_1_1_0()); |
4213 | ) | 4213 | } |
4214 | otherlv_40='}' | 4214 | lv_entry_4_0=ruleREALLiteral |
4215 | { | 4215 | { |
4216 | newLeafNode(otherlv_40, grammarAccess.getGenerationTaskAccess().getRightCurlyBracketKeyword_4()); | 4216 | if ($current==null) { |
4217 | } | 4217 | $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); |
4218 | ) | 4218 | } |
4219 | ; | 4219 | add( |
4220 | 4220 | $current, | |
4221 | // Rule DocumentLevelSpecification | 4221 | "entry", |
4222 | ruleDocumentLevelSpecification returns [Enumerator current=null] | 4222 | lv_entry_4_0, |
4223 | @init { | 4223 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); |
4224 | enterRule(); | 4224 | afterParserOrEnumRuleCall(); |
4225 | } | 4225 | } |
4226 | @after { | 4226 | ) |
4227 | leaveRule(); | 4227 | ) |
4228 | }: | 4228 | )* |
4229 | ( | 4229 | )? |
4230 | ( | 4230 | otherlv_5='}' |
4231 | enumLiteral_0='none' | 4231 | { |
4232 | { | 4232 | newLeafNode(otherlv_5, grammarAccess.getRealEnumerationAccess().getRightCurlyBracketKeyword_3()); |
4233 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | 4233 | } |
4234 | newLeafNode(enumLiteral_0, grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0()); | 4234 | ) |
4235 | } | 4235 | ; |
4236 | ) | 4236 | |
4237 | | | 4237 | // Entry rule entryRuleStringEnumeration |
4238 | ( | 4238 | entryRuleStringEnumeration returns [EObject current=null]: |
4239 | enumLiteral_1='normal' | 4239 | { newCompositeNode(grammarAccess.getStringEnumerationRule()); } |
4240 | { | 4240 | iv_ruleStringEnumeration=ruleStringEnumeration |
4241 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | 4241 | { $current=$iv_ruleStringEnumeration.current; } |
4242 | newLeafNode(enumLiteral_1, grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1()); | 4242 | EOF; |
4243 | } | 4243 | |
4244 | ) | 4244 | // Rule StringEnumeration |
4245 | | | 4245 | ruleStringEnumeration returns [EObject current=null] |
4246 | ( | 4246 | @init { |
4247 | enumLiteral_2='full' | 4247 | enterRule(); |
4248 | { | 4248 | } |
4249 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | 4249 | @after { |
4250 | newLeafNode(enumLiteral_2, grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2()); | 4250 | leaveRule(); |
4251 | } | 4251 | }: |
4252 | ) | 4252 | ( |
4253 | ) | 4253 | ( |
4254 | ; | 4254 | { |
4255 | 4255 | $current = forceCreateModelElement( | |
4256 | // Rule Solver | 4256 | grammarAccess.getStringEnumerationAccess().getStringEnumerationAction_0(), |
4257 | ruleSolver returns [Enumerator current=null] | 4257 | $current); |
4258 | @init { | 4258 | } |
4259 | enterRule(); | 4259 | ) |
4260 | } | 4260 | otherlv_1='{' |
4261 | @after { | 4261 | { |
4262 | leaveRule(); | 4262 | newLeafNode(otherlv_1, grammarAccess.getStringEnumerationAccess().getLeftCurlyBracketKeyword_1()); |
4263 | }: | 4263 | } |
4264 | ( | 4264 | ( |
4265 | ( | 4265 | ( |
4266 | enumLiteral_0='SMTSolver' | 4266 | ( |
4267 | { | 4267 | lv_entry_2_0=RULE_STRING |
4268 | $current = grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | 4268 | { |
4269 | newLeafNode(enumLiteral_0, grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0()); | 4269 | newLeafNode(lv_entry_2_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_0_0()); |
4270 | } | 4270 | } |
4271 | ) | 4271 | { |
4272 | | | 4272 | if ($current==null) { |
4273 | ( | 4273 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); |
4274 | enumLiteral_1='AlloySolver' | 4274 | } |
4275 | { | 4275 | addWithLastConsumed( |
4276 | $current = grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | 4276 | $current, |
4277 | newLeafNode(enumLiteral_1, grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1()); | 4277 | "entry", |
4278 | } | 4278 | lv_entry_2_0, |
4279 | ) | 4279 | "org.eclipse.xtext.common.Terminals.STRING"); |
4280 | | | 4280 | } |
4281 | ( | 4281 | ) |
4282 | enumLiteral_2='ViatraSolver' | 4282 | ) |
4283 | { | 4283 | ( |
4284 | $current = grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | 4284 | otherlv_3=',' |
4285 | newLeafNode(enumLiteral_2, grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2()); | 4285 | { |
4286 | } | 4286 | newLeafNode(otherlv_3, grammarAccess.getStringEnumerationAccess().getCommaKeyword_2_1_0()); |
4287 | ) | 4287 | } |
4288 | ) | 4288 | ( |
4289 | ; | 4289 | ( |
4290 | 4290 | lv_entry_4_0=RULE_STRING | |
4291 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | 4291 | { |
4292 | 4292 | newLeafNode(lv_entry_4_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_1_1_0()); | |
4293 | RULE_INT : ('0'..'9')+; | 4293 | } |
4294 | 4294 | { | |
4295 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | 4295 | if ($current==null) { |
4296 | 4296 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); | |
4297 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | 4297 | } |
4298 | 4298 | addWithLastConsumed( | |
4299 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | 4299 | $current, |
4300 | 4300 | "entry", | |
4301 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | 4301 | lv_entry_4_0, |
4302 | 4302 | "org.eclipse.xtext.common.Terminals.STRING"); | |
4303 | RULE_ANY_OTHER : .; | 4303 | } |
4304 | ) | ||
4305 | ) | ||
4306 | )* | ||
4307 | )? | ||
4308 | otherlv_5='}' | ||
4309 | { | ||
4310 | newLeafNode(otherlv_5, grammarAccess.getStringEnumerationAccess().getRightCurlyBracketKeyword_3()); | ||
4311 | } | ||
4312 | ) | ||
4313 | ; | ||
4314 | |||
4315 | // Entry rule entryRuleScopeDeclaration | ||
4316 | entryRuleScopeDeclaration returns [EObject current=null]: | ||
4317 | { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } | ||
4318 | iv_ruleScopeDeclaration=ruleScopeDeclaration | ||
4319 | { $current=$iv_ruleScopeDeclaration.current; } | ||
4320 | EOF; | ||
4321 | |||
4322 | // Rule ScopeDeclaration | ||
4323 | ruleScopeDeclaration returns [EObject current=null] | ||
4324 | @init { | ||
4325 | enterRule(); | ||
4326 | } | ||
4327 | @after { | ||
4328 | leaveRule(); | ||
4329 | }: | ||
4330 | ( | ||
4331 | otherlv_0='scope' | ||
4332 | { | ||
4333 | newLeafNode(otherlv_0, grammarAccess.getScopeDeclarationAccess().getScopeKeyword_0()); | ||
4334 | } | ||
4335 | ( | ||
4336 | ( | ||
4337 | lv_name_1_0=RULE_ID | ||
4338 | { | ||
4339 | newLeafNode(lv_name_1_0, grammarAccess.getScopeDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
4340 | } | ||
4341 | { | ||
4342 | if ($current==null) { | ||
4343 | $current = createModelElement(grammarAccess.getScopeDeclarationRule()); | ||
4344 | } | ||
4345 | setWithLastConsumed( | ||
4346 | $current, | ||
4347 | "name", | ||
4348 | lv_name_1_0, | ||
4349 | "org.eclipse.xtext.common.Terminals.ID"); | ||
4350 | } | ||
4351 | ) | ||
4352 | ) | ||
4353 | ( | ||
4354 | ( | ||
4355 | { | ||
4356 | newCompositeNode(grammarAccess.getScopeDeclarationAccess().getSpecificationScopeSpecificationParserRuleCall_2_0()); | ||
4357 | } | ||
4358 | lv_specification_2_0=ruleScopeSpecification | ||
4359 | { | ||
4360 | if ($current==null) { | ||
4361 | $current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); | ||
4362 | } | ||
4363 | set( | ||
4364 | $current, | ||
4365 | "specification", | ||
4366 | lv_specification_2_0, | ||
4367 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ScopeSpecification"); | ||
4368 | afterParserOrEnumRuleCall(); | ||
4369 | } | ||
4370 | ) | ||
4371 | ) | ||
4372 | ) | ||
4373 | ; | ||
4374 | |||
4375 | // Entry rule entryRuleScopeReference | ||
4376 | entryRuleScopeReference returns [EObject current=null]: | ||
4377 | { newCompositeNode(grammarAccess.getScopeReferenceRule()); } | ||
4378 | iv_ruleScopeReference=ruleScopeReference | ||
4379 | { $current=$iv_ruleScopeReference.current; } | ||
4380 | EOF; | ||
4381 | |||
4382 | // Rule ScopeReference | ||
4383 | ruleScopeReference returns [EObject current=null] | ||
4384 | @init { | ||
4385 | enterRule(); | ||
4386 | } | ||
4387 | @after { | ||
4388 | leaveRule(); | ||
4389 | }: | ||
4390 | ( | ||
4391 | ( | ||
4392 | { | ||
4393 | if ($current==null) { | ||
4394 | $current = createModelElement(grammarAccess.getScopeReferenceRule()); | ||
4395 | } | ||
4396 | } | ||
4397 | otherlv_0=RULE_ID | ||
4398 | { | ||
4399 | newLeafNode(otherlv_0, grammarAccess.getScopeReferenceAccess().getReferredScopeDeclarationCrossReference_0()); | ||
4400 | } | ||
4401 | ) | ||
4402 | ) | ||
4403 | ; | ||
4404 | |||
4405 | // Entry rule entryRuleScope | ||
4406 | entryRuleScope returns [EObject current=null]: | ||
4407 | { newCompositeNode(grammarAccess.getScopeRule()); } | ||
4408 | iv_ruleScope=ruleScope | ||
4409 | { $current=$iv_ruleScope.current; } | ||
4410 | EOF; | ||
4411 | |||
4412 | // Rule Scope | ||
4413 | ruleScope returns [EObject current=null] | ||
4414 | @init { | ||
4415 | enterRule(); | ||
4416 | } | ||
4417 | @after { | ||
4418 | leaveRule(); | ||
4419 | }: | ||
4420 | ( | ||
4421 | { | ||
4422 | newCompositeNode(grammarAccess.getScopeAccess().getScopeSpecificationParserRuleCall_0()); | ||
4423 | } | ||
4424 | this_ScopeSpecification_0=ruleScopeSpecification | ||
4425 | { | ||
4426 | $current = $this_ScopeSpecification_0.current; | ||
4427 | afterParserOrEnumRuleCall(); | ||
4428 | } | ||
4429 | | | ||
4430 | { | ||
4431 | newCompositeNode(grammarAccess.getScopeAccess().getScopeReferenceParserRuleCall_1()); | ||
4432 | } | ||
4433 | this_ScopeReference_1=ruleScopeReference | ||
4434 | { | ||
4435 | $current = $this_ScopeReference_1.current; | ||
4436 | afterParserOrEnumRuleCall(); | ||
4437 | } | ||
4438 | ) | ||
4439 | ; | ||
4440 | |||
4441 | // Entry rule entryRuleTask | ||
4442 | entryRuleTask returns [EObject current=null]: | ||
4443 | { newCompositeNode(grammarAccess.getTaskRule()); } | ||
4444 | iv_ruleTask=ruleTask | ||
4445 | { $current=$iv_ruleTask.current; } | ||
4446 | EOF; | ||
4447 | |||
4448 | // Rule Task | ||
4449 | ruleTask returns [EObject current=null] | ||
4450 | @init { | ||
4451 | enterRule(); | ||
4452 | } | ||
4453 | @after { | ||
4454 | leaveRule(); | ||
4455 | }: | ||
4456 | { | ||
4457 | newCompositeNode(grammarAccess.getTaskAccess().getGenerationTaskParserRuleCall()); | ||
4458 | } | ||
4459 | this_GenerationTask_0=ruleGenerationTask | ||
4460 | { | ||
4461 | $current = $this_GenerationTask_0.current; | ||
4462 | afterParserOrEnumRuleCall(); | ||
4463 | } | ||
4464 | ; | ||
4465 | |||
4466 | // Entry rule entryRuleGenerationTask | ||
4467 | entryRuleGenerationTask returns [EObject current=null]: | ||
4468 | { newCompositeNode(grammarAccess.getGenerationTaskRule()); } | ||
4469 | iv_ruleGenerationTask=ruleGenerationTask | ||
4470 | { $current=$iv_ruleGenerationTask.current; } | ||
4471 | EOF; | ||
4472 | |||
4473 | // Rule GenerationTask | ||
4474 | ruleGenerationTask returns [EObject current=null] | ||
4475 | @init { | ||
4476 | enterRule(); | ||
4477 | } | ||
4478 | @after { | ||
4479 | leaveRule(); | ||
4480 | }: | ||
4481 | ( | ||
4482 | otherlv_0='generate' | ||
4483 | { | ||
4484 | newLeafNode(otherlv_0, grammarAccess.getGenerationTaskAccess().getGenerateKeyword_0()); | ||
4485 | } | ||
4486 | ( | ||
4487 | { | ||
4488 | $current = forceCreateModelElement( | ||
4489 | grammarAccess.getGenerationTaskAccess().getGenerationTaskAction_1(), | ||
4490 | $current); | ||
4491 | } | ||
4492 | ) | ||
4493 | otherlv_2='{' | ||
4494 | { | ||
4495 | newLeafNode(otherlv_2, grammarAccess.getGenerationTaskAccess().getLeftCurlyBracketKeyword_2()); | ||
4496 | } | ||
4497 | ( | ||
4498 | ( | ||
4499 | { | ||
4500 | getUnorderedGroupHelper().enter(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4501 | } | ||
4502 | ( | ||
4503 | ( | ||
4504 | ( | ||
4505 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0)}?=>( | ||
4506 | { | ||
4507 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0); | ||
4508 | } | ||
4509 | ({true}?=>(otherlv_4='metamodel' | ||
4510 | { | ||
4511 | newLeafNode(otherlv_4, grammarAccess.getGenerationTaskAccess().getMetamodelKeyword_3_0_0()); | ||
4512 | } | ||
4513 | otherlv_5='=' | ||
4514 | { | ||
4515 | newLeafNode(otherlv_5, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_0_1()); | ||
4516 | } | ||
4517 | ( | ||
4518 | ( | ||
4519 | { | ||
4520 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getMetamodelMetamodelParserRuleCall_3_0_2_0()); | ||
4521 | } | ||
4522 | lv_metamodel_6_0=ruleMetamodel | ||
4523 | { | ||
4524 | if ($current==null) { | ||
4525 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4526 | } | ||
4527 | set( | ||
4528 | $current, | ||
4529 | "metamodel", | ||
4530 | lv_metamodel_6_0, | ||
4531 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Metamodel"); | ||
4532 | afterParserOrEnumRuleCall(); | ||
4533 | } | ||
4534 | ) | ||
4535 | ) | ||
4536 | )) | ||
4537 | { | ||
4538 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4539 | } | ||
4540 | ) | ||
4541 | )| | ||
4542 | ( | ||
4543 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1)}?=>( | ||
4544 | { | ||
4545 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1); | ||
4546 | } | ||
4547 | ({true}?=>(otherlv_7='partial-model' | ||
4548 | { | ||
4549 | newLeafNode(otherlv_7, grammarAccess.getGenerationTaskAccess().getPartialModelKeyword_3_1_0()); | ||
4550 | } | ||
4551 | otherlv_8='=' | ||
4552 | { | ||
4553 | newLeafNode(otherlv_8, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_1_1()); | ||
4554 | } | ||
4555 | ( | ||
4556 | ( | ||
4557 | { | ||
4558 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPartialModelPartialModelParserRuleCall_3_1_2_0()); | ||
4559 | } | ||
4560 | lv_partialModel_9_0=rulePartialModel | ||
4561 | { | ||
4562 | if ($current==null) { | ||
4563 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4564 | } | ||
4565 | set( | ||
4566 | $current, | ||
4567 | "partialModel", | ||
4568 | lv_partialModel_9_0, | ||
4569 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModel"); | ||
4570 | afterParserOrEnumRuleCall(); | ||
4571 | } | ||
4572 | ) | ||
4573 | ) | ||
4574 | )) | ||
4575 | { | ||
4576 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4577 | } | ||
4578 | ) | ||
4579 | )| | ||
4580 | ( | ||
4581 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2)}?=>( | ||
4582 | { | ||
4583 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2); | ||
4584 | } | ||
4585 | ({true}?=>(otherlv_10='constraints' | ||
4586 | { | ||
4587 | newLeafNode(otherlv_10, grammarAccess.getGenerationTaskAccess().getConstraintsKeyword_3_2_0()); | ||
4588 | } | ||
4589 | otherlv_11='=' | ||
4590 | { | ||
4591 | newLeafNode(otherlv_11, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_2_1()); | ||
4592 | } | ||
4593 | ( | ||
4594 | ( | ||
4595 | { | ||
4596 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPatternsGraphPatternParserRuleCall_3_2_2_0()); | ||
4597 | } | ||
4598 | lv_patterns_12_0=ruleGraphPattern | ||
4599 | { | ||
4600 | if ($current==null) { | ||
4601 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4602 | } | ||
4603 | set( | ||
4604 | $current, | ||
4605 | "patterns", | ||
4606 | lv_patterns_12_0, | ||
4607 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.GraphPattern"); | ||
4608 | afterParserOrEnumRuleCall(); | ||
4609 | } | ||
4610 | ) | ||
4611 | ) | ||
4612 | )) | ||
4613 | { | ||
4614 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4615 | } | ||
4616 | ) | ||
4617 | )| | ||
4618 | ( | ||
4619 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3)}?=>( | ||
4620 | { | ||
4621 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3); | ||
4622 | } | ||
4623 | ({true}?=>(otherlv_13='objectives' | ||
4624 | { | ||
4625 | newLeafNode(otherlv_13, grammarAccess.getGenerationTaskAccess().getObjectivesKeyword_3_3_0()); | ||
4626 | } | ||
4627 | otherlv_14='=' | ||
4628 | { | ||
4629 | newLeafNode(otherlv_14, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_3_1()); | ||
4630 | } | ||
4631 | ( | ||
4632 | ( | ||
4633 | { | ||
4634 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getObjectivesObjectiveParserRuleCall_3_3_2_0()); | ||
4635 | } | ||
4636 | lv_objectives_15_0=ruleObjective | ||
4637 | { | ||
4638 | if ($current==null) { | ||
4639 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4640 | } | ||
4641 | set( | ||
4642 | $current, | ||
4643 | "objectives", | ||
4644 | lv_objectives_15_0, | ||
4645 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Objective"); | ||
4646 | afterParserOrEnumRuleCall(); | ||
4647 | } | ||
4648 | ) | ||
4649 | ) | ||
4650 | )) | ||
4651 | { | ||
4652 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4653 | } | ||
4654 | ) | ||
4655 | )| | ||
4656 | ( | ||
4657 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4)}?=>( | ||
4658 | { | ||
4659 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4); | ||
4660 | } | ||
4661 | ({true}?=>(otherlv_16='scope' | ||
4662 | { | ||
4663 | newLeafNode(otherlv_16, grammarAccess.getGenerationTaskAccess().getScopeKeyword_3_4_0()); | ||
4664 | } | ||
4665 | otherlv_17='=' | ||
4666 | { | ||
4667 | newLeafNode(otherlv_17, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_4_1()); | ||
4668 | } | ||
4669 | ( | ||
4670 | ( | ||
4671 | { | ||
4672 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getScopeScopeParserRuleCall_3_4_2_0()); | ||
4673 | } | ||
4674 | lv_scope_18_0=ruleScope | ||
4675 | { | ||
4676 | if ($current==null) { | ||
4677 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4678 | } | ||
4679 | set( | ||
4680 | $current, | ||
4681 | "scope", | ||
4682 | lv_scope_18_0, | ||
4683 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Scope"); | ||
4684 | afterParserOrEnumRuleCall(); | ||
4685 | } | ||
4686 | ) | ||
4687 | ) | ||
4688 | )) | ||
4689 | { | ||
4690 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4691 | } | ||
4692 | ) | ||
4693 | )| | ||
4694 | ( | ||
4695 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5)}?=>( | ||
4696 | { | ||
4697 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5); | ||
4698 | } | ||
4699 | ({true}?=>(( | ||
4700 | ( | ||
4701 | lv_numberSpecified_19_0='number' | ||
4702 | { | ||
4703 | newLeafNode(lv_numberSpecified_19_0, grammarAccess.getGenerationTaskAccess().getNumberSpecifiedNumberKeyword_3_5_0_0()); | ||
4704 | } | ||
4705 | { | ||
4706 | if ($current==null) { | ||
4707 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
4708 | } | ||
4709 | setWithLastConsumed($current, "numberSpecified", true, "number"); | ||
4710 | } | ||
4711 | ) | ||
4712 | ) | ||
4713 | otherlv_20='=' | ||
4714 | { | ||
4715 | newLeafNode(otherlv_20, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_5_1()); | ||
4716 | } | ||
4717 | ( | ||
4718 | ( | ||
4719 | lv_number_21_0=RULE_INT | ||
4720 | { | ||
4721 | newLeafNode(lv_number_21_0, grammarAccess.getGenerationTaskAccess().getNumberINTTerminalRuleCall_3_5_2_0()); | ||
4722 | } | ||
4723 | { | ||
4724 | if ($current==null) { | ||
4725 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
4726 | } | ||
4727 | setWithLastConsumed( | ||
4728 | $current, | ||
4729 | "number", | ||
4730 | lv_number_21_0, | ||
4731 | "org.eclipse.xtext.common.Terminals.INT"); | ||
4732 | } | ||
4733 | ) | ||
4734 | ) | ||
4735 | )) | ||
4736 | { | ||
4737 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4738 | } | ||
4739 | ) | ||
4740 | )| | ||
4741 | ( | ||
4742 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6)}?=>( | ||
4743 | { | ||
4744 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6); | ||
4745 | } | ||
4746 | ({true}?=>(( | ||
4747 | ( | ||
4748 | lv_runSpecified_22_0='runs' | ||
4749 | { | ||
4750 | newLeafNode(lv_runSpecified_22_0, grammarAccess.getGenerationTaskAccess().getRunSpecifiedRunsKeyword_3_6_0_0()); | ||
4751 | } | ||
4752 | { | ||
4753 | if ($current==null) { | ||
4754 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
4755 | } | ||
4756 | setWithLastConsumed($current, "runSpecified", true, "runs"); | ||
4757 | } | ||
4758 | ) | ||
4759 | ) | ||
4760 | otherlv_23='=' | ||
4761 | { | ||
4762 | newLeafNode(otherlv_23, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_6_1()); | ||
4763 | } | ||
4764 | ( | ||
4765 | ( | ||
4766 | lv_runs_24_0=RULE_INT | ||
4767 | { | ||
4768 | newLeafNode(lv_runs_24_0, grammarAccess.getGenerationTaskAccess().getRunsINTTerminalRuleCall_3_6_2_0()); | ||
4769 | } | ||
4770 | { | ||
4771 | if ($current==null) { | ||
4772 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
4773 | } | ||
4774 | setWithLastConsumed( | ||
4775 | $current, | ||
4776 | "runs", | ||
4777 | lv_runs_24_0, | ||
4778 | "org.eclipse.xtext.common.Terminals.INT"); | ||
4779 | } | ||
4780 | ) | ||
4781 | ) | ||
4782 | )) | ||
4783 | { | ||
4784 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4785 | } | ||
4786 | ) | ||
4787 | )| | ||
4788 | ( | ||
4789 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7)}?=>( | ||
4790 | { | ||
4791 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7); | ||
4792 | } | ||
4793 | ({true}?=>(otherlv_25='solver' | ||
4794 | { | ||
4795 | newLeafNode(otherlv_25, grammarAccess.getGenerationTaskAccess().getSolverKeyword_3_7_0()); | ||
4796 | } | ||
4797 | otherlv_26='=' | ||
4798 | { | ||
4799 | newLeafNode(otherlv_26, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_7_1()); | ||
4800 | } | ||
4801 | ( | ||
4802 | ( | ||
4803 | { | ||
4804 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getSolverSolverEnumRuleCall_3_7_2_0()); | ||
4805 | } | ||
4806 | lv_solver_27_0=ruleSolver | ||
4807 | { | ||
4808 | if ($current==null) { | ||
4809 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4810 | } | ||
4811 | set( | ||
4812 | $current, | ||
4813 | "solver", | ||
4814 | lv_solver_27_0, | ||
4815 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Solver"); | ||
4816 | afterParserOrEnumRuleCall(); | ||
4817 | } | ||
4818 | ) | ||
4819 | ) | ||
4820 | )) | ||
4821 | { | ||
4822 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4823 | } | ||
4824 | ) | ||
4825 | )| | ||
4826 | ( | ||
4827 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8)}?=>( | ||
4828 | { | ||
4829 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8); | ||
4830 | } | ||
4831 | ({true}?=>(otherlv_28='config' | ||
4832 | { | ||
4833 | newLeafNode(otherlv_28, grammarAccess.getGenerationTaskAccess().getConfigKeyword_3_8_0()); | ||
4834 | } | ||
4835 | otherlv_29='=' | ||
4836 | { | ||
4837 | newLeafNode(otherlv_29, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_8_1()); | ||
4838 | } | ||
4839 | ( | ||
4840 | ( | ||
4841 | { | ||
4842 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getConfigConfigParserRuleCall_3_8_2_0()); | ||
4843 | } | ||
4844 | lv_config_30_0=ruleConfig | ||
4845 | { | ||
4846 | if ($current==null) { | ||
4847 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4848 | } | ||
4849 | set( | ||
4850 | $current, | ||
4851 | "config", | ||
4852 | lv_config_30_0, | ||
4853 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Config"); | ||
4854 | afterParserOrEnumRuleCall(); | ||
4855 | } | ||
4856 | ) | ||
4857 | ) | ||
4858 | )) | ||
4859 | { | ||
4860 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4861 | } | ||
4862 | ) | ||
4863 | )| | ||
4864 | ( | ||
4865 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9)}?=>( | ||
4866 | { | ||
4867 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9); | ||
4868 | } | ||
4869 | ({true}?=>(otherlv_31='debug' | ||
4870 | { | ||
4871 | newLeafNode(otherlv_31, grammarAccess.getGenerationTaskAccess().getDebugKeyword_3_9_0()); | ||
4872 | } | ||
4873 | otherlv_32='=' | ||
4874 | { | ||
4875 | newLeafNode(otherlv_32, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_9_1()); | ||
4876 | } | ||
4877 | ( | ||
4878 | ( | ||
4879 | { | ||
4880 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getDebugFolderFileParserRuleCall_3_9_2_0()); | ||
4881 | } | ||
4882 | lv_debugFolder_33_0=ruleFile | ||
4883 | { | ||
4884 | if ($current==null) { | ||
4885 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4886 | } | ||
4887 | set( | ||
4888 | $current, | ||
4889 | "debugFolder", | ||
4890 | lv_debugFolder_33_0, | ||
4891 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
4892 | afterParserOrEnumRuleCall(); | ||
4893 | } | ||
4894 | ) | ||
4895 | ) | ||
4896 | )) | ||
4897 | { | ||
4898 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4899 | } | ||
4900 | ) | ||
4901 | )| | ||
4902 | ( | ||
4903 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10)}?=>( | ||
4904 | { | ||
4905 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10); | ||
4906 | } | ||
4907 | ({true}?=>(otherlv_34='log' | ||
4908 | { | ||
4909 | newLeafNode(otherlv_34, grammarAccess.getGenerationTaskAccess().getLogKeyword_3_10_0()); | ||
4910 | } | ||
4911 | otherlv_35='=' | ||
4912 | { | ||
4913 | newLeafNode(otherlv_35, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_10_1()); | ||
4914 | } | ||
4915 | ( | ||
4916 | ( | ||
4917 | { | ||
4918 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetLogFileFileParserRuleCall_3_10_2_0()); | ||
4919 | } | ||
4920 | lv_targetLogFile_36_0=ruleFile | ||
4921 | { | ||
4922 | if ($current==null) { | ||
4923 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4924 | } | ||
4925 | set( | ||
4926 | $current, | ||
4927 | "targetLogFile", | ||
4928 | lv_targetLogFile_36_0, | ||
4929 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
4930 | afterParserOrEnumRuleCall(); | ||
4931 | } | ||
4932 | ) | ||
4933 | ) | ||
4934 | )) | ||
4935 | { | ||
4936 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4937 | } | ||
4938 | ) | ||
4939 | )| | ||
4940 | ( | ||
4941 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11)}?=>( | ||
4942 | { | ||
4943 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11); | ||
4944 | } | ||
4945 | ({true}?=>(otherlv_37='statistics' | ||
4946 | { | ||
4947 | newLeafNode(otherlv_37, grammarAccess.getGenerationTaskAccess().getStatisticsKeyword_3_11_0()); | ||
4948 | } | ||
4949 | otherlv_38='=' | ||
4950 | { | ||
4951 | newLeafNode(otherlv_38, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_11_1()); | ||
4952 | } | ||
4953 | ( | ||
4954 | ( | ||
4955 | { | ||
4956 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetStatisticsFileFileParserRuleCall_3_11_2_0()); | ||
4957 | } | ||
4958 | lv_targetStatisticsFile_39_0=ruleFile | ||
4959 | { | ||
4960 | if ($current==null) { | ||
4961 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4962 | } | ||
4963 | set( | ||
4964 | $current, | ||
4965 | "targetStatisticsFile", | ||
4966 | lv_targetStatisticsFile_39_0, | ||
4967 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
4968 | afterParserOrEnumRuleCall(); | ||
4969 | } | ||
4970 | ) | ||
4971 | ) | ||
4972 | )) | ||
4973 | { | ||
4974 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4975 | } | ||
4976 | ) | ||
4977 | )| | ||
4978 | ( | ||
4979 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 12)}?=>( | ||
4980 | { | ||
4981 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 12); | ||
4982 | } | ||
4983 | ({true}?=>(otherlv_40='output' | ||
4984 | { | ||
4985 | newLeafNode(otherlv_40, grammarAccess.getGenerationTaskAccess().getOutputKeyword_3_12_0()); | ||
4986 | } | ||
4987 | otherlv_41='=' | ||
4988 | { | ||
4989 | newLeafNode(otherlv_41, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_12_1()); | ||
4990 | } | ||
4991 | ( | ||
4992 | ( | ||
4993 | { | ||
4994 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTagetFolderFileParserRuleCall_3_12_2_0()); | ||
4995 | } | ||
4996 | lv_tagetFolder_42_0=ruleFile | ||
4997 | { | ||
4998 | if ($current==null) { | ||
4999 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
5000 | } | ||
5001 | set( | ||
5002 | $current, | ||
5003 | "tagetFolder", | ||
5004 | lv_tagetFolder_42_0, | ||
5005 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
5006 | afterParserOrEnumRuleCall(); | ||
5007 | } | ||
5008 | ) | ||
5009 | ) | ||
5010 | )) | ||
5011 | { | ||
5012 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
5013 | } | ||
5014 | ) | ||
5015 | ) | ||
5016 | )* | ||
5017 | ) | ||
5018 | ) | ||
5019 | { | ||
5020 | getUnorderedGroupHelper().leave(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
5021 | } | ||
5022 | ) | ||
5023 | otherlv_43='}' | ||
5024 | { | ||
5025 | newLeafNode(otherlv_43, grammarAccess.getGenerationTaskAccess().getRightCurlyBracketKeyword_4()); | ||
5026 | } | ||
5027 | ) | ||
5028 | ; | ||
5029 | |||
5030 | // Rule OptimizationDirection | ||
5031 | ruleOptimizationDirection returns [Enumerator current=null] | ||
5032 | @init { | ||
5033 | enterRule(); | ||
5034 | } | ||
5035 | @after { | ||
5036 | leaveRule(); | ||
5037 | }: | ||
5038 | ( | ||
5039 | ( | ||
5040 | enumLiteral_0='minimize' | ||
5041 | { | ||
5042 | $current = grammarAccess.getOptimizationDirectionAccess().getMINIMIZEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | ||
5043 | newLeafNode(enumLiteral_0, grammarAccess.getOptimizationDirectionAccess().getMINIMIZEEnumLiteralDeclaration_0()); | ||
5044 | } | ||
5045 | ) | ||
5046 | | | ||
5047 | ( | ||
5048 | enumLiteral_1='maximize' | ||
5049 | { | ||
5050 | $current = grammarAccess.getOptimizationDirectionAccess().getMAXIMIZEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | ||
5051 | newLeafNode(enumLiteral_1, grammarAccess.getOptimizationDirectionAccess().getMAXIMIZEEnumLiteralDeclaration_1()); | ||
5052 | } | ||
5053 | ) | ||
5054 | ) | ||
5055 | ; | ||
5056 | |||
5057 | // Rule ComparisonOperator | ||
5058 | ruleComparisonOperator returns [Enumerator current=null] | ||
5059 | @init { | ||
5060 | enterRule(); | ||
5061 | } | ||
5062 | @after { | ||
5063 | leaveRule(); | ||
5064 | }: | ||
5065 | ( | ||
5066 | ( | ||
5067 | enumLiteral_0='<' | ||
5068 | { | ||
5069 | $current = grammarAccess.getComparisonOperatorAccess().getLESSEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | ||
5070 | newLeafNode(enumLiteral_0, grammarAccess.getComparisonOperatorAccess().getLESSEnumLiteralDeclaration_0()); | ||
5071 | } | ||
5072 | ) | ||
5073 | | | ||
5074 | ( | ||
5075 | enumLiteral_1='>' | ||
5076 | { | ||
5077 | $current = grammarAccess.getComparisonOperatorAccess().getGREATEREnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | ||
5078 | newLeafNode(enumLiteral_1, grammarAccess.getComparisonOperatorAccess().getGREATEREnumLiteralDeclaration_1()); | ||
5079 | } | ||
5080 | ) | ||
5081 | | | ||
5082 | ( | ||
5083 | enumLiteral_2='<=' | ||
5084 | { | ||
5085 | $current = grammarAccess.getComparisonOperatorAccess().getLESS_EQUALSEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | ||
5086 | newLeafNode(enumLiteral_2, grammarAccess.getComparisonOperatorAccess().getLESS_EQUALSEnumLiteralDeclaration_2()); | ||
5087 | } | ||
5088 | ) | ||
5089 | | | ||
5090 | ( | ||
5091 | enumLiteral_3='>=' | ||
5092 | { | ||
5093 | $current = grammarAccess.getComparisonOperatorAccess().getGREATER_EQUALSEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); | ||
5094 | newLeafNode(enumLiteral_3, grammarAccess.getComparisonOperatorAccess().getGREATER_EQUALSEnumLiteralDeclaration_3()); | ||
5095 | } | ||
5096 | ) | ||
5097 | ) | ||
5098 | ; | ||
5099 | |||
5100 | // Rule DocumentLevelSpecification | ||
5101 | ruleDocumentLevelSpecification returns [Enumerator current=null] | ||
5102 | @init { | ||
5103 | enterRule(); | ||
5104 | } | ||
5105 | @after { | ||
5106 | leaveRule(); | ||
5107 | }: | ||
5108 | ( | ||
5109 | ( | ||
5110 | enumLiteral_0='none' | ||
5111 | { | ||
5112 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | ||
5113 | newLeafNode(enumLiteral_0, grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0()); | ||
5114 | } | ||
5115 | ) | ||
5116 | | | ||
5117 | ( | ||
5118 | enumLiteral_1='normal' | ||
5119 | { | ||
5120 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | ||
5121 | newLeafNode(enumLiteral_1, grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1()); | ||
5122 | } | ||
5123 | ) | ||
5124 | | | ||
5125 | ( | ||
5126 | enumLiteral_2='full' | ||
5127 | { | ||
5128 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | ||
5129 | newLeafNode(enumLiteral_2, grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2()); | ||
5130 | } | ||
5131 | ) | ||
5132 | ) | ||
5133 | ; | ||
5134 | |||
5135 | // Rule Solver | ||
5136 | ruleSolver returns [Enumerator current=null] | ||
5137 | @init { | ||
5138 | enterRule(); | ||
5139 | } | ||
5140 | @after { | ||
5141 | leaveRule(); | ||
5142 | }: | ||
5143 | ( | ||
5144 | ( | ||
5145 | enumLiteral_0='SMTSolver' | ||
5146 | { | ||
5147 | $current = grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | ||
5148 | newLeafNode(enumLiteral_0, grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0()); | ||
5149 | } | ||
5150 | ) | ||
5151 | | | ||
5152 | ( | ||
5153 | enumLiteral_1='AlloySolver' | ||
5154 | { | ||
5155 | $current = grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | ||
5156 | newLeafNode(enumLiteral_1, grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1()); | ||
5157 | } | ||
5158 | ) | ||
5159 | | | ||
5160 | ( | ||
5161 | enumLiteral_2='ViatraSolver' | ||
5162 | { | ||
5163 | $current = grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | ||
5164 | newLeafNode(enumLiteral_2, grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2()); | ||
5165 | } | ||
5166 | ) | ||
5167 | ) | ||
5168 | ; | ||
5169 | |||
5170 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
5171 | |||
5172 | RULE_INT : ('0'..'9')+; | ||
5173 | |||
5174 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
5175 | |||
5176 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
5177 | |||
5178 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
5179 | |||
5180 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
5181 | |||
5182 | RULE_ANY_OTHER : .; | ||