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 | 9205 |
1 files changed, 4902 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..370bbe33 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,4902 @@ | |||
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 | newCompositeNode(grammarAccess.getObjectiveFunctionAccess().getReliabiltiyFunctionParserRuleCall()); |
2099 | { | 2099 | } |
2100 | if ($current==null) { | 2100 | this_ReliabiltiyFunction_0=ruleReliabiltiyFunction |
2101 | $current = createModelElement(grammarAccess.getMemoryEntryRule()); | 2101 | { |
2102 | } | 2102 | $current = $this_ReliabiltiyFunction_0.current; |
2103 | setWithLastConsumed( | 2103 | afterParserOrEnumRuleCall(); |
2104 | $current, | 2104 | } |
2105 | "megabyteLimit", | 2105 | ; |
2106 | lv_megabyteLimit_2_0, | 2106 | |
2107 | "org.eclipse.xtext.common.Terminals.INT"); | 2107 | // Entry rule entryRuleReliabiltiyFunction |
2108 | } | 2108 | entryRuleReliabiltiyFunction returns [EObject current=null]: |
2109 | ) | 2109 | { newCompositeNode(grammarAccess.getReliabiltiyFunctionRule()); } |
2110 | ) | 2110 | iv_ruleReliabiltiyFunction=ruleReliabiltiyFunction |
2111 | ) | 2111 | { $current=$iv_ruleReliabiltiyFunction.current; } |
2112 | ; | 2112 | EOF; |
2113 | 2113 | ||
2114 | // Entry rule entryRuleCustomEntry | 2114 | // Rule ReliabiltiyFunction |
2115 | entryRuleCustomEntry returns [EObject current=null]: | 2115 | ruleReliabiltiyFunction returns [EObject current=null] |
2116 | { newCompositeNode(grammarAccess.getCustomEntryRule()); } | 2116 | @init { |
2117 | iv_ruleCustomEntry=ruleCustomEntry | 2117 | enterRule(); |
2118 | { $current=$iv_ruleCustomEntry.current; } | 2118 | } |
2119 | EOF; | 2119 | @after { |
2120 | 2120 | leaveRule(); | |
2121 | // Rule CustomEntry | 2121 | }: |
2122 | ruleCustomEntry returns [EObject current=null] | 2122 | ( |
2123 | @init { | 2123 | otherlv_0='reliability' |
2124 | enterRule(); | 2124 | { |
2125 | } | 2125 | newLeafNode(otherlv_0, grammarAccess.getReliabiltiyFunctionAccess().getReliabilityKeyword_0()); |
2126 | @after { | 2126 | } |
2127 | leaveRule(); | 2127 | ( |
2128 | }: | 2128 | ( |
2129 | ( | 2129 | ( |
2130 | ( | 2130 | { |
2131 | ( | 2131 | if ($current==null) { |
2132 | lv_key_0_0=RULE_STRING | 2132 | $current = createModelElement(grammarAccess.getReliabiltiyFunctionRule()); |
2133 | { | 2133 | } |
2134 | newLeafNode(lv_key_0_0, grammarAccess.getCustomEntryAccess().getKeySTRINGTerminalRuleCall_0_0()); | 2134 | } |
2135 | } | 2135 | { |
2136 | { | 2136 | newCompositeNode(grammarAccess.getReliabiltiyFunctionAccess().getPackageCftModelCrossReference_1_0_0()); |
2137 | if ($current==null) { | 2137 | } |
2138 | $current = createModelElement(grammarAccess.getCustomEntryRule()); | 2138 | ruleQualifiedName |
2139 | } | 2139 | { |
2140 | setWithLastConsumed( | 2140 | afterParserOrEnumRuleCall(); |
2141 | $current, | 2141 | } |
2142 | "key", | 2142 | ) |
2143 | lv_key_0_0, | 2143 | ) |
2144 | "org.eclipse.xtext.common.Terminals.STRING"); | 2144 | otherlv_2='::' |
2145 | } | 2145 | { |
2146 | ) | 2146 | newLeafNode(otherlv_2, grammarAccess.getReliabiltiyFunctionAccess().getColonColonKeyword_1_1()); |
2147 | ) | 2147 | } |
2148 | otherlv_1='=' | 2148 | )? |
2149 | { | 2149 | ( |
2150 | newLeafNode(otherlv_1, grammarAccess.getCustomEntryAccess().getEqualsSignKeyword_1()); | 2150 | ( |
2151 | } | 2151 | { |
2152 | ( | 2152 | if ($current==null) { |
2153 | ( | 2153 | $current = createModelElement(grammarAccess.getReliabiltiyFunctionRule()); |
2154 | lv_value_2_0=RULE_STRING | 2154 | } |
2155 | { | 2155 | } |
2156 | newLeafNode(lv_value_2_0, grammarAccess.getCustomEntryAccess().getValueSTRINGTerminalRuleCall_2_0()); | 2156 | otherlv_3=RULE_ID |
2157 | } | 2157 | { |
2158 | { | 2158 | newLeafNode(otherlv_3, grammarAccess.getReliabiltiyFunctionAccess().getTransformationTransformationDefinitionCrossReference_2_0()); |
2159 | if ($current==null) { | 2159 | } |
2160 | $current = createModelElement(grammarAccess.getCustomEntryRule()); | 2160 | ) |
2161 | } | 2161 | ) |
2162 | setWithLastConsumed( | 2162 | ) |
2163 | $current, | 2163 | ; |
2164 | "value", | 2164 | |
2165 | lv_value_2_0, | 2165 | // Entry rule entryRuleObjectiveDeclaration |
2166 | "org.eclipse.xtext.common.Terminals.STRING"); | 2166 | entryRuleObjectiveDeclaration returns [EObject current=null]: |
2167 | } | 2167 | { newCompositeNode(grammarAccess.getObjectiveDeclarationRule()); } |
2168 | ) | 2168 | iv_ruleObjectiveDeclaration=ruleObjectiveDeclaration |
2169 | ) | 2169 | { $current=$iv_ruleObjectiveDeclaration.current; } |
2170 | ) | 2170 | EOF; |
2171 | ; | 2171 | |
2172 | 2172 | // Rule ObjectiveDeclaration | |
2173 | // Entry rule entryRuleConfigReference | 2173 | ruleObjectiveDeclaration returns [EObject current=null] |
2174 | entryRuleConfigReference returns [EObject current=null]: | 2174 | @init { |
2175 | { newCompositeNode(grammarAccess.getConfigReferenceRule()); } | 2175 | enterRule(); |
2176 | iv_ruleConfigReference=ruleConfigReference | 2176 | } |
2177 | { $current=$iv_ruleConfigReference.current; } | 2177 | @after { |
2178 | EOF; | 2178 | leaveRule(); |
2179 | 2179 | }: | |
2180 | // Rule ConfigReference | 2180 | ( |
2181 | ruleConfigReference returns [EObject current=null] | 2181 | otherlv_0='objectives' |
2182 | @init { | 2182 | { |
2183 | enterRule(); | 2183 | newLeafNode(otherlv_0, grammarAccess.getObjectiveDeclarationAccess().getObjectivesKeyword_0()); |
2184 | } | 2184 | } |
2185 | @after { | 2185 | ( |
2186 | leaveRule(); | 2186 | ( |
2187 | }: | 2187 | lv_name_1_0=RULE_ID |
2188 | ( | 2188 | { |
2189 | ( | 2189 | newLeafNode(lv_name_1_0, grammarAccess.getObjectiveDeclarationAccess().getNameIDTerminalRuleCall_1_0()); |
2190 | { | 2190 | } |
2191 | if ($current==null) { | 2191 | { |
2192 | $current = createModelElement(grammarAccess.getConfigReferenceRule()); | 2192 | if ($current==null) { |
2193 | } | 2193 | $current = createModelElement(grammarAccess.getObjectiveDeclarationRule()); |
2194 | } | 2194 | } |
2195 | otherlv_0=RULE_ID | 2195 | setWithLastConsumed( |
2196 | { | 2196 | $current, |
2197 | newLeafNode(otherlv_0, grammarAccess.getConfigReferenceAccess().getConfigConfigDeclarationCrossReference_0()); | 2197 | "name", |
2198 | } | 2198 | lv_name_1_0, |
2199 | ) | 2199 | "org.eclipse.xtext.common.Terminals.ID"); |
2200 | ) | 2200 | } |
2201 | ; | 2201 | ) |
2202 | 2202 | ) | |
2203 | // Entry rule entryRuleConfig | 2203 | ( |
2204 | entryRuleConfig returns [EObject current=null]: | 2204 | ( |
2205 | { newCompositeNode(grammarAccess.getConfigRule()); } | 2205 | { |
2206 | iv_ruleConfig=ruleConfig | 2206 | newCompositeNode(grammarAccess.getObjectiveDeclarationAccess().getSpecificationObjectiveSpecificationParserRuleCall_2_0()); |
2207 | { $current=$iv_ruleConfig.current; } | 2207 | } |
2208 | EOF; | 2208 | lv_specification_2_0=ruleObjectiveSpecification |
2209 | 2209 | { | |
2210 | // Rule Config | 2210 | if ($current==null) { |
2211 | ruleConfig returns [EObject current=null] | 2211 | $current = createModelElementForParent(grammarAccess.getObjectiveDeclarationRule()); |
2212 | @init { | 2212 | } |
2213 | enterRule(); | 2213 | set( |
2214 | } | 2214 | $current, |
2215 | @after { | 2215 | "specification", |
2216 | leaveRule(); | 2216 | lv_specification_2_0, |
2217 | }: | 2217 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveSpecification"); |
2218 | ( | 2218 | afterParserOrEnumRuleCall(); |
2219 | { | 2219 | } |
2220 | newCompositeNode(grammarAccess.getConfigAccess().getConfigSpecificationParserRuleCall_0()); | 2220 | ) |
2221 | } | 2221 | ) |
2222 | this_ConfigSpecification_0=ruleConfigSpecification | 2222 | ) |
2223 | { | 2223 | ; |
2224 | $current = $this_ConfigSpecification_0.current; | 2224 | |
2225 | afterParserOrEnumRuleCall(); | 2225 | // Entry rule entryRuleObjectiveReference |
2226 | } | 2226 | entryRuleObjectiveReference returns [EObject current=null]: |
2227 | | | 2227 | { newCompositeNode(grammarAccess.getObjectiveReferenceRule()); } |
2228 | { | 2228 | iv_ruleObjectiveReference=ruleObjectiveReference |
2229 | newCompositeNode(grammarAccess.getConfigAccess().getConfigReferenceParserRuleCall_1()); | 2229 | { $current=$iv_ruleObjectiveReference.current; } |
2230 | } | 2230 | EOF; |
2231 | this_ConfigReference_1=ruleConfigReference | 2231 | |
2232 | { | 2232 | // Rule ObjectiveReference |
2233 | $current = $this_ConfigReference_1.current; | 2233 | ruleObjectiveReference returns [EObject current=null] |
2234 | afterParserOrEnumRuleCall(); | 2234 | @init { |
2235 | } | 2235 | enterRule(); |
2236 | ) | 2236 | } |
2237 | ; | 2237 | @after { |
2238 | 2238 | leaveRule(); | |
2239 | // Entry rule entryRuleScopeSpecification | 2239 | }: |
2240 | entryRuleScopeSpecification returns [EObject current=null]: | 2240 | ( |
2241 | { newCompositeNode(grammarAccess.getScopeSpecificationRule()); } | 2241 | ( |
2242 | iv_ruleScopeSpecification=ruleScopeSpecification | 2242 | { |
2243 | { $current=$iv_ruleScopeSpecification.current; } | 2243 | if ($current==null) { |
2244 | EOF; | 2244 | $current = createModelElement(grammarAccess.getObjectiveReferenceRule()); |
2245 | 2245 | } | |
2246 | // Rule ScopeSpecification | 2246 | } |
2247 | ruleScopeSpecification returns [EObject current=null] | 2247 | otherlv_0=RULE_ID |
2248 | @init { | 2248 | { |
2249 | enterRule(); | 2249 | newLeafNode(otherlv_0, grammarAccess.getObjectiveReferenceAccess().getReferredObjectiveDeclarationCrossReference_0()); |
2250 | } | 2250 | } |
2251 | @after { | 2251 | ) |
2252 | leaveRule(); | 2252 | ) |
2253 | }: | 2253 | ; |
2254 | ( | 2254 | |
2255 | ( | 2255 | // Entry rule entryRuleObjective |
2256 | { | 2256 | entryRuleObjective returns [EObject current=null]: |
2257 | $current = forceCreateModelElement( | 2257 | { newCompositeNode(grammarAccess.getObjectiveRule()); } |
2258 | grammarAccess.getScopeSpecificationAccess().getScopeSpecificationAction_0(), | 2258 | iv_ruleObjective=ruleObjective |
2259 | $current); | 2259 | { $current=$iv_ruleObjective.current; } |
2260 | } | 2260 | EOF; |
2261 | ) | 2261 | |
2262 | otherlv_1='{' | 2262 | // Rule Objective |
2263 | { | 2263 | ruleObjective returns [EObject current=null] |
2264 | newLeafNode(otherlv_1, grammarAccess.getScopeSpecificationAccess().getLeftCurlyBracketKeyword_1()); | 2264 | @init { |
2265 | } | 2265 | enterRule(); |
2266 | ( | 2266 | } |
2267 | ( | 2267 | @after { |
2268 | ( | 2268 | leaveRule(); |
2269 | { | 2269 | }: |
2270 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_0_0()); | 2270 | ( |
2271 | } | 2271 | { |
2272 | lv_scopes_2_0=ruleTypeScope | 2272 | newCompositeNode(grammarAccess.getObjectiveAccess().getObjectiveReferenceParserRuleCall_0()); |
2273 | { | 2273 | } |
2274 | if ($current==null) { | 2274 | this_ObjectiveReference_0=ruleObjectiveReference |
2275 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); | 2275 | { |
2276 | } | 2276 | $current = $this_ObjectiveReference_0.current; |
2277 | add( | 2277 | afterParserOrEnumRuleCall(); |
2278 | $current, | 2278 | } |
2279 | "scopes", | 2279 | | |
2280 | lv_scopes_2_0, | 2280 | { |
2281 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); | 2281 | newCompositeNode(grammarAccess.getObjectiveAccess().getObjectiveSpecificationParserRuleCall_1()); |
2282 | afterParserOrEnumRuleCall(); | 2282 | } |
2283 | } | 2283 | this_ObjectiveSpecification_1=ruleObjectiveSpecification |
2284 | ) | 2284 | { |
2285 | ) | 2285 | $current = $this_ObjectiveSpecification_1.current; |
2286 | ( | 2286 | afterParserOrEnumRuleCall(); |
2287 | otherlv_3=',' | 2287 | } |
2288 | { | 2288 | ) |
2289 | newLeafNode(otherlv_3, grammarAccess.getScopeSpecificationAccess().getCommaKeyword_2_1_0()); | 2289 | ; |
2290 | } | 2290 | |
2291 | ( | 2291 | // Entry rule entryRuleConfigSpecification |
2292 | ( | 2292 | entryRuleConfigSpecification returns [EObject current=null]: |
2293 | { | 2293 | { newCompositeNode(grammarAccess.getConfigSpecificationRule()); } |
2294 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_1_1_0()); | 2294 | iv_ruleConfigSpecification=ruleConfigSpecification |
2295 | } | 2295 | { $current=$iv_ruleConfigSpecification.current; } |
2296 | lv_scopes_4_0=ruleTypeScope | 2296 | EOF; |
2297 | { | 2297 | |
2298 | if ($current==null) { | 2298 | // Rule ConfigSpecification |
2299 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); | 2299 | ruleConfigSpecification returns [EObject current=null] |
2300 | } | 2300 | @init { |
2301 | add( | 2301 | enterRule(); |
2302 | $current, | 2302 | } |
2303 | "scopes", | 2303 | @after { |
2304 | lv_scopes_4_0, | 2304 | leaveRule(); |
2305 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); | 2305 | }: |
2306 | afterParserOrEnumRuleCall(); | 2306 | ( |
2307 | } | 2307 | ( |
2308 | ) | 2308 | { |
2309 | ) | 2309 | $current = forceCreateModelElement( |
2310 | )* | 2310 | grammarAccess.getConfigSpecificationAccess().getConfigSpecificationAction_0(), |
2311 | )? | 2311 | $current); |
2312 | otherlv_5='}' | 2312 | } |
2313 | { | 2313 | ) |
2314 | newLeafNode(otherlv_5, grammarAccess.getScopeSpecificationAccess().getRightCurlyBracketKeyword_3()); | 2314 | otherlv_1='{' |
2315 | } | 2315 | { |
2316 | ) | 2316 | newLeafNode(otherlv_1, grammarAccess.getConfigSpecificationAccess().getLeftCurlyBracketKeyword_1()); |
2317 | ; | 2317 | } |
2318 | 2318 | ( | |
2319 | // Entry rule entryRuleTypeScope | 2319 | ( |
2320 | entryRuleTypeScope returns [EObject current=null]: | 2320 | ( |
2321 | { newCompositeNode(grammarAccess.getTypeScopeRule()); } | 2321 | { |
2322 | iv_ruleTypeScope=ruleTypeScope | 2322 | newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_0_0()); |
2323 | { $current=$iv_ruleTypeScope.current; } | 2323 | } |
2324 | EOF; | 2324 | lv_entries_2_0=ruleConfigEntry |
2325 | 2325 | { | |
2326 | // Rule TypeScope | 2326 | if ($current==null) { |
2327 | ruleTypeScope returns [EObject current=null] | 2327 | $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); |
2328 | @init { | 2328 | } |
2329 | enterRule(); | 2329 | add( |
2330 | } | 2330 | $current, |
2331 | @after { | 2331 | "entries", |
2332 | leaveRule(); | 2332 | lv_entries_2_0, |
2333 | }: | 2333 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); |
2334 | ( | 2334 | afterParserOrEnumRuleCall(); |
2335 | { | 2335 | } |
2336 | newCompositeNode(grammarAccess.getTypeScopeAccess().getClassTypeScopeParserRuleCall_0()); | 2336 | ) |
2337 | } | 2337 | ) |
2338 | this_ClassTypeScope_0=ruleClassTypeScope | 2338 | ( |
2339 | { | 2339 | otherlv_3=',' |
2340 | $current = $this_ClassTypeScope_0.current; | 2340 | { |
2341 | afterParserOrEnumRuleCall(); | 2341 | newLeafNode(otherlv_3, grammarAccess.getConfigSpecificationAccess().getCommaKeyword_2_1_0()); |
2342 | } | 2342 | } |
2343 | | | 2343 | ( |
2344 | { | 2344 | ( |
2345 | newCompositeNode(grammarAccess.getTypeScopeAccess().getObjectTypeScopeParserRuleCall_1()); | 2345 | { |
2346 | } | 2346 | newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_1_1_0()); |
2347 | this_ObjectTypeScope_1=ruleObjectTypeScope | 2347 | } |
2348 | { | 2348 | lv_entries_4_0=ruleConfigEntry |
2349 | $current = $this_ObjectTypeScope_1.current; | 2349 | { |
2350 | afterParserOrEnumRuleCall(); | 2350 | if ($current==null) { |
2351 | } | 2351 | $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); |
2352 | | | 2352 | } |
2353 | { | 2353 | add( |
2354 | newCompositeNode(grammarAccess.getTypeScopeAccess().getIntegerTypeScopeParserRuleCall_2()); | 2354 | $current, |
2355 | } | 2355 | "entries", |
2356 | this_IntegerTypeScope_2=ruleIntegerTypeScope | 2356 | lv_entries_4_0, |
2357 | { | 2357 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); |
2358 | $current = $this_IntegerTypeScope_2.current; | 2358 | afterParserOrEnumRuleCall(); |
2359 | afterParserOrEnumRuleCall(); | 2359 | } |
2360 | } | 2360 | ) |
2361 | | | 2361 | ) |
2362 | { | 2362 | )* |
2363 | newCompositeNode(grammarAccess.getTypeScopeAccess().getRealTypeScopeParserRuleCall_3()); | 2363 | )? |
2364 | } | 2364 | otherlv_5='}' |
2365 | this_RealTypeScope_3=ruleRealTypeScope | 2365 | { |
2366 | { | 2366 | newLeafNode(otherlv_5, grammarAccess.getConfigSpecificationAccess().getRightCurlyBracketKeyword_3()); |
2367 | $current = $this_RealTypeScope_3.current; | 2367 | } |
2368 | afterParserOrEnumRuleCall(); | 2368 | ) |
2369 | } | 2369 | ; |
2370 | | | 2370 | |
2371 | { | 2371 | // Entry rule entryRuleConfigDeclaration |
2372 | newCompositeNode(grammarAccess.getTypeScopeAccess().getStringTypeScopeParserRuleCall_4()); | 2372 | entryRuleConfigDeclaration returns [EObject current=null]: |
2373 | } | 2373 | { newCompositeNode(grammarAccess.getConfigDeclarationRule()); } |
2374 | this_StringTypeScope_4=ruleStringTypeScope | 2374 | iv_ruleConfigDeclaration=ruleConfigDeclaration |
2375 | { | 2375 | { $current=$iv_ruleConfigDeclaration.current; } |
2376 | $current = $this_StringTypeScope_4.current; | 2376 | EOF; |
2377 | afterParserOrEnumRuleCall(); | 2377 | |
2378 | } | 2378 | // Rule ConfigDeclaration |
2379 | ) | 2379 | ruleConfigDeclaration 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='config' |
2388 | 2388 | { | |
2389 | // Rule ClassTypeScope | 2389 | newLeafNode(otherlv_0, grammarAccess.getConfigDeclarationAccess().getConfigKeyword_0()); |
2390 | ruleClassTypeScope returns [EObject current=null] | 2390 | } |
2391 | @init { | 2391 | ( |
2392 | enterRule(); | 2392 | ( |
2393 | } | 2393 | lv_name_1_0=RULE_ID |
2394 | @after { | 2394 | { |
2395 | leaveRule(); | 2395 | newLeafNode(lv_name_1_0, grammarAccess.getConfigDeclarationAccess().getNameIDTerminalRuleCall_1_0()); |
2396 | }: | 2396 | } |
2397 | ( | 2397 | { |
2398 | otherlv_0='#' | 2398 | if ($current==null) { |
2399 | { | 2399 | $current = createModelElement(grammarAccess.getConfigDeclarationRule()); |
2400 | newLeafNode(otherlv_0, grammarAccess.getClassTypeScopeAccess().getNumberSignKeyword_0()); | 2400 | } |
2401 | } | 2401 | setWithLastConsumed( |
2402 | ( | 2402 | $current, |
2403 | ( | 2403 | "name", |
2404 | { | 2404 | lv_name_1_0, |
2405 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getTypeClassReferenceParserRuleCall_1_0()); | 2405 | "org.eclipse.xtext.common.Terminals.ID"); |
2406 | } | 2406 | } |
2407 | lv_type_1_0=ruleClassReference | 2407 | ) |
2408 | { | 2408 | ) |
2409 | if ($current==null) { | 2409 | ( |
2410 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); | 2410 | ( |
2411 | } | 2411 | { |
2412 | set( | 2412 | newCompositeNode(grammarAccess.getConfigDeclarationAccess().getSpecificationConfigSpecificationParserRuleCall_2_0()); |
2413 | $current, | 2413 | } |
2414 | "type", | 2414 | lv_specification_2_0=ruleConfigSpecification |
2415 | lv_type_1_0, | 2415 | { |
2416 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ClassReference"); | 2416 | if ($current==null) { |
2417 | afterParserOrEnumRuleCall(); | 2417 | $current = createModelElementForParent(grammarAccess.getConfigDeclarationRule()); |
2418 | } | 2418 | } |
2419 | ) | 2419 | set( |
2420 | ) | 2420 | $current, |
2421 | ( | 2421 | "specification", |
2422 | ( | 2422 | lv_specification_2_0, |
2423 | ( | 2423 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigSpecification"); |
2424 | lv_setsNew_2_0='+=' | 2424 | afterParserOrEnumRuleCall(); |
2425 | { | 2425 | } |
2426 | newLeafNode(lv_setsNew_2_0, grammarAccess.getClassTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2426 | ) |
2427 | } | 2427 | ) |
2428 | { | 2428 | ) |
2429 | if ($current==null) { | 2429 | ; |
2430 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); | 2430 | |
2431 | } | 2431 | // Entry rule entryRuleConfigEntry |
2432 | setWithLastConsumed($current, "setsNew", true, "+="); | 2432 | entryRuleConfigEntry returns [EObject current=null]: |
2433 | } | 2433 | { newCompositeNode(grammarAccess.getConfigEntryRule()); } |
2434 | ) | 2434 | iv_ruleConfigEntry=ruleConfigEntry |
2435 | ) | 2435 | { $current=$iv_ruleConfigEntry.current; } |
2436 | | | 2436 | EOF; |
2437 | ( | 2437 | |
2438 | ( | 2438 | // Rule ConfigEntry |
2439 | lv_setsSum_3_0='=' | 2439 | ruleConfigEntry returns [EObject current=null] |
2440 | { | 2440 | @init { |
2441 | newLeafNode(lv_setsSum_3_0, grammarAccess.getClassTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2441 | enterRule(); |
2442 | } | 2442 | } |
2443 | { | 2443 | @after { |
2444 | if ($current==null) { | 2444 | leaveRule(); |
2445 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); | 2445 | }: |
2446 | } | 2446 | ( |
2447 | setWithLastConsumed($current, "setsSum", true, "="); | 2447 | { |
2448 | } | 2448 | newCompositeNode(grammarAccess.getConfigEntryAccess().getDocumentationEntryParserRuleCall_0()); |
2449 | ) | 2449 | } |
2450 | ) | 2450 | this_DocumentationEntry_0=ruleDocumentationEntry |
2451 | ) | 2451 | { |
2452 | ( | 2452 | $current = $this_DocumentationEntry_0.current; |
2453 | ( | 2453 | afterParserOrEnumRuleCall(); |
2454 | ( | 2454 | } |
2455 | { | 2455 | | |
2456 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2456 | { |
2457 | } | 2457 | newCompositeNode(grammarAccess.getConfigEntryAccess().getRuntimeEntryParserRuleCall_1()); |
2458 | lv_number_4_0=ruleExactNumber | 2458 | } |
2459 | { | 2459 | this_RuntimeEntry_1=ruleRuntimeEntry |
2460 | if ($current==null) { | 2460 | { |
2461 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); | 2461 | $current = $this_RuntimeEntry_1.current; |
2462 | } | 2462 | afterParserOrEnumRuleCall(); |
2463 | set( | 2463 | } |
2464 | $current, | 2464 | | |
2465 | "number", | 2465 | { |
2466 | lv_number_4_0, | 2466 | newCompositeNode(grammarAccess.getConfigEntryAccess().getMemoryEntryParserRuleCall_2()); |
2467 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2467 | } |
2468 | afterParserOrEnumRuleCall(); | 2468 | this_MemoryEntry_2=ruleMemoryEntry |
2469 | } | 2469 | { |
2470 | ) | 2470 | $current = $this_MemoryEntry_2.current; |
2471 | ) | 2471 | afterParserOrEnumRuleCall(); |
2472 | | | 2472 | } |
2473 | ( | 2473 | | |
2474 | ( | 2474 | { |
2475 | { | 2475 | newCompositeNode(grammarAccess.getConfigEntryAccess().getCustomEntryParserRuleCall_3()); |
2476 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2476 | } |
2477 | } | 2477 | this_CustomEntry_3=ruleCustomEntry |
2478 | lv_number_5_0=ruleIntervallNumber | 2478 | { |
2479 | { | 2479 | $current = $this_CustomEntry_3.current; |
2480 | if ($current==null) { | 2480 | afterParserOrEnumRuleCall(); |
2481 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); | 2481 | } |
2482 | } | 2482 | ) |
2483 | set( | 2483 | ; |
2484 | $current, | 2484 | |
2485 | "number", | 2485 | // Entry rule entryRuleDocumentationEntry |
2486 | lv_number_5_0, | 2486 | entryRuleDocumentationEntry returns [EObject current=null]: |
2487 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2487 | { newCompositeNode(grammarAccess.getDocumentationEntryRule()); } |
2488 | afterParserOrEnumRuleCall(); | 2488 | iv_ruleDocumentationEntry=ruleDocumentationEntry |
2489 | } | 2489 | { $current=$iv_ruleDocumentationEntry.current; } |
2490 | ) | 2490 | EOF; |
2491 | ) | 2491 | |
2492 | ) | 2492 | // Rule DocumentationEntry |
2493 | ) | 2493 | ruleDocumentationEntry returns [EObject current=null] |
2494 | ; | 2494 | @init { |
2495 | 2495 | enterRule(); | |
2496 | // Entry rule entryRuleObjectTypeScope | 2496 | } |
2497 | entryRuleObjectTypeScope returns [EObject current=null]: | 2497 | @after { |
2498 | { newCompositeNode(grammarAccess.getObjectTypeScopeRule()); } | 2498 | leaveRule(); |
2499 | iv_ruleObjectTypeScope=ruleObjectTypeScope | 2499 | }: |
2500 | { $current=$iv_ruleObjectTypeScope.current; } | 2500 | ( |
2501 | EOF; | 2501 | otherlv_0='log-level' |
2502 | 2502 | { | |
2503 | // Rule ObjectTypeScope | 2503 | newLeafNode(otherlv_0, grammarAccess.getDocumentationEntryAccess().getLogLevelKeyword_0()); |
2504 | ruleObjectTypeScope returns [EObject current=null] | 2504 | } |
2505 | @init { | 2505 | otherlv_1='=' |
2506 | enterRule(); | 2506 | { |
2507 | } | 2507 | newLeafNode(otherlv_1, grammarAccess.getDocumentationEntryAccess().getEqualsSignKeyword_1()); |
2508 | @after { | 2508 | } |
2509 | leaveRule(); | 2509 | ( |
2510 | }: | 2510 | ( |
2511 | ( | 2511 | { |
2512 | otherlv_0='#' | 2512 | newCompositeNode(grammarAccess.getDocumentationEntryAccess().getLevelDocumentLevelSpecificationEnumRuleCall_2_0()); |
2513 | { | 2513 | } |
2514 | newLeafNode(otherlv_0, grammarAccess.getObjectTypeScopeAccess().getNumberSignKeyword_0()); | 2514 | lv_level_2_0=ruleDocumentLevelSpecification |
2515 | } | 2515 | { |
2516 | ( | 2516 | if ($current==null) { |
2517 | ( | 2517 | $current = createModelElementForParent(grammarAccess.getDocumentationEntryRule()); |
2518 | { | 2518 | } |
2519 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getTypeObjectReferenceParserRuleCall_1_0()); | 2519 | set( |
2520 | } | 2520 | $current, |
2521 | lv_type_1_0=ruleObjectReference | 2521 | "level", |
2522 | { | 2522 | lv_level_2_0, |
2523 | if ($current==null) { | 2523 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.DocumentLevelSpecification"); |
2524 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); | 2524 | afterParserOrEnumRuleCall(); |
2525 | } | 2525 | } |
2526 | set( | 2526 | ) |
2527 | $current, | 2527 | ) |
2528 | "type", | 2528 | ) |
2529 | lv_type_1_0, | 2529 | ; |
2530 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectReference"); | 2530 | |
2531 | afterParserOrEnumRuleCall(); | 2531 | // Entry rule entryRuleRuntimeEntry |
2532 | } | 2532 | entryRuleRuntimeEntry returns [EObject current=null]: |
2533 | ) | 2533 | { newCompositeNode(grammarAccess.getRuntimeEntryRule()); } |
2534 | ) | 2534 | iv_ruleRuntimeEntry=ruleRuntimeEntry |
2535 | ( | 2535 | { $current=$iv_ruleRuntimeEntry.current; } |
2536 | ( | 2536 | EOF; |
2537 | ( | 2537 | |
2538 | lv_setsNew_2_0='+=' | 2538 | // Rule RuntimeEntry |
2539 | { | 2539 | ruleRuntimeEntry returns [EObject current=null] |
2540 | newLeafNode(lv_setsNew_2_0, grammarAccess.getObjectTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2540 | @init { |
2541 | } | 2541 | enterRule(); |
2542 | { | 2542 | } |
2543 | if ($current==null) { | 2543 | @after { |
2544 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); | 2544 | leaveRule(); |
2545 | } | 2545 | }: |
2546 | setWithLastConsumed($current, "setsNew", true, "+="); | 2546 | ( |
2547 | } | 2547 | otherlv_0='runtime' |
2548 | ) | 2548 | { |
2549 | ) | 2549 | newLeafNode(otherlv_0, grammarAccess.getRuntimeEntryAccess().getRuntimeKeyword_0()); |
2550 | | | 2550 | } |
2551 | ( | 2551 | otherlv_1='=' |
2552 | ( | 2552 | { |
2553 | lv_setsSum_3_0='=' | 2553 | newLeafNode(otherlv_1, grammarAccess.getRuntimeEntryAccess().getEqualsSignKeyword_1()); |
2554 | { | 2554 | } |
2555 | newLeafNode(lv_setsSum_3_0, grammarAccess.getObjectTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2555 | ( |
2556 | } | 2556 | ( |
2557 | { | 2557 | lv_millisecLimit_2_0=RULE_INT |
2558 | if ($current==null) { | 2558 | { |
2559 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); | 2559 | newLeafNode(lv_millisecLimit_2_0, grammarAccess.getRuntimeEntryAccess().getMillisecLimitINTTerminalRuleCall_2_0()); |
2560 | } | 2560 | } |
2561 | setWithLastConsumed($current, "setsSum", true, "="); | 2561 | { |
2562 | } | 2562 | if ($current==null) { |
2563 | ) | 2563 | $current = createModelElement(grammarAccess.getRuntimeEntryRule()); |
2564 | ) | 2564 | } |
2565 | ) | 2565 | setWithLastConsumed( |
2566 | ( | 2566 | $current, |
2567 | ( | 2567 | "millisecLimit", |
2568 | ( | 2568 | lv_millisecLimit_2_0, |
2569 | { | 2569 | "org.eclipse.xtext.common.Terminals.INT"); |
2570 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2570 | } |
2571 | } | 2571 | ) |
2572 | lv_number_4_0=ruleExactNumber | 2572 | ) |
2573 | { | 2573 | ) |
2574 | if ($current==null) { | 2574 | ; |
2575 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); | 2575 | |
2576 | } | 2576 | // Entry rule entryRuleMemoryEntry |
2577 | set( | 2577 | entryRuleMemoryEntry returns [EObject current=null]: |
2578 | $current, | 2578 | { newCompositeNode(grammarAccess.getMemoryEntryRule()); } |
2579 | "number", | 2579 | iv_ruleMemoryEntry=ruleMemoryEntry |
2580 | lv_number_4_0, | 2580 | { $current=$iv_ruleMemoryEntry.current; } |
2581 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2581 | EOF; |
2582 | afterParserOrEnumRuleCall(); | 2582 | |
2583 | } | 2583 | // Rule MemoryEntry |
2584 | ) | 2584 | ruleMemoryEntry returns [EObject current=null] |
2585 | ) | 2585 | @init { |
2586 | | | 2586 | enterRule(); |
2587 | ( | 2587 | } |
2588 | ( | 2588 | @after { |
2589 | { | 2589 | leaveRule(); |
2590 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2590 | }: |
2591 | } | 2591 | ( |
2592 | lv_number_5_0=ruleIntervallNumber | 2592 | otherlv_0='memory' |
2593 | { | 2593 | { |
2594 | if ($current==null) { | 2594 | newLeafNode(otherlv_0, grammarAccess.getMemoryEntryAccess().getMemoryKeyword_0()); |
2595 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); | 2595 | } |
2596 | } | 2596 | otherlv_1='=' |
2597 | set( | 2597 | { |
2598 | $current, | 2598 | newLeafNode(otherlv_1, grammarAccess.getMemoryEntryAccess().getEqualsSignKeyword_1()); |
2599 | "number", | 2599 | } |
2600 | lv_number_5_0, | 2600 | ( |
2601 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2601 | ( |
2602 | afterParserOrEnumRuleCall(); | 2602 | lv_megabyteLimit_2_0=RULE_INT |
2603 | } | 2603 | { |
2604 | ) | 2604 | newLeafNode(lv_megabyteLimit_2_0, grammarAccess.getMemoryEntryAccess().getMegabyteLimitINTTerminalRuleCall_2_0()); |
2605 | ) | 2605 | } |
2606 | ) | 2606 | { |
2607 | ) | 2607 | if ($current==null) { |
2608 | ; | 2608 | $current = createModelElement(grammarAccess.getMemoryEntryRule()); |
2609 | 2609 | } | |
2610 | // Entry rule entryRuleIntegerTypeScope | 2610 | setWithLastConsumed( |
2611 | entryRuleIntegerTypeScope returns [EObject current=null]: | 2611 | $current, |
2612 | { newCompositeNode(grammarAccess.getIntegerTypeScopeRule()); } | 2612 | "megabyteLimit", |
2613 | iv_ruleIntegerTypeScope=ruleIntegerTypeScope | 2613 | lv_megabyteLimit_2_0, |
2614 | { $current=$iv_ruleIntegerTypeScope.current; } | 2614 | "org.eclipse.xtext.common.Terminals.INT"); |
2615 | EOF; | 2615 | } |
2616 | 2616 | ) | |
2617 | // Rule IntegerTypeScope | 2617 | ) |
2618 | ruleIntegerTypeScope returns [EObject current=null] | 2618 | ) |
2619 | @init { | 2619 | ; |
2620 | enterRule(); | 2620 | |
2621 | } | 2621 | // Entry rule entryRuleCustomEntry |
2622 | @after { | 2622 | entryRuleCustomEntry returns [EObject current=null]: |
2623 | leaveRule(); | 2623 | { newCompositeNode(grammarAccess.getCustomEntryRule()); } |
2624 | }: | 2624 | iv_ruleCustomEntry=ruleCustomEntry |
2625 | ( | 2625 | { $current=$iv_ruleCustomEntry.current; } |
2626 | otherlv_0='#' | 2626 | EOF; |
2627 | { | 2627 | |
2628 | newLeafNode(otherlv_0, grammarAccess.getIntegerTypeScopeAccess().getNumberSignKeyword_0()); | 2628 | // Rule CustomEntry |
2629 | } | 2629 | ruleCustomEntry returns [EObject current=null] |
2630 | ( | 2630 | @init { |
2631 | ( | 2631 | enterRule(); |
2632 | { | 2632 | } |
2633 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getTypeIntegerReferenceParserRuleCall_1_0()); | 2633 | @after { |
2634 | } | 2634 | leaveRule(); |
2635 | lv_type_1_0=ruleIntegerReference | 2635 | }: |
2636 | { | 2636 | ( |
2637 | if ($current==null) { | 2637 | ( |
2638 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | 2638 | ( |
2639 | } | 2639 | lv_key_0_0=RULE_STRING |
2640 | set( | 2640 | { |
2641 | $current, | 2641 | newLeafNode(lv_key_0_0, grammarAccess.getCustomEntryAccess().getKeySTRINGTerminalRuleCall_0_0()); |
2642 | "type", | 2642 | } |
2643 | lv_type_1_0, | 2643 | { |
2644 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntegerReference"); | 2644 | if ($current==null) { |
2645 | afterParserOrEnumRuleCall(); | 2645 | $current = createModelElement(grammarAccess.getCustomEntryRule()); |
2646 | } | 2646 | } |
2647 | ) | 2647 | setWithLastConsumed( |
2648 | ) | 2648 | $current, |
2649 | ( | 2649 | "key", |
2650 | ( | 2650 | lv_key_0_0, |
2651 | ( | 2651 | "org.eclipse.xtext.common.Terminals.STRING"); |
2652 | lv_setsNew_2_0='+=' | 2652 | } |
2653 | { | 2653 | ) |
2654 | newLeafNode(lv_setsNew_2_0, grammarAccess.getIntegerTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2654 | ) |
2655 | } | 2655 | otherlv_1='=' |
2656 | { | 2656 | { |
2657 | if ($current==null) { | 2657 | newLeafNode(otherlv_1, grammarAccess.getCustomEntryAccess().getEqualsSignKeyword_1()); |
2658 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); | 2658 | } |
2659 | } | 2659 | ( |
2660 | setWithLastConsumed($current, "setsNew", true, "+="); | 2660 | ( |
2661 | } | 2661 | lv_value_2_0=RULE_STRING |
2662 | ) | 2662 | { |
2663 | ) | 2663 | newLeafNode(lv_value_2_0, grammarAccess.getCustomEntryAccess().getValueSTRINGTerminalRuleCall_2_0()); |
2664 | | | 2664 | } |
2665 | ( | 2665 | { |
2666 | ( | 2666 | if ($current==null) { |
2667 | lv_setsSum_3_0='=' | 2667 | $current = createModelElement(grammarAccess.getCustomEntryRule()); |
2668 | { | 2668 | } |
2669 | newLeafNode(lv_setsSum_3_0, grammarAccess.getIntegerTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2669 | setWithLastConsumed( |
2670 | } | 2670 | $current, |
2671 | { | 2671 | "value", |
2672 | if ($current==null) { | 2672 | lv_value_2_0, |
2673 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); | 2673 | "org.eclipse.xtext.common.Terminals.STRING"); |
2674 | } | 2674 | } |
2675 | setWithLastConsumed($current, "setsSum", true, "="); | 2675 | ) |
2676 | } | 2676 | ) |
2677 | ) | 2677 | ) |
2678 | ) | 2678 | ; |
2679 | ) | 2679 | |
2680 | ( | 2680 | // Entry rule entryRuleConfigReference |
2681 | ( | 2681 | entryRuleConfigReference returns [EObject current=null]: |
2682 | ( | 2682 | { newCompositeNode(grammarAccess.getConfigReferenceRule()); } |
2683 | { | 2683 | iv_ruleConfigReference=ruleConfigReference |
2684 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2684 | { $current=$iv_ruleConfigReference.current; } |
2685 | } | 2685 | EOF; |
2686 | lv_number_4_0=ruleExactNumber | 2686 | |
2687 | { | 2687 | // Rule ConfigReference |
2688 | if ($current==null) { | 2688 | ruleConfigReference returns [EObject current=null] |
2689 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | 2689 | @init { |
2690 | } | 2690 | enterRule(); |
2691 | set( | 2691 | } |
2692 | $current, | 2692 | @after { |
2693 | "number", | 2693 | leaveRule(); |
2694 | lv_number_4_0, | 2694 | }: |
2695 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2695 | ( |
2696 | afterParserOrEnumRuleCall(); | 2696 | ( |
2697 | } | 2697 | { |
2698 | ) | 2698 | if ($current==null) { |
2699 | ) | 2699 | $current = createModelElement(grammarAccess.getConfigReferenceRule()); |
2700 | | | 2700 | } |
2701 | ( | 2701 | } |
2702 | ( | 2702 | otherlv_0=RULE_ID |
2703 | { | 2703 | { |
2704 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2704 | newLeafNode(otherlv_0, grammarAccess.getConfigReferenceAccess().getConfigConfigDeclarationCrossReference_0()); |
2705 | } | 2705 | } |
2706 | lv_number_5_0=ruleIntervallNumber | 2706 | ) |
2707 | { | 2707 | ) |
2708 | if ($current==null) { | 2708 | ; |
2709 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | 2709 | |
2710 | } | 2710 | // Entry rule entryRuleConfig |
2711 | set( | 2711 | entryRuleConfig returns [EObject current=null]: |
2712 | $current, | 2712 | { newCompositeNode(grammarAccess.getConfigRule()); } |
2713 | "number", | 2713 | iv_ruleConfig=ruleConfig |
2714 | lv_number_5_0, | 2714 | { $current=$iv_ruleConfig.current; } |
2715 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2715 | EOF; |
2716 | afterParserOrEnumRuleCall(); | 2716 | |
2717 | } | 2717 | // Rule Config |
2718 | ) | 2718 | ruleConfig returns [EObject current=null] |
2719 | ) | 2719 | @init { |
2720 | | | 2720 | enterRule(); |
2721 | ( | 2721 | } |
2722 | ( | 2722 | @after { |
2723 | { | 2723 | leaveRule(); |
2724 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntEnumberationParserRuleCall_3_2_0()); | 2724 | }: |
2725 | } | 2725 | ( |
2726 | lv_number_6_0=ruleIntEnumberation | 2726 | { |
2727 | { | 2727 | newCompositeNode(grammarAccess.getConfigAccess().getConfigSpecificationParserRuleCall_0()); |
2728 | if ($current==null) { | 2728 | } |
2729 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | 2729 | this_ConfigSpecification_0=ruleConfigSpecification |
2730 | } | 2730 | { |
2731 | set( | 2731 | $current = $this_ConfigSpecification_0.current; |
2732 | $current, | 2732 | afterParserOrEnumRuleCall(); |
2733 | "number", | 2733 | } |
2734 | lv_number_6_0, | 2734 | | |
2735 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntEnumberation"); | 2735 | { |
2736 | afterParserOrEnumRuleCall(); | 2736 | newCompositeNode(grammarAccess.getConfigAccess().getConfigReferenceParserRuleCall_1()); |
2737 | } | 2737 | } |
2738 | ) | 2738 | this_ConfigReference_1=ruleConfigReference |
2739 | ) | 2739 | { |
2740 | ) | 2740 | $current = $this_ConfigReference_1.current; |
2741 | ) | 2741 | afterParserOrEnumRuleCall(); |
2742 | ; | 2742 | } |
2743 | 2743 | ) | |
2744 | // Entry rule entryRuleRealTypeScope | 2744 | ; |
2745 | entryRuleRealTypeScope returns [EObject current=null]: | 2745 | |
2746 | { newCompositeNode(grammarAccess.getRealTypeScopeRule()); } | 2746 | // Entry rule entryRuleScopeSpecification |
2747 | iv_ruleRealTypeScope=ruleRealTypeScope | 2747 | entryRuleScopeSpecification returns [EObject current=null]: |
2748 | { $current=$iv_ruleRealTypeScope.current; } | 2748 | { newCompositeNode(grammarAccess.getScopeSpecificationRule()); } |
2749 | EOF; | 2749 | iv_ruleScopeSpecification=ruleScopeSpecification |
2750 | 2750 | { $current=$iv_ruleScopeSpecification.current; } | |
2751 | // Rule RealTypeScope | 2751 | EOF; |
2752 | ruleRealTypeScope returns [EObject current=null] | 2752 | |
2753 | @init { | 2753 | // Rule ScopeSpecification |
2754 | enterRule(); | 2754 | ruleScopeSpecification returns [EObject current=null] |
2755 | } | 2755 | @init { |
2756 | @after { | 2756 | enterRule(); |
2757 | leaveRule(); | 2757 | } |
2758 | }: | 2758 | @after { |
2759 | ( | 2759 | leaveRule(); |
2760 | otherlv_0='#' | 2760 | }: |
2761 | { | 2761 | ( |
2762 | newLeafNode(otherlv_0, grammarAccess.getRealTypeScopeAccess().getNumberSignKeyword_0()); | 2762 | ( |
2763 | } | 2763 | { |
2764 | ( | 2764 | $current = forceCreateModelElement( |
2765 | ( | 2765 | grammarAccess.getScopeSpecificationAccess().getScopeSpecificationAction_0(), |
2766 | { | 2766 | $current); |
2767 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getTypeRealReferenceParserRuleCall_1_0()); | 2767 | } |
2768 | } | 2768 | ) |
2769 | lv_type_1_0=ruleRealReference | 2769 | otherlv_1='{' |
2770 | { | 2770 | { |
2771 | if ($current==null) { | 2771 | newLeafNode(otherlv_1, grammarAccess.getScopeSpecificationAccess().getLeftCurlyBracketKeyword_1()); |
2772 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | 2772 | } |
2773 | } | 2773 | ( |
2774 | set( | 2774 | ( |
2775 | $current, | 2775 | ( |
2776 | "type", | 2776 | { |
2777 | lv_type_1_0, | 2777 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_0_0()); |
2778 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealReference"); | 2778 | } |
2779 | afterParserOrEnumRuleCall(); | 2779 | lv_scopes_2_0=ruleTypeScope |
2780 | } | 2780 | { |
2781 | ) | 2781 | if ($current==null) { |
2782 | ) | 2782 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); |
2783 | ( | 2783 | } |
2784 | ( | 2784 | add( |
2785 | ( | 2785 | $current, |
2786 | lv_setsNew_2_0='+=' | 2786 | "scopes", |
2787 | { | 2787 | lv_scopes_2_0, |
2788 | newLeafNode(lv_setsNew_2_0, grammarAccess.getRealTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2788 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); |
2789 | } | 2789 | afterParserOrEnumRuleCall(); |
2790 | { | 2790 | } |
2791 | if ($current==null) { | 2791 | ) |
2792 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); | 2792 | ) |
2793 | } | 2793 | ( |
2794 | setWithLastConsumed($current, "setsNew", true, "+="); | 2794 | otherlv_3=',' |
2795 | } | 2795 | { |
2796 | ) | 2796 | newLeafNode(otherlv_3, grammarAccess.getScopeSpecificationAccess().getCommaKeyword_2_1_0()); |
2797 | ) | 2797 | } |
2798 | | | 2798 | ( |
2799 | ( | 2799 | ( |
2800 | ( | 2800 | { |
2801 | lv_setsSum_3_0='=' | 2801 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_1_1_0()); |
2802 | { | 2802 | } |
2803 | newLeafNode(lv_setsSum_3_0, grammarAccess.getRealTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2803 | lv_scopes_4_0=ruleTypeScope |
2804 | } | 2804 | { |
2805 | { | 2805 | if ($current==null) { |
2806 | if ($current==null) { | 2806 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); |
2807 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); | 2807 | } |
2808 | } | 2808 | add( |
2809 | setWithLastConsumed($current, "setsSum", true, "="); | 2809 | $current, |
2810 | } | 2810 | "scopes", |
2811 | ) | 2811 | lv_scopes_4_0, |
2812 | ) | 2812 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); |
2813 | ) | 2813 | afterParserOrEnumRuleCall(); |
2814 | ( | 2814 | } |
2815 | ( | 2815 | ) |
2816 | ( | 2816 | ) |
2817 | { | 2817 | )* |
2818 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2818 | )? |
2819 | } | 2819 | otherlv_5='}' |
2820 | lv_number_4_0=ruleExactNumber | 2820 | { |
2821 | { | 2821 | newLeafNode(otherlv_5, grammarAccess.getScopeSpecificationAccess().getRightCurlyBracketKeyword_3()); |
2822 | if ($current==null) { | 2822 | } |
2823 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | 2823 | ) |
2824 | } | 2824 | ; |
2825 | set( | 2825 | |
2826 | $current, | 2826 | // Entry rule entryRuleTypeScope |
2827 | "number", | 2827 | entryRuleTypeScope returns [EObject current=null]: |
2828 | lv_number_4_0, | 2828 | { newCompositeNode(grammarAccess.getTypeScopeRule()); } |
2829 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2829 | iv_ruleTypeScope=ruleTypeScope |
2830 | afterParserOrEnumRuleCall(); | 2830 | { $current=$iv_ruleTypeScope.current; } |
2831 | } | 2831 | EOF; |
2832 | ) | 2832 | |
2833 | ) | 2833 | // Rule TypeScope |
2834 | | | 2834 | ruleTypeScope returns [EObject current=null] |
2835 | ( | 2835 | @init { |
2836 | ( | 2836 | enterRule(); |
2837 | { | 2837 | } |
2838 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2838 | @after { |
2839 | } | 2839 | leaveRule(); |
2840 | lv_number_5_0=ruleIntervallNumber | 2840 | }: |
2841 | { | 2841 | ( |
2842 | if ($current==null) { | 2842 | { |
2843 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | 2843 | newCompositeNode(grammarAccess.getTypeScopeAccess().getClassTypeScopeParserRuleCall_0()); |
2844 | } | 2844 | } |
2845 | set( | 2845 | this_ClassTypeScope_0=ruleClassTypeScope |
2846 | $current, | 2846 | { |
2847 | "number", | 2847 | $current = $this_ClassTypeScope_0.current; |
2848 | lv_number_5_0, | 2848 | afterParserOrEnumRuleCall(); |
2849 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2849 | } |
2850 | afterParserOrEnumRuleCall(); | 2850 | | |
2851 | } | 2851 | { |
2852 | ) | 2852 | newCompositeNode(grammarAccess.getTypeScopeAccess().getObjectTypeScopeParserRuleCall_1()); |
2853 | ) | 2853 | } |
2854 | | | 2854 | this_ObjectTypeScope_1=ruleObjectTypeScope |
2855 | ( | 2855 | { |
2856 | ( | 2856 | $current = $this_ObjectTypeScope_1.current; |
2857 | { | 2857 | afterParserOrEnumRuleCall(); |
2858 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberRealEnumerationParserRuleCall_3_2_0()); | 2858 | } |
2859 | } | 2859 | | |
2860 | lv_number_6_0=ruleRealEnumeration | 2860 | { |
2861 | { | 2861 | newCompositeNode(grammarAccess.getTypeScopeAccess().getIntegerTypeScopeParserRuleCall_2()); |
2862 | if ($current==null) { | 2862 | } |
2863 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | 2863 | this_IntegerTypeScope_2=ruleIntegerTypeScope |
2864 | } | 2864 | { |
2865 | set( | 2865 | $current = $this_IntegerTypeScope_2.current; |
2866 | $current, | 2866 | afterParserOrEnumRuleCall(); |
2867 | "number", | 2867 | } |
2868 | lv_number_6_0, | 2868 | | |
2869 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealEnumeration"); | 2869 | { |
2870 | afterParserOrEnumRuleCall(); | 2870 | newCompositeNode(grammarAccess.getTypeScopeAccess().getRealTypeScopeParserRuleCall_3()); |
2871 | } | 2871 | } |
2872 | ) | 2872 | this_RealTypeScope_3=ruleRealTypeScope |
2873 | ) | 2873 | { |
2874 | ) | 2874 | $current = $this_RealTypeScope_3.current; |
2875 | ) | 2875 | afterParserOrEnumRuleCall(); |
2876 | ; | 2876 | } |
2877 | 2877 | | | |
2878 | // Entry rule entryRuleStringTypeScope | 2878 | { |
2879 | entryRuleStringTypeScope returns [EObject current=null]: | 2879 | newCompositeNode(grammarAccess.getTypeScopeAccess().getStringTypeScopeParserRuleCall_4()); |
2880 | { newCompositeNode(grammarAccess.getStringTypeScopeRule()); } | 2880 | } |
2881 | iv_ruleStringTypeScope=ruleStringTypeScope | 2881 | this_StringTypeScope_4=ruleStringTypeScope |
2882 | { $current=$iv_ruleStringTypeScope.current; } | 2882 | { |
2883 | EOF; | 2883 | $current = $this_StringTypeScope_4.current; |
2884 | 2884 | afterParserOrEnumRuleCall(); | |
2885 | // Rule StringTypeScope | 2885 | } |
2886 | ruleStringTypeScope returns [EObject current=null] | 2886 | ) |
2887 | @init { | 2887 | ; |
2888 | enterRule(); | 2888 | |
2889 | } | 2889 | // Entry rule entryRuleClassTypeScope |
2890 | @after { | 2890 | entryRuleClassTypeScope returns [EObject current=null]: |
2891 | leaveRule(); | 2891 | { newCompositeNode(grammarAccess.getClassTypeScopeRule()); } |
2892 | }: | 2892 | iv_ruleClassTypeScope=ruleClassTypeScope |
2893 | ( | 2893 | { $current=$iv_ruleClassTypeScope.current; } |
2894 | otherlv_0='#' | 2894 | EOF; |
2895 | { | 2895 | |
2896 | newLeafNode(otherlv_0, grammarAccess.getStringTypeScopeAccess().getNumberSignKeyword_0()); | 2896 | // Rule ClassTypeScope |
2897 | } | 2897 | ruleClassTypeScope returns [EObject current=null] |
2898 | ( | 2898 | @init { |
2899 | ( | 2899 | enterRule(); |
2900 | { | 2900 | } |
2901 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getTypeStringReferenceParserRuleCall_1_0()); | 2901 | @after { |
2902 | } | 2902 | leaveRule(); |
2903 | lv_type_1_0=ruleStringReference | 2903 | }: |
2904 | { | 2904 | ( |
2905 | if ($current==null) { | 2905 | otherlv_0='#' |
2906 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | 2906 | { |
2907 | } | 2907 | newLeafNode(otherlv_0, grammarAccess.getClassTypeScopeAccess().getNumberSignKeyword_0()); |
2908 | set( | 2908 | } |
2909 | $current, | 2909 | ( |
2910 | "type", | 2910 | ( |
2911 | lv_type_1_0, | 2911 | { |
2912 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringReference"); | 2912 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getTypeClassReferenceParserRuleCall_1_0()); |
2913 | afterParserOrEnumRuleCall(); | 2913 | } |
2914 | } | 2914 | lv_type_1_0=ruleClassReference |
2915 | ) | 2915 | { |
2916 | ) | 2916 | if ($current==null) { |
2917 | ( | 2917 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); |
2918 | ( | 2918 | } |
2919 | ( | 2919 | set( |
2920 | lv_setsNew_2_0='+=' | 2920 | $current, |
2921 | { | 2921 | "type", |
2922 | newLeafNode(lv_setsNew_2_0, grammarAccess.getStringTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2922 | lv_type_1_0, |
2923 | } | 2923 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ClassReference"); |
2924 | { | 2924 | afterParserOrEnumRuleCall(); |
2925 | if ($current==null) { | 2925 | } |
2926 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); | 2926 | ) |
2927 | } | 2927 | ) |
2928 | setWithLastConsumed($current, "setsNew", true, "+="); | 2928 | ( |
2929 | } | 2929 | ( |
2930 | ) | 2930 | ( |
2931 | ) | 2931 | lv_setsNew_2_0='+=' |
2932 | | | 2932 | { |
2933 | ( | 2933 | newLeafNode(lv_setsNew_2_0, grammarAccess.getClassTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
2934 | ( | 2934 | } |
2935 | lv_setsSum_3_0='=' | 2935 | { |
2936 | { | 2936 | if ($current==null) { |
2937 | newLeafNode(lv_setsSum_3_0, grammarAccess.getStringTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2937 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); |
2938 | } | 2938 | } |
2939 | { | 2939 | setWithLastConsumed($current, "setsNew", true, "+="); |
2940 | if ($current==null) { | 2940 | } |
2941 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); | 2941 | ) |
2942 | } | 2942 | ) |
2943 | setWithLastConsumed($current, "setsSum", true, "="); | 2943 | | |
2944 | } | 2944 | ( |
2945 | ) | 2945 | ( |
2946 | ) | 2946 | lv_setsSum_3_0='=' |
2947 | ) | 2947 | { |
2948 | ( | 2948 | newLeafNode(lv_setsSum_3_0, grammarAccess.getClassTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
2949 | ( | 2949 | } |
2950 | ( | 2950 | { |
2951 | { | 2951 | if ($current==null) { |
2952 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | 2952 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); |
2953 | } | 2953 | } |
2954 | lv_number_4_0=ruleExactNumber | 2954 | setWithLastConsumed($current, "setsSum", true, "="); |
2955 | { | 2955 | } |
2956 | if ($current==null) { | 2956 | ) |
2957 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | 2957 | ) |
2958 | } | 2958 | ) |
2959 | set( | 2959 | ( |
2960 | $current, | 2960 | ( |
2961 | "number", | 2961 | ( |
2962 | lv_number_4_0, | 2962 | { |
2963 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | 2963 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
2964 | afterParserOrEnumRuleCall(); | 2964 | } |
2965 | } | 2965 | lv_number_4_0=ruleExactNumber |
2966 | ) | 2966 | { |
2967 | ) | 2967 | if ($current==null) { |
2968 | | | 2968 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); |
2969 | ( | 2969 | } |
2970 | ( | 2970 | set( |
2971 | { | 2971 | $current, |
2972 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | 2972 | "number", |
2973 | } | 2973 | lv_number_4_0, |
2974 | lv_number_5_0=ruleIntervallNumber | 2974 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
2975 | { | 2975 | afterParserOrEnumRuleCall(); |
2976 | if ($current==null) { | 2976 | } |
2977 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | 2977 | ) |
2978 | } | 2978 | ) |
2979 | set( | 2979 | | |
2980 | $current, | 2980 | ( |
2981 | "number", | 2981 | ( |
2982 | lv_number_5_0, | 2982 | { |
2983 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | 2983 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
2984 | afterParserOrEnumRuleCall(); | 2984 | } |
2985 | } | 2985 | lv_number_5_0=ruleIntervallNumber |
2986 | ) | 2986 | { |
2987 | ) | 2987 | if ($current==null) { |
2988 | | | 2988 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); |
2989 | ( | 2989 | } |
2990 | ( | 2990 | set( |
2991 | { | 2991 | $current, |
2992 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberStringEnumerationParserRuleCall_3_2_0()); | 2992 | "number", |
2993 | } | 2993 | lv_number_5_0, |
2994 | lv_number_6_0=ruleStringEnumeration | 2994 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
2995 | { | 2995 | afterParserOrEnumRuleCall(); |
2996 | if ($current==null) { | 2996 | } |
2997 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | 2997 | ) |
2998 | } | 2998 | ) |
2999 | set( | 2999 | ) |
3000 | $current, | 3000 | ) |
3001 | "number", | 3001 | ; |
3002 | lv_number_6_0, | 3002 | |
3003 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringEnumeration"); | 3003 | // Entry rule entryRuleObjectTypeScope |
3004 | afterParserOrEnumRuleCall(); | 3004 | entryRuleObjectTypeScope returns [EObject current=null]: |
3005 | } | 3005 | { newCompositeNode(grammarAccess.getObjectTypeScopeRule()); } |
3006 | ) | 3006 | iv_ruleObjectTypeScope=ruleObjectTypeScope |
3007 | ) | 3007 | { $current=$iv_ruleObjectTypeScope.current; } |
3008 | ) | 3008 | EOF; |
3009 | ) | 3009 | |
3010 | ; | 3010 | // Rule ObjectTypeScope |
3011 | 3011 | ruleObjectTypeScope returns [EObject current=null] | |
3012 | // Entry rule entryRuleClassReference | 3012 | @init { |
3013 | entryRuleClassReference returns [EObject current=null]: | 3013 | enterRule(); |
3014 | { newCompositeNode(grammarAccess.getClassReferenceRule()); } | 3014 | } |
3015 | iv_ruleClassReference=ruleClassReference | 3015 | @after { |
3016 | { $current=$iv_ruleClassReference.current; } | 3016 | leaveRule(); |
3017 | EOF; | 3017 | }: |
3018 | 3018 | ( | |
3019 | // Rule ClassReference | 3019 | otherlv_0='#' |
3020 | ruleClassReference returns [EObject current=null] | 3020 | { |
3021 | @init { | 3021 | newLeafNode(otherlv_0, grammarAccess.getObjectTypeScopeAccess().getNumberSignKeyword_0()); |
3022 | enterRule(); | 3022 | } |
3023 | } | 3023 | ( |
3024 | @after { | 3024 | ( |
3025 | leaveRule(); | 3025 | { |
3026 | }: | 3026 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getTypeObjectReferenceParserRuleCall_1_0()); |
3027 | ( | 3027 | } |
3028 | otherlv_0='<' | 3028 | lv_type_1_0=ruleObjectReference |
3029 | { | 3029 | { |
3030 | newLeafNode(otherlv_0, grammarAccess.getClassReferenceAccess().getLessThanSignKeyword_0()); | 3030 | if ($current==null) { |
3031 | } | 3031 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); |
3032 | ( | 3032 | } |
3033 | ( | 3033 | set( |
3034 | { | 3034 | $current, |
3035 | newCompositeNode(grammarAccess.getClassReferenceAccess().getElementMetamodelElementParserRuleCall_1_0()); | 3035 | "type", |
3036 | } | 3036 | lv_type_1_0, |
3037 | lv_element_1_0=ruleMetamodelElement | 3037 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectReference"); |
3038 | { | 3038 | afterParserOrEnumRuleCall(); |
3039 | if ($current==null) { | 3039 | } |
3040 | $current = createModelElementForParent(grammarAccess.getClassReferenceRule()); | 3040 | ) |
3041 | } | 3041 | ) |
3042 | set( | 3042 | ( |
3043 | $current, | 3043 | ( |
3044 | "element", | 3044 | ( |
3045 | lv_element_1_0, | 3045 | lv_setsNew_2_0='+=' |
3046 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | 3046 | { |
3047 | afterParserOrEnumRuleCall(); | 3047 | newLeafNode(lv_setsNew_2_0, grammarAccess.getObjectTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
3048 | } | 3048 | } |
3049 | ) | 3049 | { |
3050 | ) | 3050 | if ($current==null) { |
3051 | otherlv_2='>' | 3051 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); |
3052 | { | 3052 | } |
3053 | newLeafNode(otherlv_2, grammarAccess.getClassReferenceAccess().getGreaterThanSignKeyword_2()); | 3053 | setWithLastConsumed($current, "setsNew", true, "+="); |
3054 | } | 3054 | } |
3055 | ) | 3055 | ) |
3056 | ; | 3056 | ) |
3057 | 3057 | | | |
3058 | // Entry rule entryRuleObjectReference | 3058 | ( |
3059 | entryRuleObjectReference returns [EObject current=null]: | 3059 | ( |
3060 | { newCompositeNode(grammarAccess.getObjectReferenceRule()); } | 3060 | lv_setsSum_3_0='=' |
3061 | iv_ruleObjectReference=ruleObjectReference | 3061 | { |
3062 | { $current=$iv_ruleObjectReference.current; } | 3062 | newLeafNode(lv_setsSum_3_0, grammarAccess.getObjectTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
3063 | EOF; | 3063 | } |
3064 | 3064 | { | |
3065 | // Rule ObjectReference | 3065 | if ($current==null) { |
3066 | ruleObjectReference returns [EObject current=null] | 3066 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); |
3067 | @init { | 3067 | } |
3068 | enterRule(); | 3068 | setWithLastConsumed($current, "setsSum", true, "="); |
3069 | } | 3069 | } |
3070 | @after { | 3070 | ) |
3071 | leaveRule(); | 3071 | ) |
3072 | }: | 3072 | ) |
3073 | ( | 3073 | ( |
3074 | ( | 3074 | ( |
3075 | { | 3075 | ( |
3076 | $current = forceCreateModelElement( | 3076 | { |
3077 | grammarAccess.getObjectReferenceAccess().getObjectReferenceAction_0(), | 3077 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
3078 | $current); | 3078 | } |
3079 | } | 3079 | lv_number_4_0=ruleExactNumber |
3080 | ) | 3080 | { |
3081 | otherlv_1='node' | 3081 | if ($current==null) { |
3082 | { | 3082 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); |
3083 | newLeafNode(otherlv_1, grammarAccess.getObjectReferenceAccess().getNodeKeyword_1()); | 3083 | } |
3084 | } | 3084 | set( |
3085 | ) | 3085 | $current, |
3086 | ; | 3086 | "number", |
3087 | 3087 | lv_number_4_0, | |
3088 | // Entry rule entryRuleIntegerReference | 3088 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
3089 | entryRuleIntegerReference returns [EObject current=null]: | 3089 | afterParserOrEnumRuleCall(); |
3090 | { newCompositeNode(grammarAccess.getIntegerReferenceRule()); } | 3090 | } |
3091 | iv_ruleIntegerReference=ruleIntegerReference | 3091 | ) |
3092 | { $current=$iv_ruleIntegerReference.current; } | 3092 | ) |
3093 | EOF; | 3093 | | |
3094 | 3094 | ( | |
3095 | // Rule IntegerReference | 3095 | ( |
3096 | ruleIntegerReference returns [EObject current=null] | 3096 | { |
3097 | @init { | 3097 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
3098 | enterRule(); | 3098 | } |
3099 | } | 3099 | lv_number_5_0=ruleIntervallNumber |
3100 | @after { | 3100 | { |
3101 | leaveRule(); | 3101 | if ($current==null) { |
3102 | }: | 3102 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); |
3103 | ( | 3103 | } |
3104 | ( | 3104 | set( |
3105 | { | 3105 | $current, |
3106 | $current = forceCreateModelElement( | 3106 | "number", |
3107 | grammarAccess.getIntegerReferenceAccess().getIntegerScopeAction_0(), | 3107 | lv_number_5_0, |
3108 | $current); | 3108 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
3109 | } | 3109 | afterParserOrEnumRuleCall(); |
3110 | ) | 3110 | } |
3111 | otherlv_1='int' | 3111 | ) |
3112 | { | 3112 | ) |
3113 | newLeafNode(otherlv_1, grammarAccess.getIntegerReferenceAccess().getIntKeyword_1()); | 3113 | ) |
3114 | } | 3114 | ) |
3115 | ) | 3115 | ; |
3116 | ; | 3116 | |
3117 | 3117 | // Entry rule entryRuleIntegerTypeScope | |
3118 | // Entry rule entryRuleRealReference | 3118 | entryRuleIntegerTypeScope returns [EObject current=null]: |
3119 | entryRuleRealReference returns [EObject current=null]: | 3119 | { newCompositeNode(grammarAccess.getIntegerTypeScopeRule()); } |
3120 | { newCompositeNode(grammarAccess.getRealReferenceRule()); } | 3120 | iv_ruleIntegerTypeScope=ruleIntegerTypeScope |
3121 | iv_ruleRealReference=ruleRealReference | 3121 | { $current=$iv_ruleIntegerTypeScope.current; } |
3122 | { $current=$iv_ruleRealReference.current; } | 3122 | EOF; |
3123 | EOF; | 3123 | |
3124 | 3124 | // Rule IntegerTypeScope | |
3125 | // Rule RealReference | 3125 | ruleIntegerTypeScope returns [EObject current=null] |
3126 | ruleRealReference returns [EObject current=null] | 3126 | @init { |
3127 | @init { | 3127 | enterRule(); |
3128 | enterRule(); | 3128 | } |
3129 | } | 3129 | @after { |
3130 | @after { | 3130 | leaveRule(); |
3131 | leaveRule(); | 3131 | }: |
3132 | }: | 3132 | ( |
3133 | ( | 3133 | otherlv_0='#' |
3134 | ( | 3134 | { |
3135 | { | 3135 | newLeafNode(otherlv_0, grammarAccess.getIntegerTypeScopeAccess().getNumberSignKeyword_0()); |
3136 | $current = forceCreateModelElement( | 3136 | } |
3137 | grammarAccess.getRealReferenceAccess().getRealScopeAction_0(), | 3137 | ( |
3138 | $current); | 3138 | ( |
3139 | } | 3139 | { |
3140 | ) | 3140 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getTypeIntegerReferenceParserRuleCall_1_0()); |
3141 | otherlv_1='real' | 3141 | } |
3142 | { | 3142 | lv_type_1_0=ruleIntegerReference |
3143 | newLeafNode(otherlv_1, grammarAccess.getRealReferenceAccess().getRealKeyword_1()); | 3143 | { |
3144 | } | 3144 | if ($current==null) { |
3145 | ) | 3145 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); |
3146 | ; | 3146 | } |
3147 | 3147 | set( | |
3148 | // Entry rule entryRuleStringReference | 3148 | $current, |
3149 | entryRuleStringReference returns [EObject current=null]: | 3149 | "type", |
3150 | { newCompositeNode(grammarAccess.getStringReferenceRule()); } | 3150 | lv_type_1_0, |
3151 | iv_ruleStringReference=ruleStringReference | 3151 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntegerReference"); |
3152 | { $current=$iv_ruleStringReference.current; } | 3152 | afterParserOrEnumRuleCall(); |
3153 | EOF; | 3153 | } |
3154 | 3154 | ) | |
3155 | // Rule StringReference | 3155 | ) |
3156 | ruleStringReference returns [EObject current=null] | 3156 | ( |
3157 | @init { | 3157 | ( |
3158 | enterRule(); | 3158 | ( |
3159 | } | 3159 | lv_setsNew_2_0='+=' |
3160 | @after { | 3160 | { |
3161 | leaveRule(); | 3161 | newLeafNode(lv_setsNew_2_0, grammarAccess.getIntegerTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
3162 | }: | 3162 | } |
3163 | ( | 3163 | { |
3164 | ( | 3164 | if ($current==null) { |
3165 | { | 3165 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); |
3166 | $current = forceCreateModelElement( | 3166 | } |
3167 | grammarAccess.getStringReferenceAccess().getStringScopeAction_0(), | 3167 | setWithLastConsumed($current, "setsNew", true, "+="); |
3168 | $current); | 3168 | } |
3169 | } | 3169 | ) |
3170 | ) | 3170 | ) |
3171 | otherlv_1='string' | 3171 | | |
3172 | { | 3172 | ( |
3173 | newLeafNode(otherlv_1, grammarAccess.getStringReferenceAccess().getStringKeyword_1()); | 3173 | ( |
3174 | } | 3174 | lv_setsSum_3_0='=' |
3175 | ) | 3175 | { |
3176 | ; | 3176 | newLeafNode(lv_setsSum_3_0, grammarAccess.getIntegerTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
3177 | 3177 | } | |
3178 | // Entry rule entryRuleExactNumber | 3178 | { |
3179 | entryRuleExactNumber returns [EObject current=null]: | 3179 | if ($current==null) { |
3180 | { newCompositeNode(grammarAccess.getExactNumberRule()); } | 3180 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); |
3181 | iv_ruleExactNumber=ruleExactNumber | 3181 | } |
3182 | { $current=$iv_ruleExactNumber.current; } | 3182 | setWithLastConsumed($current, "setsSum", true, "="); |
3183 | EOF; | 3183 | } |
3184 | 3184 | ) | |
3185 | // Rule ExactNumber | 3185 | ) |
3186 | ruleExactNumber returns [EObject current=null] | 3186 | ) |
3187 | @init { | 3187 | ( |
3188 | enterRule(); | 3188 | ( |
3189 | } | 3189 | ( |
3190 | @after { | 3190 | { |
3191 | leaveRule(); | 3191 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
3192 | }: | 3192 | } |
3193 | ( | 3193 | lv_number_4_0=ruleExactNumber |
3194 | ( | 3194 | { |
3195 | ( | 3195 | if ($current==null) { |
3196 | lv_exactNumber_0_0=RULE_INT | 3196 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); |
3197 | { | 3197 | } |
3198 | newLeafNode(lv_exactNumber_0_0, grammarAccess.getExactNumberAccess().getExactNumberINTTerminalRuleCall_0_0()); | 3198 | set( |
3199 | } | 3199 | $current, |
3200 | { | 3200 | "number", |
3201 | if ($current==null) { | 3201 | lv_number_4_0, |
3202 | $current = createModelElement(grammarAccess.getExactNumberRule()); | 3202 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
3203 | } | 3203 | afterParserOrEnumRuleCall(); |
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 | { |
3211 | ) | 3211 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
3212 | | | 3212 | } |
3213 | ( | 3213 | lv_number_5_0=ruleIntervallNumber |
3214 | ( | 3214 | { |
3215 | lv_exactUnlimited_1_0='*' | 3215 | if ($current==null) { |
3216 | { | 3216 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); |
3217 | newLeafNode(lv_exactUnlimited_1_0, grammarAccess.getExactNumberAccess().getExactUnlimitedAsteriskKeyword_1_0()); | 3217 | } |
3218 | } | 3218 | set( |
3219 | { | 3219 | $current, |
3220 | if ($current==null) { | 3220 | "number", |
3221 | $current = createModelElement(grammarAccess.getExactNumberRule()); | 3221 | lv_number_5_0, |
3222 | } | 3222 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
3223 | setWithLastConsumed($current, "exactUnlimited", true, "*"); | 3223 | afterParserOrEnumRuleCall(); |
3224 | } | 3224 | } |
3225 | ) | 3225 | ) |
3226 | ) | 3226 | ) |
3227 | ) | 3227 | | |
3228 | ; | 3228 | ( |
3229 | 3229 | ( | |
3230 | // Entry rule entryRuleIntervallNumber | 3230 | { |
3231 | entryRuleIntervallNumber returns [EObject current=null]: | 3231 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntEnumberationParserRuleCall_3_2_0()); |
3232 | { newCompositeNode(grammarAccess.getIntervallNumberRule()); } | 3232 | } |
3233 | iv_ruleIntervallNumber=ruleIntervallNumber | 3233 | lv_number_6_0=ruleIntEnumberation |
3234 | { $current=$iv_ruleIntervallNumber.current; } | 3234 | { |
3235 | EOF; | 3235 | if ($current==null) { |
3236 | 3236 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | |
3237 | // Rule IntervallNumber | 3237 | } |
3238 | ruleIntervallNumber returns [EObject current=null] | 3238 | set( |
3239 | @init { | 3239 | $current, |
3240 | enterRule(); | 3240 | "number", |
3241 | } | 3241 | lv_number_6_0, |
3242 | @after { | 3242 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntEnumberation"); |
3243 | leaveRule(); | 3243 | afterParserOrEnumRuleCall(); |
3244 | }: | 3244 | } |
3245 | ( | 3245 | ) |
3246 | ( | 3246 | ) |
3247 | ( | 3247 | ) |
3248 | lv_min_0_0=RULE_INT | 3248 | ) |
3249 | { | 3249 | ; |
3250 | newLeafNode(lv_min_0_0, grammarAccess.getIntervallNumberAccess().getMinINTTerminalRuleCall_0_0()); | 3250 | |
3251 | } | 3251 | // Entry rule entryRuleRealTypeScope |
3252 | { | 3252 | entryRuleRealTypeScope returns [EObject current=null]: |
3253 | if ($current==null) { | 3253 | { newCompositeNode(grammarAccess.getRealTypeScopeRule()); } |
3254 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); | 3254 | iv_ruleRealTypeScope=ruleRealTypeScope |
3255 | } | 3255 | { $current=$iv_ruleRealTypeScope.current; } |
3256 | setWithLastConsumed( | 3256 | EOF; |
3257 | $current, | 3257 | |
3258 | "min", | 3258 | // Rule RealTypeScope |
3259 | lv_min_0_0, | 3259 | ruleRealTypeScope returns [EObject current=null] |
3260 | "org.eclipse.xtext.common.Terminals.INT"); | 3260 | @init { |
3261 | } | 3261 | enterRule(); |
3262 | ) | 3262 | } |
3263 | ) | 3263 | @after { |
3264 | otherlv_1='..' | 3264 | leaveRule(); |
3265 | { | 3265 | }: |
3266 | newLeafNode(otherlv_1, grammarAccess.getIntervallNumberAccess().getFullStopFullStopKeyword_1()); | 3266 | ( |
3267 | } | 3267 | otherlv_0='#' |
3268 | ( | 3268 | { |
3269 | ( | 3269 | newLeafNode(otherlv_0, grammarAccess.getRealTypeScopeAccess().getNumberSignKeyword_0()); |
3270 | ( | 3270 | } |
3271 | lv_maxNumber_2_0=RULE_INT | 3271 | ( |
3272 | { | 3272 | ( |
3273 | newLeafNode(lv_maxNumber_2_0, grammarAccess.getIntervallNumberAccess().getMaxNumberINTTerminalRuleCall_2_0_0()); | 3273 | { |
3274 | } | 3274 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getTypeRealReferenceParserRuleCall_1_0()); |
3275 | { | 3275 | } |
3276 | if ($current==null) { | 3276 | lv_type_1_0=ruleRealReference |
3277 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); | 3277 | { |
3278 | } | 3278 | if ($current==null) { |
3279 | setWithLastConsumed( | 3279 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); |
3280 | $current, | 3280 | } |
3281 | "maxNumber", | 3281 | set( |
3282 | lv_maxNumber_2_0, | 3282 | $current, |
3283 | "org.eclipse.xtext.common.Terminals.INT"); | 3283 | "type", |
3284 | } | 3284 | lv_type_1_0, |
3285 | ) | 3285 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealReference"); |
3286 | ) | 3286 | afterParserOrEnumRuleCall(); |
3287 | | | 3287 | } |
3288 | ( | 3288 | ) |
3289 | ( | 3289 | ) |
3290 | lv_maxUnlimited_3_0='*' | 3290 | ( |
3291 | { | 3291 | ( |
3292 | newLeafNode(lv_maxUnlimited_3_0, grammarAccess.getIntervallNumberAccess().getMaxUnlimitedAsteriskKeyword_2_1_0()); | 3292 | ( |
3293 | } | 3293 | lv_setsNew_2_0='+=' |
3294 | { | 3294 | { |
3295 | if ($current==null) { | 3295 | newLeafNode(lv_setsNew_2_0, grammarAccess.getRealTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
3296 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); | 3296 | } |
3297 | } | 3297 | { |
3298 | setWithLastConsumed($current, "maxUnlimited", true, "*"); | 3298 | if ($current==null) { |
3299 | } | 3299 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); |
3300 | ) | 3300 | } |
3301 | ) | 3301 | setWithLastConsumed($current, "setsNew", true, "+="); |
3302 | ) | 3302 | } |
3303 | ) | 3303 | ) |
3304 | ; | 3304 | ) |
3305 | 3305 | | | |
3306 | // Entry rule entryRuleIntEnumberation | 3306 | ( |
3307 | entryRuleIntEnumberation returns [EObject current=null]: | 3307 | ( |
3308 | { newCompositeNode(grammarAccess.getIntEnumberationRule()); } | 3308 | lv_setsSum_3_0='=' |
3309 | iv_ruleIntEnumberation=ruleIntEnumberation | 3309 | { |
3310 | { $current=$iv_ruleIntEnumberation.current; } | 3310 | newLeafNode(lv_setsSum_3_0, grammarAccess.getRealTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
3311 | EOF; | 3311 | } |
3312 | 3312 | { | |
3313 | // Rule IntEnumberation | 3313 | if ($current==null) { |
3314 | ruleIntEnumberation returns [EObject current=null] | 3314 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); |
3315 | @init { | 3315 | } |
3316 | enterRule(); | 3316 | setWithLastConsumed($current, "setsSum", true, "="); |
3317 | } | 3317 | } |
3318 | @after { | 3318 | ) |
3319 | leaveRule(); | 3319 | ) |
3320 | }: | 3320 | ) |
3321 | ( | 3321 | ( |
3322 | ( | 3322 | ( |
3323 | { | 3323 | ( |
3324 | $current = forceCreateModelElement( | 3324 | { |
3325 | grammarAccess.getIntEnumberationAccess().getIntEnumberationAction_0(), | 3325 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
3326 | $current); | 3326 | } |
3327 | } | 3327 | lv_number_4_0=ruleExactNumber |
3328 | ) | 3328 | { |
3329 | otherlv_1='{' | 3329 | if ($current==null) { |
3330 | { | 3330 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); |
3331 | newLeafNode(otherlv_1, grammarAccess.getIntEnumberationAccess().getLeftCurlyBracketKeyword_1()); | 3331 | } |
3332 | } | 3332 | set( |
3333 | ( | 3333 | $current, |
3334 | ( | 3334 | "number", |
3335 | ( | 3335 | lv_number_4_0, |
3336 | { | 3336 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
3337 | newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_0_0()); | 3337 | afterParserOrEnumRuleCall(); |
3338 | } | 3338 | } |
3339 | lv_entry_2_0=ruleINTLiteral | 3339 | ) |
3340 | { | 3340 | ) |
3341 | if ($current==null) { | 3341 | | |
3342 | $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); | 3342 | ( |
3343 | } | 3343 | ( |
3344 | add( | 3344 | { |
3345 | $current, | 3345 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
3346 | "entry", | 3346 | } |
3347 | lv_entry_2_0, | 3347 | lv_number_5_0=ruleIntervallNumber |
3348 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); | 3348 | { |
3349 | afterParserOrEnumRuleCall(); | 3349 | if ($current==null) { |
3350 | } | 3350 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); |
3351 | ) | 3351 | } |
3352 | ) | 3352 | set( |
3353 | ( | 3353 | $current, |
3354 | otherlv_3=',' | 3354 | "number", |
3355 | { | 3355 | lv_number_5_0, |
3356 | newLeafNode(otherlv_3, grammarAccess.getIntEnumberationAccess().getCommaKeyword_2_1_0()); | 3356 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
3357 | } | 3357 | afterParserOrEnumRuleCall(); |
3358 | ( | 3358 | } |
3359 | ( | 3359 | ) |
3360 | { | 3360 | ) |
3361 | newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_1_1_0()); | 3361 | | |
3362 | } | 3362 | ( |
3363 | lv_entry_4_0=ruleINTLiteral | 3363 | ( |
3364 | { | 3364 | { |
3365 | if ($current==null) { | 3365 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberRealEnumerationParserRuleCall_3_2_0()); |
3366 | $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); | 3366 | } |
3367 | } | 3367 | lv_number_6_0=ruleRealEnumeration |
3368 | add( | 3368 | { |
3369 | $current, | 3369 | if ($current==null) { |
3370 | "entry", | 3370 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); |
3371 | lv_entry_4_0, | 3371 | } |
3372 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); | 3372 | set( |
3373 | afterParserOrEnumRuleCall(); | 3373 | $current, |
3374 | } | 3374 | "number", |
3375 | ) | 3375 | lv_number_6_0, |
3376 | ) | 3376 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealEnumeration"); |
3377 | )* | 3377 | afterParserOrEnumRuleCall(); |
3378 | )? | 3378 | } |
3379 | otherlv_5='}' | 3379 | ) |
3380 | { | 3380 | ) |
3381 | newLeafNode(otherlv_5, grammarAccess.getIntEnumberationAccess().getRightCurlyBracketKeyword_3()); | 3381 | ) |
3382 | } | 3382 | ) |
3383 | ) | 3383 | ; |
3384 | ; | 3384 | |
3385 | 3385 | // Entry rule entryRuleStringTypeScope | |
3386 | // Entry rule entryRuleRealEnumeration | 3386 | entryRuleStringTypeScope returns [EObject current=null]: |
3387 | entryRuleRealEnumeration returns [EObject current=null]: | 3387 | { newCompositeNode(grammarAccess.getStringTypeScopeRule()); } |
3388 | { newCompositeNode(grammarAccess.getRealEnumerationRule()); } | 3388 | iv_ruleStringTypeScope=ruleStringTypeScope |
3389 | iv_ruleRealEnumeration=ruleRealEnumeration | 3389 | { $current=$iv_ruleStringTypeScope.current; } |
3390 | { $current=$iv_ruleRealEnumeration.current; } | 3390 | EOF; |
3391 | EOF; | 3391 | |
3392 | 3392 | // Rule StringTypeScope | |
3393 | // Rule RealEnumeration | 3393 | ruleStringTypeScope returns [EObject current=null] |
3394 | ruleRealEnumeration returns [EObject current=null] | 3394 | @init { |
3395 | @init { | 3395 | enterRule(); |
3396 | enterRule(); | 3396 | } |
3397 | } | 3397 | @after { |
3398 | @after { | 3398 | leaveRule(); |
3399 | leaveRule(); | 3399 | }: |
3400 | }: | 3400 | ( |
3401 | ( | 3401 | otherlv_0='#' |
3402 | ( | 3402 | { |
3403 | { | 3403 | newLeafNode(otherlv_0, grammarAccess.getStringTypeScopeAccess().getNumberSignKeyword_0()); |
3404 | $current = forceCreateModelElement( | 3404 | } |
3405 | grammarAccess.getRealEnumerationAccess().getRealEnumerationAction_0(), | 3405 | ( |
3406 | $current); | 3406 | ( |
3407 | } | 3407 | { |
3408 | ) | 3408 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getTypeStringReferenceParserRuleCall_1_0()); |
3409 | otherlv_1='{' | 3409 | } |
3410 | { | 3410 | lv_type_1_0=ruleStringReference |
3411 | newLeafNode(otherlv_1, grammarAccess.getRealEnumerationAccess().getLeftCurlyBracketKeyword_1()); | 3411 | { |
3412 | } | 3412 | if ($current==null) { |
3413 | ( | 3413 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); |
3414 | ( | 3414 | } |
3415 | ( | 3415 | set( |
3416 | { | 3416 | $current, |
3417 | newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_0_0()); | 3417 | "type", |
3418 | } | 3418 | lv_type_1_0, |
3419 | lv_entry_2_0=ruleREALLiteral | 3419 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringReference"); |
3420 | { | 3420 | afterParserOrEnumRuleCall(); |
3421 | if ($current==null) { | 3421 | } |
3422 | $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); | 3422 | ) |
3423 | } | 3423 | ) |
3424 | add( | 3424 | ( |
3425 | $current, | 3425 | ( |
3426 | "entry", | 3426 | ( |
3427 | lv_entry_2_0, | 3427 | lv_setsNew_2_0='+=' |
3428 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); | 3428 | { |
3429 | afterParserOrEnumRuleCall(); | 3429 | newLeafNode(lv_setsNew_2_0, grammarAccess.getStringTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
3430 | } | 3430 | } |
3431 | ) | 3431 | { |
3432 | ) | 3432 | if ($current==null) { |
3433 | ( | 3433 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); |
3434 | otherlv_3=',' | 3434 | } |
3435 | { | 3435 | setWithLastConsumed($current, "setsNew", true, "+="); |
3436 | newLeafNode(otherlv_3, grammarAccess.getRealEnumerationAccess().getCommaKeyword_2_1_0()); | 3436 | } |
3437 | } | 3437 | ) |
3438 | ( | 3438 | ) |
3439 | ( | 3439 | | |
3440 | { | 3440 | ( |
3441 | newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_1_1_0()); | 3441 | ( |
3442 | } | 3442 | lv_setsSum_3_0='=' |
3443 | lv_entry_4_0=ruleREALLiteral | 3443 | { |
3444 | { | 3444 | newLeafNode(lv_setsSum_3_0, grammarAccess.getStringTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
3445 | if ($current==null) { | 3445 | } |
3446 | $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); | 3446 | { |
3447 | } | 3447 | if ($current==null) { |
3448 | add( | 3448 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); |
3449 | $current, | 3449 | } |
3450 | "entry", | 3450 | setWithLastConsumed($current, "setsSum", true, "="); |
3451 | lv_entry_4_0, | 3451 | } |
3452 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); | 3452 | ) |
3453 | afterParserOrEnumRuleCall(); | 3453 | ) |
3454 | } | 3454 | ) |
3455 | ) | 3455 | ( |
3456 | ) | 3456 | ( |
3457 | )* | 3457 | ( |
3458 | )? | 3458 | { |
3459 | otherlv_5='}' | 3459 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
3460 | { | 3460 | } |
3461 | newLeafNode(otherlv_5, grammarAccess.getRealEnumerationAccess().getRightCurlyBracketKeyword_3()); | 3461 | lv_number_4_0=ruleExactNumber |
3462 | } | 3462 | { |
3463 | ) | 3463 | if ($current==null) { |
3464 | ; | 3464 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); |
3465 | 3465 | } | |
3466 | // Entry rule entryRuleStringEnumeration | 3466 | set( |
3467 | entryRuleStringEnumeration returns [EObject current=null]: | 3467 | $current, |
3468 | { newCompositeNode(grammarAccess.getStringEnumerationRule()); } | 3468 | "number", |
3469 | iv_ruleStringEnumeration=ruleStringEnumeration | 3469 | lv_number_4_0, |
3470 | { $current=$iv_ruleStringEnumeration.current; } | 3470 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
3471 | EOF; | 3471 | afterParserOrEnumRuleCall(); |
3472 | 3472 | } | |
3473 | // Rule StringEnumeration | 3473 | ) |
3474 | ruleStringEnumeration returns [EObject current=null] | 3474 | ) |
3475 | @init { | 3475 | | |
3476 | enterRule(); | 3476 | ( |
3477 | } | 3477 | ( |
3478 | @after { | 3478 | { |
3479 | leaveRule(); | 3479 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); |
3480 | }: | 3480 | } |
3481 | ( | 3481 | lv_number_5_0=ruleIntervallNumber |
3482 | ( | 3482 | { |
3483 | { | 3483 | if ($current==null) { |
3484 | $current = forceCreateModelElement( | 3484 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); |
3485 | grammarAccess.getStringEnumerationAccess().getStringEnumerationAction_0(), | 3485 | } |
3486 | $current); | 3486 | set( |
3487 | } | 3487 | $current, |
3488 | ) | 3488 | "number", |
3489 | otherlv_1='{' | 3489 | lv_number_5_0, |
3490 | { | 3490 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); |
3491 | newLeafNode(otherlv_1, grammarAccess.getStringEnumerationAccess().getLeftCurlyBracketKeyword_1()); | 3491 | afterParserOrEnumRuleCall(); |
3492 | } | 3492 | } |
3493 | ( | 3493 | ) |
3494 | ( | 3494 | ) |
3495 | ( | 3495 | | |
3496 | lv_entry_2_0=RULE_STRING | 3496 | ( |
3497 | { | 3497 | ( |
3498 | newLeafNode(lv_entry_2_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_0_0()); | 3498 | { |
3499 | } | 3499 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberStringEnumerationParserRuleCall_3_2_0()); |
3500 | { | 3500 | } |
3501 | if ($current==null) { | 3501 | lv_number_6_0=ruleStringEnumeration |
3502 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); | 3502 | { |
3503 | } | 3503 | if ($current==null) { |
3504 | addWithLastConsumed( | 3504 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); |
3505 | $current, | 3505 | } |
3506 | "entry", | 3506 | set( |
3507 | lv_entry_2_0, | 3507 | $current, |
3508 | "org.eclipse.xtext.common.Terminals.STRING"); | 3508 | "number", |
3509 | } | 3509 | lv_number_6_0, |
3510 | ) | 3510 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringEnumeration"); |
3511 | ) | 3511 | afterParserOrEnumRuleCall(); |
3512 | ( | 3512 | } |
3513 | otherlv_3=',' | 3513 | ) |
3514 | { | 3514 | ) |
3515 | newLeafNode(otherlv_3, grammarAccess.getStringEnumerationAccess().getCommaKeyword_2_1_0()); | 3515 | ) |
3516 | } | 3516 | ) |
3517 | ( | 3517 | ; |
3518 | ( | 3518 | |
3519 | lv_entry_4_0=RULE_STRING | 3519 | // Entry rule entryRuleClassReference |
3520 | { | 3520 | entryRuleClassReference returns [EObject current=null]: |
3521 | newLeafNode(lv_entry_4_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_1_1_0()); | 3521 | { newCompositeNode(grammarAccess.getClassReferenceRule()); } |
3522 | } | 3522 | iv_ruleClassReference=ruleClassReference |
3523 | { | 3523 | { $current=$iv_ruleClassReference.current; } |
3524 | if ($current==null) { | 3524 | EOF; |
3525 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); | 3525 | |
3526 | } | 3526 | // Rule ClassReference |
3527 | addWithLastConsumed( | 3527 | ruleClassReference returns [EObject current=null] |
3528 | $current, | 3528 | @init { |
3529 | "entry", | 3529 | enterRule(); |
3530 | lv_entry_4_0, | 3530 | } |
3531 | "org.eclipse.xtext.common.Terminals.STRING"); | 3531 | @after { |
3532 | } | 3532 | leaveRule(); |
3533 | ) | 3533 | }: |
3534 | ) | 3534 | ( |
3535 | )* | 3535 | otherlv_0='<' |
3536 | )? | 3536 | { |
3537 | otherlv_5='}' | 3537 | newLeafNode(otherlv_0, grammarAccess.getClassReferenceAccess().getLessThanSignKeyword_0()); |
3538 | { | 3538 | } |
3539 | newLeafNode(otherlv_5, grammarAccess.getStringEnumerationAccess().getRightCurlyBracketKeyword_3()); | 3539 | ( |
3540 | } | 3540 | ( |
3541 | ) | 3541 | { |
3542 | ; | 3542 | newCompositeNode(grammarAccess.getClassReferenceAccess().getElementMetamodelElementParserRuleCall_1_0()); |
3543 | 3543 | } | |
3544 | // Entry rule entryRuleScopeDeclaration | 3544 | lv_element_1_0=ruleMetamodelElement |
3545 | entryRuleScopeDeclaration returns [EObject current=null]: | 3545 | { |
3546 | { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } | 3546 | if ($current==null) { |
3547 | iv_ruleScopeDeclaration=ruleScopeDeclaration | 3547 | $current = createModelElementForParent(grammarAccess.getClassReferenceRule()); |
3548 | { $current=$iv_ruleScopeDeclaration.current; } | 3548 | } |
3549 | EOF; | 3549 | set( |
3550 | 3550 | $current, | |
3551 | // Rule ScopeDeclaration | 3551 | "element", |
3552 | ruleScopeDeclaration returns [EObject current=null] | 3552 | lv_element_1_0, |
3553 | @init { | 3553 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); |
3554 | enterRule(); | 3554 | afterParserOrEnumRuleCall(); |
3555 | } | 3555 | } |
3556 | @after { | 3556 | ) |
3557 | leaveRule(); | 3557 | ) |
3558 | }: | 3558 | otherlv_2='>' |
3559 | ( | 3559 | { |
3560 | otherlv_0='scope' | 3560 | newLeafNode(otherlv_2, grammarAccess.getClassReferenceAccess().getGreaterThanSignKeyword_2()); |
3561 | { | 3561 | } |
3562 | newLeafNode(otherlv_0, grammarAccess.getScopeDeclarationAccess().getScopeKeyword_0()); | 3562 | ) |
3563 | } | 3563 | ; |
3564 | ( | 3564 | |
3565 | ( | 3565 | // Entry rule entryRuleObjectReference |
3566 | lv_name_1_0=RULE_ID | 3566 | entryRuleObjectReference returns [EObject current=null]: |
3567 | { | 3567 | { newCompositeNode(grammarAccess.getObjectReferenceRule()); } |
3568 | newLeafNode(lv_name_1_0, grammarAccess.getScopeDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | 3568 | iv_ruleObjectReference=ruleObjectReference |
3569 | } | 3569 | { $current=$iv_ruleObjectReference.current; } |
3570 | { | 3570 | EOF; |
3571 | if ($current==null) { | 3571 | |
3572 | $current = createModelElement(grammarAccess.getScopeDeclarationRule()); | 3572 | // Rule ObjectReference |
3573 | } | 3573 | ruleObjectReference returns [EObject current=null] |
3574 | setWithLastConsumed( | 3574 | @init { |
3575 | $current, | 3575 | enterRule(); |
3576 | "name", | 3576 | } |
3577 | lv_name_1_0, | 3577 | @after { |
3578 | "org.eclipse.xtext.common.Terminals.ID"); | 3578 | leaveRule(); |
3579 | } | 3579 | }: |
3580 | ) | 3580 | ( |
3581 | ) | 3581 | ( |
3582 | ( | 3582 | { |
3583 | ( | 3583 | $current = forceCreateModelElement( |
3584 | { | 3584 | grammarAccess.getObjectReferenceAccess().getObjectReferenceAction_0(), |
3585 | newCompositeNode(grammarAccess.getScopeDeclarationAccess().getSpecificationScopeSpecificationParserRuleCall_2_0()); | 3585 | $current); |
3586 | } | 3586 | } |
3587 | lv_specification_2_0=ruleScopeSpecification | 3587 | ) |
3588 | { | 3588 | otherlv_1='node' |
3589 | if ($current==null) { | 3589 | { |
3590 | $current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); | 3590 | newLeafNode(otherlv_1, grammarAccess.getObjectReferenceAccess().getNodeKeyword_1()); |
3591 | } | 3591 | } |
3592 | set( | 3592 | ) |
3593 | $current, | 3593 | ; |
3594 | "specification", | 3594 | |
3595 | lv_specification_2_0, | 3595 | // Entry rule entryRuleIntegerReference |
3596 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ScopeSpecification"); | 3596 | entryRuleIntegerReference returns [EObject current=null]: |
3597 | afterParserOrEnumRuleCall(); | 3597 | { newCompositeNode(grammarAccess.getIntegerReferenceRule()); } |
3598 | } | 3598 | iv_ruleIntegerReference=ruleIntegerReference |
3599 | ) | 3599 | { $current=$iv_ruleIntegerReference.current; } |
3600 | ) | 3600 | EOF; |
3601 | ) | 3601 | |
3602 | ; | 3602 | // Rule IntegerReference |
3603 | 3603 | ruleIntegerReference returns [EObject current=null] | |
3604 | // Entry rule entryRuleScopeReference | 3604 | @init { |
3605 | entryRuleScopeReference returns [EObject current=null]: | 3605 | enterRule(); |
3606 | { newCompositeNode(grammarAccess.getScopeReferenceRule()); } | 3606 | } |
3607 | iv_ruleScopeReference=ruleScopeReference | 3607 | @after { |
3608 | { $current=$iv_ruleScopeReference.current; } | 3608 | leaveRule(); |
3609 | EOF; | 3609 | }: |
3610 | 3610 | ( | |
3611 | // Rule ScopeReference | 3611 | ( |
3612 | ruleScopeReference returns [EObject current=null] | 3612 | { |
3613 | @init { | 3613 | $current = forceCreateModelElement( |
3614 | enterRule(); | 3614 | grammarAccess.getIntegerReferenceAccess().getIntegerScopeAction_0(), |
3615 | } | 3615 | $current); |
3616 | @after { | 3616 | } |
3617 | leaveRule(); | 3617 | ) |
3618 | }: | 3618 | otherlv_1='int' |
3619 | ( | 3619 | { |
3620 | ( | 3620 | newLeafNode(otherlv_1, grammarAccess.getIntegerReferenceAccess().getIntKeyword_1()); |
3621 | { | 3621 | } |
3622 | if ($current==null) { | 3622 | ) |
3623 | $current = createModelElement(grammarAccess.getScopeReferenceRule()); | 3623 | ; |
3624 | } | 3624 | |
3625 | } | 3625 | // Entry rule entryRuleRealReference |
3626 | otherlv_0=RULE_ID | 3626 | entryRuleRealReference returns [EObject current=null]: |
3627 | { | 3627 | { newCompositeNode(grammarAccess.getRealReferenceRule()); } |
3628 | newLeafNode(otherlv_0, grammarAccess.getScopeReferenceAccess().getReferredScopeDeclarationCrossReference_0()); | 3628 | iv_ruleRealReference=ruleRealReference |
3629 | } | 3629 | { $current=$iv_ruleRealReference.current; } |
3630 | ) | 3630 | EOF; |
3631 | ) | 3631 | |
3632 | ; | 3632 | // Rule RealReference |
3633 | 3633 | ruleRealReference returns [EObject current=null] | |
3634 | // Entry rule entryRuleScope | 3634 | @init { |
3635 | entryRuleScope returns [EObject current=null]: | 3635 | enterRule(); |
3636 | { newCompositeNode(grammarAccess.getScopeRule()); } | 3636 | } |
3637 | iv_ruleScope=ruleScope | 3637 | @after { |
3638 | { $current=$iv_ruleScope.current; } | 3638 | leaveRule(); |
3639 | EOF; | 3639 | }: |
3640 | 3640 | ( | |
3641 | // Rule Scope | 3641 | ( |
3642 | ruleScope returns [EObject current=null] | 3642 | { |
3643 | @init { | 3643 | $current = forceCreateModelElement( |
3644 | enterRule(); | 3644 | grammarAccess.getRealReferenceAccess().getRealScopeAction_0(), |
3645 | } | 3645 | $current); |
3646 | @after { | 3646 | } |
3647 | leaveRule(); | 3647 | ) |
3648 | }: | 3648 | otherlv_1='real' |
3649 | ( | 3649 | { |
3650 | { | 3650 | newLeafNode(otherlv_1, grammarAccess.getRealReferenceAccess().getRealKeyword_1()); |
3651 | newCompositeNode(grammarAccess.getScopeAccess().getScopeSpecificationParserRuleCall_0()); | 3651 | } |
3652 | } | 3652 | ) |
3653 | this_ScopeSpecification_0=ruleScopeSpecification | 3653 | ; |
3654 | { | 3654 | |
3655 | $current = $this_ScopeSpecification_0.current; | 3655 | // Entry rule entryRuleStringReference |
3656 | afterParserOrEnumRuleCall(); | 3656 | entryRuleStringReference returns [EObject current=null]: |
3657 | } | 3657 | { newCompositeNode(grammarAccess.getStringReferenceRule()); } |
3658 | | | 3658 | iv_ruleStringReference=ruleStringReference |
3659 | { | 3659 | { $current=$iv_ruleStringReference.current; } |
3660 | newCompositeNode(grammarAccess.getScopeAccess().getScopeReferenceParserRuleCall_1()); | 3660 | EOF; |
3661 | } | 3661 | |
3662 | this_ScopeReference_1=ruleScopeReference | 3662 | // Rule StringReference |
3663 | { | 3663 | ruleStringReference returns [EObject current=null] |
3664 | $current = $this_ScopeReference_1.current; | 3664 | @init { |
3665 | afterParserOrEnumRuleCall(); | 3665 | enterRule(); |
3666 | } | 3666 | } |
3667 | ) | 3667 | @after { |
3668 | ; | 3668 | leaveRule(); |
3669 | 3669 | }: | |
3670 | // Entry rule entryRuleTask | 3670 | ( |
3671 | entryRuleTask returns [EObject current=null]: | 3671 | ( |
3672 | { newCompositeNode(grammarAccess.getTaskRule()); } | 3672 | { |
3673 | iv_ruleTask=ruleTask | 3673 | $current = forceCreateModelElement( |
3674 | { $current=$iv_ruleTask.current; } | 3674 | grammarAccess.getStringReferenceAccess().getStringScopeAction_0(), |
3675 | EOF; | 3675 | $current); |
3676 | 3676 | } | |
3677 | // Rule Task | 3677 | ) |
3678 | ruleTask returns [EObject current=null] | 3678 | otherlv_1='string' |
3679 | @init { | 3679 | { |
3680 | enterRule(); | 3680 | newLeafNode(otherlv_1, grammarAccess.getStringReferenceAccess().getStringKeyword_1()); |
3681 | } | 3681 | } |
3682 | @after { | 3682 | ) |
3683 | leaveRule(); | 3683 | ; |
3684 | }: | 3684 | |
3685 | { | 3685 | // Entry rule entryRuleExactNumber |
3686 | newCompositeNode(grammarAccess.getTaskAccess().getGenerationTaskParserRuleCall()); | 3686 | entryRuleExactNumber returns [EObject current=null]: |
3687 | } | 3687 | { newCompositeNode(grammarAccess.getExactNumberRule()); } |
3688 | this_GenerationTask_0=ruleGenerationTask | 3688 | iv_ruleExactNumber=ruleExactNumber |
3689 | { | 3689 | { $current=$iv_ruleExactNumber.current; } |
3690 | $current = $this_GenerationTask_0.current; | 3690 | EOF; |
3691 | afterParserOrEnumRuleCall(); | 3691 | |
3692 | } | 3692 | // Rule ExactNumber |
3693 | ; | 3693 | ruleExactNumber returns [EObject current=null] |
3694 | 3694 | @init { | |
3695 | // Entry rule entryRuleGenerationTask | 3695 | enterRule(); |
3696 | entryRuleGenerationTask returns [EObject current=null]: | 3696 | } |
3697 | { newCompositeNode(grammarAccess.getGenerationTaskRule()); } | 3697 | @after { |
3698 | iv_ruleGenerationTask=ruleGenerationTask | 3698 | leaveRule(); |
3699 | { $current=$iv_ruleGenerationTask.current; } | 3699 | }: |
3700 | EOF; | 3700 | ( |
3701 | 3701 | ( | |
3702 | // Rule GenerationTask | 3702 | ( |
3703 | ruleGenerationTask returns [EObject current=null] | 3703 | lv_exactNumber_0_0=RULE_INT |
3704 | @init { | 3704 | { |
3705 | enterRule(); | 3705 | newLeafNode(lv_exactNumber_0_0, grammarAccess.getExactNumberAccess().getExactNumberINTTerminalRuleCall_0_0()); |
3706 | } | 3706 | } |
3707 | @after { | 3707 | { |
3708 | leaveRule(); | 3708 | if ($current==null) { |
3709 | }: | 3709 | $current = createModelElement(grammarAccess.getExactNumberRule()); |
3710 | ( | 3710 | } |
3711 | otherlv_0='generate' | 3711 | setWithLastConsumed( |
3712 | { | 3712 | $current, |
3713 | newLeafNode(otherlv_0, grammarAccess.getGenerationTaskAccess().getGenerateKeyword_0()); | 3713 | "exactNumber", |
3714 | } | 3714 | lv_exactNumber_0_0, |
3715 | ( | 3715 | "org.eclipse.xtext.common.Terminals.INT"); |
3716 | { | 3716 | } |
3717 | $current = forceCreateModelElement( | 3717 | ) |
3718 | grammarAccess.getGenerationTaskAccess().getGenerationTaskAction_1(), | 3718 | ) |
3719 | $current); | 3719 | | |
3720 | } | 3720 | ( |
3721 | ) | 3721 | ( |
3722 | otherlv_2='{' | 3722 | lv_exactUnlimited_1_0='*' |
3723 | { | 3723 | { |
3724 | newLeafNode(otherlv_2, grammarAccess.getGenerationTaskAccess().getLeftCurlyBracketKeyword_2()); | 3724 | newLeafNode(lv_exactUnlimited_1_0, grammarAccess.getExactNumberAccess().getExactUnlimitedAsteriskKeyword_1_0()); |
3725 | } | 3725 | } |
3726 | ( | 3726 | { |
3727 | ( | 3727 | if ($current==null) { |
3728 | { | 3728 | $current = createModelElement(grammarAccess.getExactNumberRule()); |
3729 | getUnorderedGroupHelper().enter(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3729 | } |
3730 | } | 3730 | setWithLastConsumed($current, "exactUnlimited", true, "*"); |
3731 | ( | 3731 | } |
3732 | ( | 3732 | ) |
3733 | ( | 3733 | ) |
3734 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0)}?=>( | 3734 | ) |
3735 | { | 3735 | ; |
3736 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0); | 3736 | |
3737 | } | 3737 | // Entry rule entryRuleIntervallNumber |
3738 | ({true}?=>(otherlv_4='metamodel' | 3738 | entryRuleIntervallNumber returns [EObject current=null]: |
3739 | { | 3739 | { newCompositeNode(grammarAccess.getIntervallNumberRule()); } |
3740 | newLeafNode(otherlv_4, grammarAccess.getGenerationTaskAccess().getMetamodelKeyword_3_0_0()); | 3740 | iv_ruleIntervallNumber=ruleIntervallNumber |
3741 | } | 3741 | { $current=$iv_ruleIntervallNumber.current; } |
3742 | otherlv_5='=' | 3742 | EOF; |
3743 | { | 3743 | |
3744 | newLeafNode(otherlv_5, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_0_1()); | 3744 | // Rule IntervallNumber |
3745 | } | 3745 | ruleIntervallNumber returns [EObject current=null] |
3746 | ( | 3746 | @init { |
3747 | ( | 3747 | enterRule(); |
3748 | { | 3748 | } |
3749 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getMetamodelMetamodelParserRuleCall_3_0_2_0()); | 3749 | @after { |
3750 | } | 3750 | leaveRule(); |
3751 | lv_metamodel_6_0=ruleMetamodel | 3751 | }: |
3752 | { | 3752 | ( |
3753 | if ($current==null) { | 3753 | ( |
3754 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3754 | ( |
3755 | } | 3755 | lv_min_0_0=RULE_INT |
3756 | set( | 3756 | { |
3757 | $current, | 3757 | newLeafNode(lv_min_0_0, grammarAccess.getIntervallNumberAccess().getMinINTTerminalRuleCall_0_0()); |
3758 | "metamodel", | 3758 | } |
3759 | lv_metamodel_6_0, | 3759 | { |
3760 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Metamodel"); | 3760 | if ($current==null) { |
3761 | afterParserOrEnumRuleCall(); | 3761 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); |
3762 | } | 3762 | } |
3763 | ) | 3763 | setWithLastConsumed( |
3764 | ) | 3764 | $current, |
3765 | )) | 3765 | "min", |
3766 | { | 3766 | lv_min_0_0, |
3767 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3767 | "org.eclipse.xtext.common.Terminals.INT"); |
3768 | } | 3768 | } |
3769 | ) | 3769 | ) |
3770 | )| | 3770 | ) |
3771 | ( | 3771 | otherlv_1='..' |
3772 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1)}?=>( | 3772 | { |
3773 | { | 3773 | newLeafNode(otherlv_1, grammarAccess.getIntervallNumberAccess().getFullStopFullStopKeyword_1()); |
3774 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1); | 3774 | } |
3775 | } | 3775 | ( |
3776 | ({true}?=>(otherlv_7='partial-model' | 3776 | ( |
3777 | { | 3777 | ( |
3778 | newLeafNode(otherlv_7, grammarAccess.getGenerationTaskAccess().getPartialModelKeyword_3_1_0()); | 3778 | lv_maxNumber_2_0=RULE_INT |
3779 | } | 3779 | { |
3780 | otherlv_8='=' | 3780 | newLeafNode(lv_maxNumber_2_0, grammarAccess.getIntervallNumberAccess().getMaxNumberINTTerminalRuleCall_2_0_0()); |
3781 | { | 3781 | } |
3782 | newLeafNode(otherlv_8, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_1_1()); | 3782 | { |
3783 | } | 3783 | if ($current==null) { |
3784 | ( | 3784 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); |
3785 | ( | 3785 | } |
3786 | { | 3786 | setWithLastConsumed( |
3787 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPartialModelPartialModelParserRuleCall_3_1_2_0()); | 3787 | $current, |
3788 | } | 3788 | "maxNumber", |
3789 | lv_partialModel_9_0=rulePartialModel | 3789 | lv_maxNumber_2_0, |
3790 | { | 3790 | "org.eclipse.xtext.common.Terminals.INT"); |
3791 | if ($current==null) { | 3791 | } |
3792 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3792 | ) |
3793 | } | 3793 | ) |
3794 | set( | 3794 | | |
3795 | $current, | 3795 | ( |
3796 | "partialModel", | 3796 | ( |
3797 | lv_partialModel_9_0, | 3797 | lv_maxUnlimited_3_0='*' |
3798 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModel"); | 3798 | { |
3799 | afterParserOrEnumRuleCall(); | 3799 | newLeafNode(lv_maxUnlimited_3_0, grammarAccess.getIntervallNumberAccess().getMaxUnlimitedAsteriskKeyword_2_1_0()); |
3800 | } | 3800 | } |
3801 | ) | 3801 | { |
3802 | ) | 3802 | if ($current==null) { |
3803 | )) | 3803 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); |
3804 | { | 3804 | } |
3805 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3805 | setWithLastConsumed($current, "maxUnlimited", true, "*"); |
3806 | } | 3806 | } |
3807 | ) | 3807 | ) |
3808 | )| | 3808 | ) |
3809 | ( | 3809 | ) |
3810 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2)}?=>( | 3810 | ) |
3811 | { | 3811 | ; |
3812 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2); | 3812 | |
3813 | } | 3813 | // Entry rule entryRuleIntEnumberation |
3814 | ({true}?=>(otherlv_10='constraints' | 3814 | entryRuleIntEnumberation returns [EObject current=null]: |
3815 | { | 3815 | { newCompositeNode(grammarAccess.getIntEnumberationRule()); } |
3816 | newLeafNode(otherlv_10, grammarAccess.getGenerationTaskAccess().getConstraintsKeyword_3_2_0()); | 3816 | iv_ruleIntEnumberation=ruleIntEnumberation |
3817 | } | 3817 | { $current=$iv_ruleIntEnumberation.current; } |
3818 | otherlv_11='=' | 3818 | EOF; |
3819 | { | 3819 | |
3820 | newLeafNode(otherlv_11, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_2_1()); | 3820 | // Rule IntEnumberation |
3821 | } | 3821 | ruleIntEnumberation returns [EObject current=null] |
3822 | ( | 3822 | @init { |
3823 | ( | 3823 | enterRule(); |
3824 | { | 3824 | } |
3825 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPatternsGraphPatternParserRuleCall_3_2_2_0()); | 3825 | @after { |
3826 | } | 3826 | leaveRule(); |
3827 | lv_patterns_12_0=ruleGraphPattern | 3827 | }: |
3828 | { | 3828 | ( |
3829 | if ($current==null) { | 3829 | ( |
3830 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3830 | { |
3831 | } | 3831 | $current = forceCreateModelElement( |
3832 | set( | 3832 | grammarAccess.getIntEnumberationAccess().getIntEnumberationAction_0(), |
3833 | $current, | 3833 | $current); |
3834 | "patterns", | 3834 | } |
3835 | lv_patterns_12_0, | 3835 | ) |
3836 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.GraphPattern"); | 3836 | otherlv_1='{' |
3837 | afterParserOrEnumRuleCall(); | 3837 | { |
3838 | } | 3838 | newLeafNode(otherlv_1, grammarAccess.getIntEnumberationAccess().getLeftCurlyBracketKeyword_1()); |
3839 | ) | 3839 | } |
3840 | ) | 3840 | ( |
3841 | )) | 3841 | ( |
3842 | { | 3842 | ( |
3843 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3843 | { |
3844 | } | 3844 | newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_0_0()); |
3845 | ) | 3845 | } |
3846 | )| | 3846 | lv_entry_2_0=ruleINTLiteral |
3847 | ( | 3847 | { |
3848 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3)}?=>( | 3848 | if ($current==null) { |
3849 | { | 3849 | $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); |
3850 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3); | 3850 | } |
3851 | } | 3851 | add( |
3852 | ({true}?=>(otherlv_13='scope' | 3852 | $current, |
3853 | { | 3853 | "entry", |
3854 | newLeafNode(otherlv_13, grammarAccess.getGenerationTaskAccess().getScopeKeyword_3_3_0()); | 3854 | lv_entry_2_0, |
3855 | } | 3855 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); |
3856 | otherlv_14='=' | 3856 | afterParserOrEnumRuleCall(); |
3857 | { | 3857 | } |
3858 | newLeafNode(otherlv_14, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_3_1()); | 3858 | ) |
3859 | } | 3859 | ) |
3860 | ( | 3860 | ( |
3861 | ( | 3861 | otherlv_3=',' |
3862 | { | 3862 | { |
3863 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getScopeScopeParserRuleCall_3_3_2_0()); | 3863 | newLeafNode(otherlv_3, grammarAccess.getIntEnumberationAccess().getCommaKeyword_2_1_0()); |
3864 | } | 3864 | } |
3865 | lv_scope_15_0=ruleScope | 3865 | ( |
3866 | { | 3866 | ( |
3867 | if ($current==null) { | 3867 | { |
3868 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3868 | newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_1_1_0()); |
3869 | } | 3869 | } |
3870 | set( | 3870 | lv_entry_4_0=ruleINTLiteral |
3871 | $current, | 3871 | { |
3872 | "scope", | 3872 | if ($current==null) { |
3873 | lv_scope_15_0, | 3873 | $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); |
3874 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Scope"); | 3874 | } |
3875 | afterParserOrEnumRuleCall(); | 3875 | add( |
3876 | } | 3876 | $current, |
3877 | ) | 3877 | "entry", |
3878 | ) | 3878 | lv_entry_4_0, |
3879 | )) | 3879 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); |
3880 | { | 3880 | afterParserOrEnumRuleCall(); |
3881 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3881 | } |
3882 | } | 3882 | ) |
3883 | ) | 3883 | ) |
3884 | )| | 3884 | )* |
3885 | ( | 3885 | )? |
3886 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4)}?=>( | 3886 | otherlv_5='}' |
3887 | { | 3887 | { |
3888 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4); | 3888 | newLeafNode(otherlv_5, grammarAccess.getIntEnumberationAccess().getRightCurlyBracketKeyword_3()); |
3889 | } | 3889 | } |
3890 | ({true}?=>(( | 3890 | ) |
3891 | ( | 3891 | ; |
3892 | lv_numberSpecified_16_0='number' | 3892 | |
3893 | { | 3893 | // Entry rule entryRuleRealEnumeration |
3894 | newLeafNode(lv_numberSpecified_16_0, grammarAccess.getGenerationTaskAccess().getNumberSpecifiedNumberKeyword_3_4_0_0()); | 3894 | entryRuleRealEnumeration returns [EObject current=null]: |
3895 | } | 3895 | { newCompositeNode(grammarAccess.getRealEnumerationRule()); } |
3896 | { | 3896 | iv_ruleRealEnumeration=ruleRealEnumeration |
3897 | if ($current==null) { | 3897 | { $current=$iv_ruleRealEnumeration.current; } |
3898 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | 3898 | EOF; |
3899 | } | 3899 | |
3900 | setWithLastConsumed($current, "numberSpecified", true, "number"); | 3900 | // Rule RealEnumeration |
3901 | } | 3901 | ruleRealEnumeration returns [EObject current=null] |
3902 | ) | 3902 | @init { |
3903 | ) | 3903 | enterRule(); |
3904 | otherlv_17='=' | 3904 | } |
3905 | { | 3905 | @after { |
3906 | newLeafNode(otherlv_17, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_4_1()); | 3906 | leaveRule(); |
3907 | } | 3907 | }: |
3908 | ( | 3908 | ( |
3909 | ( | 3909 | ( |
3910 | lv_number_18_0=RULE_INT | 3910 | { |
3911 | { | 3911 | $current = forceCreateModelElement( |
3912 | newLeafNode(lv_number_18_0, grammarAccess.getGenerationTaskAccess().getNumberINTTerminalRuleCall_3_4_2_0()); | 3912 | grammarAccess.getRealEnumerationAccess().getRealEnumerationAction_0(), |
3913 | } | 3913 | $current); |
3914 | { | 3914 | } |
3915 | if ($current==null) { | 3915 | ) |
3916 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | 3916 | otherlv_1='{' |
3917 | } | 3917 | { |
3918 | setWithLastConsumed( | 3918 | newLeafNode(otherlv_1, grammarAccess.getRealEnumerationAccess().getLeftCurlyBracketKeyword_1()); |
3919 | $current, | 3919 | } |
3920 | "number", | 3920 | ( |
3921 | lv_number_18_0, | 3921 | ( |
3922 | "org.eclipse.xtext.common.Terminals.INT"); | 3922 | ( |
3923 | } | 3923 | { |
3924 | ) | 3924 | newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_0_0()); |
3925 | ) | 3925 | } |
3926 | )) | 3926 | lv_entry_2_0=ruleREALLiteral |
3927 | { | 3927 | { |
3928 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3928 | if ($current==null) { |
3929 | } | 3929 | $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); |
3930 | ) | 3930 | } |
3931 | )| | 3931 | add( |
3932 | ( | 3932 | $current, |
3933 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5)}?=>( | 3933 | "entry", |
3934 | { | 3934 | lv_entry_2_0, |
3935 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5); | 3935 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); |
3936 | } | 3936 | afterParserOrEnumRuleCall(); |
3937 | ({true}?=>(( | 3937 | } |
3938 | ( | 3938 | ) |
3939 | lv_runSpecified_19_0='runs' | 3939 | ) |
3940 | { | 3940 | ( |
3941 | newLeafNode(lv_runSpecified_19_0, grammarAccess.getGenerationTaskAccess().getRunSpecifiedRunsKeyword_3_5_0_0()); | 3941 | otherlv_3=',' |
3942 | } | 3942 | { |
3943 | { | 3943 | newLeafNode(otherlv_3, grammarAccess.getRealEnumerationAccess().getCommaKeyword_2_1_0()); |
3944 | if ($current==null) { | 3944 | } |
3945 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | 3945 | ( |
3946 | } | 3946 | ( |
3947 | setWithLastConsumed($current, "runSpecified", true, "runs"); | 3947 | { |
3948 | } | 3948 | newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_1_1_0()); |
3949 | ) | 3949 | } |
3950 | ) | 3950 | lv_entry_4_0=ruleREALLiteral |
3951 | otherlv_20='=' | 3951 | { |
3952 | { | 3952 | if ($current==null) { |
3953 | newLeafNode(otherlv_20, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_5_1()); | 3953 | $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); |
3954 | } | 3954 | } |
3955 | ( | 3955 | add( |
3956 | ( | 3956 | $current, |
3957 | lv_runs_21_0=RULE_INT | 3957 | "entry", |
3958 | { | 3958 | lv_entry_4_0, |
3959 | newLeafNode(lv_runs_21_0, grammarAccess.getGenerationTaskAccess().getRunsINTTerminalRuleCall_3_5_2_0()); | 3959 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); |
3960 | } | 3960 | afterParserOrEnumRuleCall(); |
3961 | { | 3961 | } |
3962 | if ($current==null) { | 3962 | ) |
3963 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | 3963 | ) |
3964 | } | 3964 | )* |
3965 | setWithLastConsumed( | 3965 | )? |
3966 | $current, | 3966 | otherlv_5='}' |
3967 | "runs", | 3967 | { |
3968 | lv_runs_21_0, | 3968 | newLeafNode(otherlv_5, grammarAccess.getRealEnumerationAccess().getRightCurlyBracketKeyword_3()); |
3969 | "org.eclipse.xtext.common.Terminals.INT"); | 3969 | } |
3970 | } | 3970 | ) |
3971 | ) | 3971 | ; |
3972 | ) | 3972 | |
3973 | )) | 3973 | // Entry rule entryRuleStringEnumeration |
3974 | { | 3974 | entryRuleStringEnumeration returns [EObject current=null]: |
3975 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 3975 | { newCompositeNode(grammarAccess.getStringEnumerationRule()); } |
3976 | } | 3976 | iv_ruleStringEnumeration=ruleStringEnumeration |
3977 | ) | 3977 | { $current=$iv_ruleStringEnumeration.current; } |
3978 | )| | 3978 | EOF; |
3979 | ( | 3979 | |
3980 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6)}?=>( | 3980 | // Rule StringEnumeration |
3981 | { | 3981 | ruleStringEnumeration returns [EObject current=null] |
3982 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6); | 3982 | @init { |
3983 | } | 3983 | enterRule(); |
3984 | ({true}?=>(otherlv_22='solver' | 3984 | } |
3985 | { | 3985 | @after { |
3986 | newLeafNode(otherlv_22, grammarAccess.getGenerationTaskAccess().getSolverKeyword_3_6_0()); | 3986 | leaveRule(); |
3987 | } | 3987 | }: |
3988 | otherlv_23='=' | 3988 | ( |
3989 | { | 3989 | ( |
3990 | newLeafNode(otherlv_23, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_6_1()); | 3990 | { |
3991 | } | 3991 | $current = forceCreateModelElement( |
3992 | ( | 3992 | grammarAccess.getStringEnumerationAccess().getStringEnumerationAction_0(), |
3993 | ( | 3993 | $current); |
3994 | { | 3994 | } |
3995 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getSolverSolverEnumRuleCall_3_6_2_0()); | 3995 | ) |
3996 | } | 3996 | otherlv_1='{' |
3997 | lv_solver_24_0=ruleSolver | 3997 | { |
3998 | { | 3998 | newLeafNode(otherlv_1, grammarAccess.getStringEnumerationAccess().getLeftCurlyBracketKeyword_1()); |
3999 | if ($current==null) { | 3999 | } |
4000 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4000 | ( |
4001 | } | 4001 | ( |
4002 | set( | 4002 | ( |
4003 | $current, | 4003 | lv_entry_2_0=RULE_STRING |
4004 | "solver", | 4004 | { |
4005 | lv_solver_24_0, | 4005 | newLeafNode(lv_entry_2_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_0_0()); |
4006 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Solver"); | 4006 | } |
4007 | afterParserOrEnumRuleCall(); | 4007 | { |
4008 | } | 4008 | if ($current==null) { |
4009 | ) | 4009 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); |
4010 | ) | 4010 | } |
4011 | )) | 4011 | addWithLastConsumed( |
4012 | { | 4012 | $current, |
4013 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4013 | "entry", |
4014 | } | 4014 | lv_entry_2_0, |
4015 | ) | 4015 | "org.eclipse.xtext.common.Terminals.STRING"); |
4016 | )| | 4016 | } |
4017 | ( | 4017 | ) |
4018 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7)}?=>( | 4018 | ) |
4019 | { | 4019 | ( |
4020 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7); | 4020 | otherlv_3=',' |
4021 | } | 4021 | { |
4022 | ({true}?=>(otherlv_25='config' | 4022 | newLeafNode(otherlv_3, grammarAccess.getStringEnumerationAccess().getCommaKeyword_2_1_0()); |
4023 | { | 4023 | } |
4024 | newLeafNode(otherlv_25, grammarAccess.getGenerationTaskAccess().getConfigKeyword_3_7_0()); | 4024 | ( |
4025 | } | 4025 | ( |
4026 | otherlv_26='=' | 4026 | lv_entry_4_0=RULE_STRING |
4027 | { | 4027 | { |
4028 | newLeafNode(otherlv_26, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_7_1()); | 4028 | newLeafNode(lv_entry_4_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_1_1_0()); |
4029 | } | 4029 | } |
4030 | ( | 4030 | { |
4031 | ( | 4031 | if ($current==null) { |
4032 | { | 4032 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); |
4033 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getConfigConfigParserRuleCall_3_7_2_0()); | 4033 | } |
4034 | } | 4034 | addWithLastConsumed( |
4035 | lv_config_27_0=ruleConfig | 4035 | $current, |
4036 | { | 4036 | "entry", |
4037 | if ($current==null) { | 4037 | lv_entry_4_0, |
4038 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4038 | "org.eclipse.xtext.common.Terminals.STRING"); |
4039 | } | 4039 | } |
4040 | set( | 4040 | ) |
4041 | $current, | 4041 | ) |
4042 | "config", | 4042 | )* |
4043 | lv_config_27_0, | 4043 | )? |
4044 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Config"); | 4044 | otherlv_5='}' |
4045 | afterParserOrEnumRuleCall(); | 4045 | { |
4046 | } | 4046 | newLeafNode(otherlv_5, grammarAccess.getStringEnumerationAccess().getRightCurlyBracketKeyword_3()); |
4047 | ) | 4047 | } |
4048 | ) | 4048 | ) |
4049 | )) | 4049 | ; |
4050 | { | 4050 | |
4051 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4051 | // Entry rule entryRuleScopeDeclaration |
4052 | } | 4052 | entryRuleScopeDeclaration returns [EObject current=null]: |
4053 | ) | 4053 | { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } |
4054 | )| | 4054 | iv_ruleScopeDeclaration=ruleScopeDeclaration |
4055 | ( | 4055 | { $current=$iv_ruleScopeDeclaration.current; } |
4056 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8)}?=>( | 4056 | EOF; |
4057 | { | 4057 | |
4058 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8); | 4058 | // Rule ScopeDeclaration |
4059 | } | 4059 | ruleScopeDeclaration returns [EObject current=null] |
4060 | ({true}?=>(otherlv_28='debug' | 4060 | @init { |
4061 | { | 4061 | enterRule(); |
4062 | newLeafNode(otherlv_28, grammarAccess.getGenerationTaskAccess().getDebugKeyword_3_8_0()); | 4062 | } |
4063 | } | 4063 | @after { |
4064 | otherlv_29='=' | 4064 | leaveRule(); |
4065 | { | 4065 | }: |
4066 | newLeafNode(otherlv_29, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_8_1()); | 4066 | ( |
4067 | } | 4067 | otherlv_0='scope' |
4068 | ( | 4068 | { |
4069 | ( | 4069 | newLeafNode(otherlv_0, grammarAccess.getScopeDeclarationAccess().getScopeKeyword_0()); |
4070 | { | 4070 | } |
4071 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getDebugFolderFileParserRuleCall_3_8_2_0()); | 4071 | ( |
4072 | } | 4072 | ( |
4073 | lv_debugFolder_30_0=ruleFile | 4073 | lv_name_1_0=RULE_ID |
4074 | { | 4074 | { |
4075 | if ($current==null) { | 4075 | newLeafNode(lv_name_1_0, grammarAccess.getScopeDeclarationAccess().getNameIDTerminalRuleCall_1_0()); |
4076 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4076 | } |
4077 | } | 4077 | { |
4078 | set( | 4078 | if ($current==null) { |
4079 | $current, | 4079 | $current = createModelElement(grammarAccess.getScopeDeclarationRule()); |
4080 | "debugFolder", | 4080 | } |
4081 | lv_debugFolder_30_0, | 4081 | setWithLastConsumed( |
4082 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 4082 | $current, |
4083 | afterParserOrEnumRuleCall(); | 4083 | "name", |
4084 | } | 4084 | lv_name_1_0, |
4085 | ) | 4085 | "org.eclipse.xtext.common.Terminals.ID"); |
4086 | ) | 4086 | } |
4087 | )) | 4087 | ) |
4088 | { | 4088 | ) |
4089 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4089 | ( |
4090 | } | 4090 | ( |
4091 | ) | 4091 | { |
4092 | )| | 4092 | newCompositeNode(grammarAccess.getScopeDeclarationAccess().getSpecificationScopeSpecificationParserRuleCall_2_0()); |
4093 | ( | 4093 | } |
4094 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9)}?=>( | 4094 | lv_specification_2_0=ruleScopeSpecification |
4095 | { | 4095 | { |
4096 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9); | 4096 | if ($current==null) { |
4097 | } | 4097 | $current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); |
4098 | ({true}?=>(otherlv_31='log' | 4098 | } |
4099 | { | 4099 | set( |
4100 | newLeafNode(otherlv_31, grammarAccess.getGenerationTaskAccess().getLogKeyword_3_9_0()); | 4100 | $current, |
4101 | } | 4101 | "specification", |
4102 | otherlv_32='=' | 4102 | lv_specification_2_0, |
4103 | { | 4103 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ScopeSpecification"); |
4104 | newLeafNode(otherlv_32, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_9_1()); | 4104 | afterParserOrEnumRuleCall(); |
4105 | } | 4105 | } |
4106 | ( | 4106 | ) |
4107 | ( | 4107 | ) |
4108 | { | 4108 | ) |
4109 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetLogFileFileParserRuleCall_3_9_2_0()); | 4109 | ; |
4110 | } | 4110 | |
4111 | lv_targetLogFile_33_0=ruleFile | 4111 | // Entry rule entryRuleScopeReference |
4112 | { | 4112 | entryRuleScopeReference returns [EObject current=null]: |
4113 | if ($current==null) { | 4113 | { newCompositeNode(grammarAccess.getScopeReferenceRule()); } |
4114 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4114 | iv_ruleScopeReference=ruleScopeReference |
4115 | } | 4115 | { $current=$iv_ruleScopeReference.current; } |
4116 | set( | 4116 | EOF; |
4117 | $current, | 4117 | |
4118 | "targetLogFile", | 4118 | // Rule ScopeReference |
4119 | lv_targetLogFile_33_0, | 4119 | ruleScopeReference returns [EObject current=null] |
4120 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 4120 | @init { |
4121 | afterParserOrEnumRuleCall(); | 4121 | enterRule(); |
4122 | } | 4122 | } |
4123 | ) | 4123 | @after { |
4124 | ) | 4124 | leaveRule(); |
4125 | )) | 4125 | }: |
4126 | { | 4126 | ( |
4127 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4127 | ( |
4128 | } | 4128 | { |
4129 | ) | 4129 | if ($current==null) { |
4130 | )| | 4130 | $current = createModelElement(grammarAccess.getScopeReferenceRule()); |
4131 | ( | 4131 | } |
4132 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10)}?=>( | 4132 | } |
4133 | { | 4133 | otherlv_0=RULE_ID |
4134 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10); | 4134 | { |
4135 | } | 4135 | newLeafNode(otherlv_0, grammarAccess.getScopeReferenceAccess().getReferredScopeDeclarationCrossReference_0()); |
4136 | ({true}?=>(otherlv_34='statistics' | 4136 | } |
4137 | { | 4137 | ) |
4138 | newLeafNode(otherlv_34, grammarAccess.getGenerationTaskAccess().getStatisticsKeyword_3_10_0()); | 4138 | ) |
4139 | } | 4139 | ; |
4140 | otherlv_35='=' | 4140 | |
4141 | { | 4141 | // Entry rule entryRuleScope |
4142 | newLeafNode(otherlv_35, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_10_1()); | 4142 | entryRuleScope returns [EObject current=null]: |
4143 | } | 4143 | { newCompositeNode(grammarAccess.getScopeRule()); } |
4144 | ( | 4144 | iv_ruleScope=ruleScope |
4145 | ( | 4145 | { $current=$iv_ruleScope.current; } |
4146 | { | 4146 | EOF; |
4147 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetStatisticsFileFileParserRuleCall_3_10_2_0()); | 4147 | |
4148 | } | 4148 | // Rule Scope |
4149 | lv_targetStatisticsFile_36_0=ruleFile | 4149 | ruleScope returns [EObject current=null] |
4150 | { | 4150 | @init { |
4151 | if ($current==null) { | 4151 | enterRule(); |
4152 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4152 | } |
4153 | } | 4153 | @after { |
4154 | set( | 4154 | leaveRule(); |
4155 | $current, | 4155 | }: |
4156 | "targetStatisticsFile", | 4156 | ( |
4157 | lv_targetStatisticsFile_36_0, | 4157 | { |
4158 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 4158 | newCompositeNode(grammarAccess.getScopeAccess().getScopeSpecificationParserRuleCall_0()); |
4159 | afterParserOrEnumRuleCall(); | 4159 | } |
4160 | } | 4160 | this_ScopeSpecification_0=ruleScopeSpecification |
4161 | ) | 4161 | { |
4162 | ) | 4162 | $current = $this_ScopeSpecification_0.current; |
4163 | )) | 4163 | afterParserOrEnumRuleCall(); |
4164 | { | 4164 | } |
4165 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4165 | | |
4166 | } | 4166 | { |
4167 | ) | 4167 | newCompositeNode(grammarAccess.getScopeAccess().getScopeReferenceParserRuleCall_1()); |
4168 | )| | 4168 | } |
4169 | ( | 4169 | this_ScopeReference_1=ruleScopeReference |
4170 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11)}?=>( | 4170 | { |
4171 | { | 4171 | $current = $this_ScopeReference_1.current; |
4172 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11); | 4172 | afterParserOrEnumRuleCall(); |
4173 | } | 4173 | } |
4174 | ({true}?=>(otherlv_37='output' | 4174 | ) |
4175 | { | 4175 | ; |
4176 | newLeafNode(otherlv_37, grammarAccess.getGenerationTaskAccess().getOutputKeyword_3_11_0()); | 4176 | |
4177 | } | 4177 | // Entry rule entryRuleTask |
4178 | otherlv_38='=' | 4178 | entryRuleTask returns [EObject current=null]: |
4179 | { | 4179 | { newCompositeNode(grammarAccess.getTaskRule()); } |
4180 | newLeafNode(otherlv_38, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_11_1()); | 4180 | iv_ruleTask=ruleTask |
4181 | } | 4181 | { $current=$iv_ruleTask.current; } |
4182 | ( | 4182 | EOF; |
4183 | ( | 4183 | |
4184 | { | 4184 | // Rule Task |
4185 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTagetFolderFileParserRuleCall_3_11_2_0()); | 4185 | ruleTask returns [EObject current=null] |
4186 | } | 4186 | @init { |
4187 | lv_tagetFolder_39_0=ruleFile | 4187 | enterRule(); |
4188 | { | 4188 | } |
4189 | if ($current==null) { | 4189 | @after { |
4190 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 4190 | leaveRule(); |
4191 | } | 4191 | }: |
4192 | set( | 4192 | { |
4193 | $current, | 4193 | newCompositeNode(grammarAccess.getTaskAccess().getGenerationTaskParserRuleCall()); |
4194 | "tagetFolder", | 4194 | } |
4195 | lv_tagetFolder_39_0, | 4195 | this_GenerationTask_0=ruleGenerationTask |
4196 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 4196 | { |
4197 | afterParserOrEnumRuleCall(); | 4197 | $current = $this_GenerationTask_0.current; |
4198 | } | 4198 | afterParserOrEnumRuleCall(); |
4199 | ) | 4199 | } |
4200 | ) | 4200 | ; |
4201 | )) | 4201 | |
4202 | { | 4202 | // Entry rule entryRuleGenerationTask |
4203 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4203 | entryRuleGenerationTask returns [EObject current=null]: |
4204 | } | 4204 | { newCompositeNode(grammarAccess.getGenerationTaskRule()); } |
4205 | ) | 4205 | iv_ruleGenerationTask=ruleGenerationTask |
4206 | ) | 4206 | { $current=$iv_ruleGenerationTask.current; } |
4207 | )* | 4207 | EOF; |
4208 | ) | 4208 | |
4209 | ) | 4209 | // Rule GenerationTask |
4210 | { | 4210 | ruleGenerationTask returns [EObject current=null] |
4211 | getUnorderedGroupHelper().leave(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | 4211 | @init { |
4212 | } | 4212 | enterRule(); |
4213 | ) | 4213 | } |
4214 | otherlv_40='}' | 4214 | @after { |
4215 | { | 4215 | leaveRule(); |
4216 | newLeafNode(otherlv_40, grammarAccess.getGenerationTaskAccess().getRightCurlyBracketKeyword_4()); | 4216 | }: |
4217 | } | 4217 | ( |
4218 | ) | 4218 | otherlv_0='generate' |
4219 | ; | 4219 | { |
4220 | 4220 | newLeafNode(otherlv_0, grammarAccess.getGenerationTaskAccess().getGenerateKeyword_0()); | |
4221 | // Rule DocumentLevelSpecification | 4221 | } |
4222 | ruleDocumentLevelSpecification returns [Enumerator current=null] | 4222 | ( |
4223 | @init { | 4223 | { |
4224 | enterRule(); | 4224 | $current = forceCreateModelElement( |
4225 | } | 4225 | grammarAccess.getGenerationTaskAccess().getGenerationTaskAction_1(), |
4226 | @after { | 4226 | $current); |
4227 | leaveRule(); | 4227 | } |
4228 | }: | 4228 | ) |
4229 | ( | 4229 | otherlv_2='{' |
4230 | ( | 4230 | { |
4231 | enumLiteral_0='none' | 4231 | newLeafNode(otherlv_2, grammarAccess.getGenerationTaskAccess().getLeftCurlyBracketKeyword_2()); |
4232 | { | 4232 | } |
4233 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | 4233 | ( |
4234 | newLeafNode(enumLiteral_0, grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0()); | 4234 | ( |
4235 | } | 4235 | { |
4236 | ) | 4236 | getUnorderedGroupHelper().enter(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); |
4237 | | | 4237 | } |
4238 | ( | 4238 | ( |
4239 | enumLiteral_1='normal' | 4239 | ( |
4240 | { | 4240 | ( |
4241 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | 4241 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0)}?=>( |
4242 | newLeafNode(enumLiteral_1, grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1()); | 4242 | { |
4243 | } | 4243 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0); |
4244 | ) | 4244 | } |
4245 | | | 4245 | ({true}?=>(otherlv_4='metamodel' |
4246 | ( | 4246 | { |
4247 | enumLiteral_2='full' | 4247 | newLeafNode(otherlv_4, grammarAccess.getGenerationTaskAccess().getMetamodelKeyword_3_0_0()); |
4248 | { | 4248 | } |
4249 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | 4249 | otherlv_5='=' |
4250 | newLeafNode(enumLiteral_2, grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2()); | 4250 | { |
4251 | } | 4251 | newLeafNode(otherlv_5, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_0_1()); |
4252 | ) | 4252 | } |
4253 | ) | 4253 | ( |
4254 | ; | 4254 | ( |
4255 | 4255 | { | |
4256 | // Rule Solver | 4256 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getMetamodelMetamodelParserRuleCall_3_0_2_0()); |
4257 | ruleSolver returns [Enumerator current=null] | 4257 | } |
4258 | @init { | 4258 | lv_metamodel_6_0=ruleMetamodel |
4259 | enterRule(); | 4259 | { |
4260 | } | 4260 | if ($current==null) { |
4261 | @after { | 4261 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); |
4262 | leaveRule(); | 4262 | } |
4263 | }: | 4263 | set( |
4264 | ( | 4264 | $current, |
4265 | ( | 4265 | "metamodel", |
4266 | enumLiteral_0='SMTSolver' | 4266 | lv_metamodel_6_0, |
4267 | { | 4267 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Metamodel"); |
4268 | $current = grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | 4268 | afterParserOrEnumRuleCall(); |
4269 | newLeafNode(enumLiteral_0, grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0()); | 4269 | } |
4270 | } | 4270 | ) |
4271 | ) | 4271 | ) |
4272 | | | 4272 | )) |
4273 | ( | 4273 | { |
4274 | enumLiteral_1='AlloySolver' | 4274 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); |
4275 | { | 4275 | } |
4276 | $current = grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | 4276 | ) |
4277 | newLeafNode(enumLiteral_1, grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1()); | 4277 | )| |
4278 | } | 4278 | ( |
4279 | ) | 4279 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1)}?=>( |
4280 | | | 4280 | { |
4281 | ( | 4281 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1); |
4282 | enumLiteral_2='ViatraSolver' | 4282 | } |
4283 | { | 4283 | ({true}?=>(otherlv_7='partial-model' |
4284 | $current = grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | 4284 | { |
4285 | newLeafNode(enumLiteral_2, grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2()); | 4285 | newLeafNode(otherlv_7, grammarAccess.getGenerationTaskAccess().getPartialModelKeyword_3_1_0()); |
4286 | } | 4286 | } |
4287 | ) | 4287 | otherlv_8='=' |
4288 | ) | 4288 | { |
4289 | ; | 4289 | newLeafNode(otherlv_8, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_1_1()); |
4290 | 4290 | } | |
4291 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | 4291 | ( |
4292 | 4292 | ( | |
4293 | RULE_INT : ('0'..'9')+; | 4293 | { |
4294 | 4294 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPartialModelPartialModelParserRuleCall_3_1_2_0()); | |
4295 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | 4295 | } |
4296 | 4296 | lv_partialModel_9_0=rulePartialModel | |
4297 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | 4297 | { |
4298 | 4298 | if ($current==null) { | |
4299 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | 4299 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); |
4300 | 4300 | } | |
4301 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | 4301 | set( |
4302 | 4302 | $current, | |
4303 | RULE_ANY_OTHER : .; | 4303 | "partialModel", |
4304 | lv_partialModel_9_0, | ||
4305 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModel"); | ||
4306 | afterParserOrEnumRuleCall(); | ||
4307 | } | ||
4308 | ) | ||
4309 | ) | ||
4310 | )) | ||
4311 | { | ||
4312 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4313 | } | ||
4314 | ) | ||
4315 | )| | ||
4316 | ( | ||
4317 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2)}?=>( | ||
4318 | { | ||
4319 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2); | ||
4320 | } | ||
4321 | ({true}?=>(otherlv_10='constraints' | ||
4322 | { | ||
4323 | newLeafNode(otherlv_10, grammarAccess.getGenerationTaskAccess().getConstraintsKeyword_3_2_0()); | ||
4324 | } | ||
4325 | otherlv_11='=' | ||
4326 | { | ||
4327 | newLeafNode(otherlv_11, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_2_1()); | ||
4328 | } | ||
4329 | ( | ||
4330 | ( | ||
4331 | { | ||
4332 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPatternsGraphPatternParserRuleCall_3_2_2_0()); | ||
4333 | } | ||
4334 | lv_patterns_12_0=ruleGraphPattern | ||
4335 | { | ||
4336 | if ($current==null) { | ||
4337 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4338 | } | ||
4339 | set( | ||
4340 | $current, | ||
4341 | "patterns", | ||
4342 | lv_patterns_12_0, | ||
4343 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.GraphPattern"); | ||
4344 | afterParserOrEnumRuleCall(); | ||
4345 | } | ||
4346 | ) | ||
4347 | ) | ||
4348 | )) | ||
4349 | { | ||
4350 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4351 | } | ||
4352 | ) | ||
4353 | )| | ||
4354 | ( | ||
4355 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3)}?=>( | ||
4356 | { | ||
4357 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3); | ||
4358 | } | ||
4359 | ({true}?=>(otherlv_13='objectives' | ||
4360 | { | ||
4361 | newLeafNode(otherlv_13, grammarAccess.getGenerationTaskAccess().getObjectivesKeyword_3_3_0()); | ||
4362 | } | ||
4363 | otherlv_14='=' | ||
4364 | { | ||
4365 | newLeafNode(otherlv_14, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_3_1()); | ||
4366 | } | ||
4367 | ( | ||
4368 | ( | ||
4369 | { | ||
4370 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getObjectivesObjectiveParserRuleCall_3_3_2_0()); | ||
4371 | } | ||
4372 | lv_objectives_15_0=ruleObjective | ||
4373 | { | ||
4374 | if ($current==null) { | ||
4375 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4376 | } | ||
4377 | set( | ||
4378 | $current, | ||
4379 | "objectives", | ||
4380 | lv_objectives_15_0, | ||
4381 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Objective"); | ||
4382 | afterParserOrEnumRuleCall(); | ||
4383 | } | ||
4384 | ) | ||
4385 | ) | ||
4386 | )) | ||
4387 | { | ||
4388 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4389 | } | ||
4390 | ) | ||
4391 | )| | ||
4392 | ( | ||
4393 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4)}?=>( | ||
4394 | { | ||
4395 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4); | ||
4396 | } | ||
4397 | ({true}?=>(otherlv_16='scope' | ||
4398 | { | ||
4399 | newLeafNode(otherlv_16, grammarAccess.getGenerationTaskAccess().getScopeKeyword_3_4_0()); | ||
4400 | } | ||
4401 | otherlv_17='=' | ||
4402 | { | ||
4403 | newLeafNode(otherlv_17, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_4_1()); | ||
4404 | } | ||
4405 | ( | ||
4406 | ( | ||
4407 | { | ||
4408 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getScopeScopeParserRuleCall_3_4_2_0()); | ||
4409 | } | ||
4410 | lv_scope_18_0=ruleScope | ||
4411 | { | ||
4412 | if ($current==null) { | ||
4413 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4414 | } | ||
4415 | set( | ||
4416 | $current, | ||
4417 | "scope", | ||
4418 | lv_scope_18_0, | ||
4419 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Scope"); | ||
4420 | afterParserOrEnumRuleCall(); | ||
4421 | } | ||
4422 | ) | ||
4423 | ) | ||
4424 | )) | ||
4425 | { | ||
4426 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4427 | } | ||
4428 | ) | ||
4429 | )| | ||
4430 | ( | ||
4431 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5)}?=>( | ||
4432 | { | ||
4433 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5); | ||
4434 | } | ||
4435 | ({true}?=>(( | ||
4436 | ( | ||
4437 | lv_numberSpecified_19_0='number' | ||
4438 | { | ||
4439 | newLeafNode(lv_numberSpecified_19_0, grammarAccess.getGenerationTaskAccess().getNumberSpecifiedNumberKeyword_3_5_0_0()); | ||
4440 | } | ||
4441 | { | ||
4442 | if ($current==null) { | ||
4443 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
4444 | } | ||
4445 | setWithLastConsumed($current, "numberSpecified", true, "number"); | ||
4446 | } | ||
4447 | ) | ||
4448 | ) | ||
4449 | otherlv_20='=' | ||
4450 | { | ||
4451 | newLeafNode(otherlv_20, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_5_1()); | ||
4452 | } | ||
4453 | ( | ||
4454 | ( | ||
4455 | lv_number_21_0=RULE_INT | ||
4456 | { | ||
4457 | newLeafNode(lv_number_21_0, grammarAccess.getGenerationTaskAccess().getNumberINTTerminalRuleCall_3_5_2_0()); | ||
4458 | } | ||
4459 | { | ||
4460 | if ($current==null) { | ||
4461 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
4462 | } | ||
4463 | setWithLastConsumed( | ||
4464 | $current, | ||
4465 | "number", | ||
4466 | lv_number_21_0, | ||
4467 | "org.eclipse.xtext.common.Terminals.INT"); | ||
4468 | } | ||
4469 | ) | ||
4470 | ) | ||
4471 | )) | ||
4472 | { | ||
4473 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4474 | } | ||
4475 | ) | ||
4476 | )| | ||
4477 | ( | ||
4478 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6)}?=>( | ||
4479 | { | ||
4480 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6); | ||
4481 | } | ||
4482 | ({true}?=>(( | ||
4483 | ( | ||
4484 | lv_runSpecified_22_0='runs' | ||
4485 | { | ||
4486 | newLeafNode(lv_runSpecified_22_0, grammarAccess.getGenerationTaskAccess().getRunSpecifiedRunsKeyword_3_6_0_0()); | ||
4487 | } | ||
4488 | { | ||
4489 | if ($current==null) { | ||
4490 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
4491 | } | ||
4492 | setWithLastConsumed($current, "runSpecified", true, "runs"); | ||
4493 | } | ||
4494 | ) | ||
4495 | ) | ||
4496 | otherlv_23='=' | ||
4497 | { | ||
4498 | newLeafNode(otherlv_23, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_6_1()); | ||
4499 | } | ||
4500 | ( | ||
4501 | ( | ||
4502 | lv_runs_24_0=RULE_INT | ||
4503 | { | ||
4504 | newLeafNode(lv_runs_24_0, grammarAccess.getGenerationTaskAccess().getRunsINTTerminalRuleCall_3_6_2_0()); | ||
4505 | } | ||
4506 | { | ||
4507 | if ($current==null) { | ||
4508 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
4509 | } | ||
4510 | setWithLastConsumed( | ||
4511 | $current, | ||
4512 | "runs", | ||
4513 | lv_runs_24_0, | ||
4514 | "org.eclipse.xtext.common.Terminals.INT"); | ||
4515 | } | ||
4516 | ) | ||
4517 | ) | ||
4518 | )) | ||
4519 | { | ||
4520 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4521 | } | ||
4522 | ) | ||
4523 | )| | ||
4524 | ( | ||
4525 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7)}?=>( | ||
4526 | { | ||
4527 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7); | ||
4528 | } | ||
4529 | ({true}?=>(otherlv_25='solver' | ||
4530 | { | ||
4531 | newLeafNode(otherlv_25, grammarAccess.getGenerationTaskAccess().getSolverKeyword_3_7_0()); | ||
4532 | } | ||
4533 | otherlv_26='=' | ||
4534 | { | ||
4535 | newLeafNode(otherlv_26, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_7_1()); | ||
4536 | } | ||
4537 | ( | ||
4538 | ( | ||
4539 | { | ||
4540 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getSolverSolverEnumRuleCall_3_7_2_0()); | ||
4541 | } | ||
4542 | lv_solver_27_0=ruleSolver | ||
4543 | { | ||
4544 | if ($current==null) { | ||
4545 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4546 | } | ||
4547 | set( | ||
4548 | $current, | ||
4549 | "solver", | ||
4550 | lv_solver_27_0, | ||
4551 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Solver"); | ||
4552 | afterParserOrEnumRuleCall(); | ||
4553 | } | ||
4554 | ) | ||
4555 | ) | ||
4556 | )) | ||
4557 | { | ||
4558 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4559 | } | ||
4560 | ) | ||
4561 | )| | ||
4562 | ( | ||
4563 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8)}?=>( | ||
4564 | { | ||
4565 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8); | ||
4566 | } | ||
4567 | ({true}?=>(otherlv_28='config' | ||
4568 | { | ||
4569 | newLeafNode(otherlv_28, grammarAccess.getGenerationTaskAccess().getConfigKeyword_3_8_0()); | ||
4570 | } | ||
4571 | otherlv_29='=' | ||
4572 | { | ||
4573 | newLeafNode(otherlv_29, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_8_1()); | ||
4574 | } | ||
4575 | ( | ||
4576 | ( | ||
4577 | { | ||
4578 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getConfigConfigParserRuleCall_3_8_2_0()); | ||
4579 | } | ||
4580 | lv_config_30_0=ruleConfig | ||
4581 | { | ||
4582 | if ($current==null) { | ||
4583 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4584 | } | ||
4585 | set( | ||
4586 | $current, | ||
4587 | "config", | ||
4588 | lv_config_30_0, | ||
4589 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Config"); | ||
4590 | afterParserOrEnumRuleCall(); | ||
4591 | } | ||
4592 | ) | ||
4593 | ) | ||
4594 | )) | ||
4595 | { | ||
4596 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4597 | } | ||
4598 | ) | ||
4599 | )| | ||
4600 | ( | ||
4601 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9)}?=>( | ||
4602 | { | ||
4603 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9); | ||
4604 | } | ||
4605 | ({true}?=>(otherlv_31='debug' | ||
4606 | { | ||
4607 | newLeafNode(otherlv_31, grammarAccess.getGenerationTaskAccess().getDebugKeyword_3_9_0()); | ||
4608 | } | ||
4609 | otherlv_32='=' | ||
4610 | { | ||
4611 | newLeafNode(otherlv_32, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_9_1()); | ||
4612 | } | ||
4613 | ( | ||
4614 | ( | ||
4615 | { | ||
4616 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getDebugFolderFileParserRuleCall_3_9_2_0()); | ||
4617 | } | ||
4618 | lv_debugFolder_33_0=ruleFile | ||
4619 | { | ||
4620 | if ($current==null) { | ||
4621 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4622 | } | ||
4623 | set( | ||
4624 | $current, | ||
4625 | "debugFolder", | ||
4626 | lv_debugFolder_33_0, | ||
4627 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
4628 | afterParserOrEnumRuleCall(); | ||
4629 | } | ||
4630 | ) | ||
4631 | ) | ||
4632 | )) | ||
4633 | { | ||
4634 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4635 | } | ||
4636 | ) | ||
4637 | )| | ||
4638 | ( | ||
4639 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10)}?=>( | ||
4640 | { | ||
4641 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10); | ||
4642 | } | ||
4643 | ({true}?=>(otherlv_34='log' | ||
4644 | { | ||
4645 | newLeafNode(otherlv_34, grammarAccess.getGenerationTaskAccess().getLogKeyword_3_10_0()); | ||
4646 | } | ||
4647 | otherlv_35='=' | ||
4648 | { | ||
4649 | newLeafNode(otherlv_35, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_10_1()); | ||
4650 | } | ||
4651 | ( | ||
4652 | ( | ||
4653 | { | ||
4654 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetLogFileFileParserRuleCall_3_10_2_0()); | ||
4655 | } | ||
4656 | lv_targetLogFile_36_0=ruleFile | ||
4657 | { | ||
4658 | if ($current==null) { | ||
4659 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4660 | } | ||
4661 | set( | ||
4662 | $current, | ||
4663 | "targetLogFile", | ||
4664 | lv_targetLogFile_36_0, | ||
4665 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
4666 | afterParserOrEnumRuleCall(); | ||
4667 | } | ||
4668 | ) | ||
4669 | ) | ||
4670 | )) | ||
4671 | { | ||
4672 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4673 | } | ||
4674 | ) | ||
4675 | )| | ||
4676 | ( | ||
4677 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11)}?=>( | ||
4678 | { | ||
4679 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11); | ||
4680 | } | ||
4681 | ({true}?=>(otherlv_37='statistics' | ||
4682 | { | ||
4683 | newLeafNode(otherlv_37, grammarAccess.getGenerationTaskAccess().getStatisticsKeyword_3_11_0()); | ||
4684 | } | ||
4685 | otherlv_38='=' | ||
4686 | { | ||
4687 | newLeafNode(otherlv_38, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_11_1()); | ||
4688 | } | ||
4689 | ( | ||
4690 | ( | ||
4691 | { | ||
4692 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetStatisticsFileFileParserRuleCall_3_11_2_0()); | ||
4693 | } | ||
4694 | lv_targetStatisticsFile_39_0=ruleFile | ||
4695 | { | ||
4696 | if ($current==null) { | ||
4697 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4698 | } | ||
4699 | set( | ||
4700 | $current, | ||
4701 | "targetStatisticsFile", | ||
4702 | lv_targetStatisticsFile_39_0, | ||
4703 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
4704 | afterParserOrEnumRuleCall(); | ||
4705 | } | ||
4706 | ) | ||
4707 | ) | ||
4708 | )) | ||
4709 | { | ||
4710 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4711 | } | ||
4712 | ) | ||
4713 | )| | ||
4714 | ( | ||
4715 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 12)}?=>( | ||
4716 | { | ||
4717 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 12); | ||
4718 | } | ||
4719 | ({true}?=>(otherlv_40='output' | ||
4720 | { | ||
4721 | newLeafNode(otherlv_40, grammarAccess.getGenerationTaskAccess().getOutputKeyword_3_12_0()); | ||
4722 | } | ||
4723 | otherlv_41='=' | ||
4724 | { | ||
4725 | newLeafNode(otherlv_41, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_12_1()); | ||
4726 | } | ||
4727 | ( | ||
4728 | ( | ||
4729 | { | ||
4730 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTagetFolderFileParserRuleCall_3_12_2_0()); | ||
4731 | } | ||
4732 | lv_tagetFolder_42_0=ruleFile | ||
4733 | { | ||
4734 | if ($current==null) { | ||
4735 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
4736 | } | ||
4737 | set( | ||
4738 | $current, | ||
4739 | "tagetFolder", | ||
4740 | lv_tagetFolder_42_0, | ||
4741 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
4742 | afterParserOrEnumRuleCall(); | ||
4743 | } | ||
4744 | ) | ||
4745 | ) | ||
4746 | )) | ||
4747 | { | ||
4748 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4749 | } | ||
4750 | ) | ||
4751 | ) | ||
4752 | )* | ||
4753 | ) | ||
4754 | ) | ||
4755 | { | ||
4756 | getUnorderedGroupHelper().leave(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
4757 | } | ||
4758 | ) | ||
4759 | otherlv_43='}' | ||
4760 | { | ||
4761 | newLeafNode(otherlv_43, grammarAccess.getGenerationTaskAccess().getRightCurlyBracketKeyword_4()); | ||
4762 | } | ||
4763 | ) | ||
4764 | ; | ||
4765 | |||
4766 | // Rule OptimizationDirection | ||
4767 | ruleOptimizationDirection returns [Enumerator current=null] | ||
4768 | @init { | ||
4769 | enterRule(); | ||
4770 | } | ||
4771 | @after { | ||
4772 | leaveRule(); | ||
4773 | }: | ||
4774 | ( | ||
4775 | ( | ||
4776 | enumLiteral_0='minimize' | ||
4777 | { | ||
4778 | $current = grammarAccess.getOptimizationDirectionAccess().getMINIMIZEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | ||
4779 | newLeafNode(enumLiteral_0, grammarAccess.getOptimizationDirectionAccess().getMINIMIZEEnumLiteralDeclaration_0()); | ||
4780 | } | ||
4781 | ) | ||
4782 | | | ||
4783 | ( | ||
4784 | enumLiteral_1='maximize' | ||
4785 | { | ||
4786 | $current = grammarAccess.getOptimizationDirectionAccess().getMAXIMIZEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | ||
4787 | newLeafNode(enumLiteral_1, grammarAccess.getOptimizationDirectionAccess().getMAXIMIZEEnumLiteralDeclaration_1()); | ||
4788 | } | ||
4789 | ) | ||
4790 | ) | ||
4791 | ; | ||
4792 | |||
4793 | // Rule ComparisonOperator | ||
4794 | ruleComparisonOperator returns [Enumerator current=null] | ||
4795 | @init { | ||
4796 | enterRule(); | ||
4797 | } | ||
4798 | @after { | ||
4799 | leaveRule(); | ||
4800 | }: | ||
4801 | ( | ||
4802 | ( | ||
4803 | enumLiteral_0='<=' | ||
4804 | { | ||
4805 | $current = grammarAccess.getComparisonOperatorAccess().getLESS_EQUALSEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | ||
4806 | newLeafNode(enumLiteral_0, grammarAccess.getComparisonOperatorAccess().getLESS_EQUALSEnumLiteralDeclaration_0()); | ||
4807 | } | ||
4808 | ) | ||
4809 | | | ||
4810 | ( | ||
4811 | enumLiteral_1='>=' | ||
4812 | { | ||
4813 | $current = grammarAccess.getComparisonOperatorAccess().getGREATER_EQUALSEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | ||
4814 | newLeafNode(enumLiteral_1, grammarAccess.getComparisonOperatorAccess().getGREATER_EQUALSEnumLiteralDeclaration_1()); | ||
4815 | } | ||
4816 | ) | ||
4817 | ) | ||
4818 | ; | ||
4819 | |||
4820 | // Rule DocumentLevelSpecification | ||
4821 | ruleDocumentLevelSpecification returns [Enumerator current=null] | ||
4822 | @init { | ||
4823 | enterRule(); | ||
4824 | } | ||
4825 | @after { | ||
4826 | leaveRule(); | ||
4827 | }: | ||
4828 | ( | ||
4829 | ( | ||
4830 | enumLiteral_0='none' | ||
4831 | { | ||
4832 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | ||
4833 | newLeafNode(enumLiteral_0, grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0()); | ||
4834 | } | ||
4835 | ) | ||
4836 | | | ||
4837 | ( | ||
4838 | enumLiteral_1='normal' | ||
4839 | { | ||
4840 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | ||
4841 | newLeafNode(enumLiteral_1, grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1()); | ||
4842 | } | ||
4843 | ) | ||
4844 | | | ||
4845 | ( | ||
4846 | enumLiteral_2='full' | ||
4847 | { | ||
4848 | $current = grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | ||
4849 | newLeafNode(enumLiteral_2, grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2()); | ||
4850 | } | ||
4851 | ) | ||
4852 | ) | ||
4853 | ; | ||
4854 | |||
4855 | // Rule Solver | ||
4856 | ruleSolver returns [Enumerator current=null] | ||
4857 | @init { | ||
4858 | enterRule(); | ||
4859 | } | ||
4860 | @after { | ||
4861 | leaveRule(); | ||
4862 | }: | ||
4863 | ( | ||
4864 | ( | ||
4865 | enumLiteral_0='SMTSolver' | ||
4866 | { | ||
4867 | $current = grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | ||
4868 | newLeafNode(enumLiteral_0, grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0()); | ||
4869 | } | ||
4870 | ) | ||
4871 | | | ||
4872 | ( | ||
4873 | enumLiteral_1='AlloySolver' | ||
4874 | { | ||
4875 | $current = grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | ||
4876 | newLeafNode(enumLiteral_1, grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1()); | ||
4877 | } | ||
4878 | ) | ||
4879 | | | ||
4880 | ( | ||
4881 | enumLiteral_2='ViatraSolver' | ||
4882 | { | ||
4883 | $current = grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | ||
4884 | newLeafNode(enumLiteral_2, grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2()); | ||
4885 | } | ||
4886 | ) | ||
4887 | ) | ||
4888 | ; | ||
4889 | |||
4890 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
4891 | |||
4892 | RULE_INT : ('0'..'9')+; | ||
4893 | |||
4894 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
4895 | |||
4896 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
4897 | |||
4898 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
4899 | |||
4900 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
4901 | |||
4902 | RULE_ANY_OTHER : .; | ||