diff options
author | OszkarSemerath <oszkar.semerath@gmail.com> | 2018-02-15 22:55:47 +0100 |
---|---|---|
committer | OszkarSemerath <oszkar.semerath@gmail.com> | 2018-02-15 22:55:47 +0100 |
commit | 0be8ac9989d7af31c7e3b9f923fbbd7ed9f540ea (patch) | |
tree | 711125f4701dc14d6201ed782ca9de0b79616938 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g | |
parent | Eclass trace notation changed from "[X]" to "<X>". (diff) | |
download | VIATRA-Generator-0be8ac9989d7af31c7e3b9f923fbbd7ed9f540ea.tar.gz VIATRA-Generator-0be8ac9989d7af31c7e3b9f923fbbd7ed9f540ea.tar.zst VIATRA-Generator-0be8ac9989d7af31c7e3b9f923fbbd7ed9f540ea.zip |
First complete scope grammar
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 | 1126 |
1 files changed, 1003 insertions, 123 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 438b8311..81aec312 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 | |||
@@ -2064,25 +2064,88 @@ ruleTypeScope returns [EObject current=null] | |||
2064 | leaveRule(); | 2064 | leaveRule(); |
2065 | }: | 2065 | }: |
2066 | ( | 2066 | ( |
2067 | { | ||
2068 | newCompositeNode(grammarAccess.getTypeScopeAccess().getClassTypeScopeParserRuleCall_0()); | ||
2069 | } | ||
2070 | this_ClassTypeScope_0=ruleClassTypeScope | ||
2071 | { | ||
2072 | $current = $this_ClassTypeScope_0.current; | ||
2073 | afterParserOrEnumRuleCall(); | ||
2074 | } | ||
2075 | | | ||
2076 | { | ||
2077 | newCompositeNode(grammarAccess.getTypeScopeAccess().getObjectTypeScopeParserRuleCall_1()); | ||
2078 | } | ||
2079 | this_ObjectTypeScope_1=ruleObjectTypeScope | ||
2080 | { | ||
2081 | $current = $this_ObjectTypeScope_1.current; | ||
2082 | afterParserOrEnumRuleCall(); | ||
2083 | } | ||
2084 | | | ||
2085 | { | ||
2086 | newCompositeNode(grammarAccess.getTypeScopeAccess().getIntegerTypeScopeParserRuleCall_2()); | ||
2087 | } | ||
2088 | this_IntegerTypeScope_2=ruleIntegerTypeScope | ||
2089 | { | ||
2090 | $current = $this_IntegerTypeScope_2.current; | ||
2091 | afterParserOrEnumRuleCall(); | ||
2092 | } | ||
2093 | | | ||
2094 | { | ||
2095 | newCompositeNode(grammarAccess.getTypeScopeAccess().getRealTypeScopeParserRuleCall_3()); | ||
2096 | } | ||
2097 | this_RealTypeScope_3=ruleRealTypeScope | ||
2098 | { | ||
2099 | $current = $this_RealTypeScope_3.current; | ||
2100 | afterParserOrEnumRuleCall(); | ||
2101 | } | ||
2102 | | | ||
2103 | { | ||
2104 | newCompositeNode(grammarAccess.getTypeScopeAccess().getStringTypeScopeParserRuleCall_4()); | ||
2105 | } | ||
2106 | this_StringTypeScope_4=ruleStringTypeScope | ||
2107 | { | ||
2108 | $current = $this_StringTypeScope_4.current; | ||
2109 | afterParserOrEnumRuleCall(); | ||
2110 | } | ||
2111 | ) | ||
2112 | ; | ||
2113 | |||
2114 | // Entry rule entryRuleClassTypeScope | ||
2115 | entryRuleClassTypeScope returns [EObject current=null]: | ||
2116 | { newCompositeNode(grammarAccess.getClassTypeScopeRule()); } | ||
2117 | iv_ruleClassTypeScope=ruleClassTypeScope | ||
2118 | { $current=$iv_ruleClassTypeScope.current; } | ||
2119 | EOF; | ||
2120 | |||
2121 | // Rule ClassTypeScope | ||
2122 | ruleClassTypeScope returns [EObject current=null] | ||
2123 | @init { | ||
2124 | enterRule(); | ||
2125 | } | ||
2126 | @after { | ||
2127 | leaveRule(); | ||
2128 | }: | ||
2129 | ( | ||
2067 | otherlv_0='#' | 2130 | otherlv_0='#' |
2068 | { | 2131 | { |
2069 | newLeafNode(otherlv_0, grammarAccess.getTypeScopeAccess().getNumberSignKeyword_0()); | 2132 | newLeafNode(otherlv_0, grammarAccess.getClassTypeScopeAccess().getNumberSignKeyword_0()); |
2070 | } | 2133 | } |
2071 | ( | 2134 | ( |
2072 | ( | 2135 | ( |
2073 | { | 2136 | { |
2074 | newCompositeNode(grammarAccess.getTypeScopeAccess().getTypeTypeReferenceParserRuleCall_1_0()); | 2137 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getTypeClassReferenceParserRuleCall_1_0()); |
2075 | } | 2138 | } |
2076 | lv_type_1_0=ruleTypeReference | 2139 | lv_type_1_0=ruleClassReference |
2077 | { | 2140 | { |
2078 | if ($current==null) { | 2141 | if ($current==null) { |
2079 | $current = createModelElementForParent(grammarAccess.getTypeScopeRule()); | 2142 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); |
2080 | } | 2143 | } |
2081 | set( | 2144 | set( |
2082 | $current, | 2145 | $current, |
2083 | "type", | 2146 | "type", |
2084 | lv_type_1_0, | 2147 | lv_type_1_0, |
2085 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeReference"); | 2148 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ClassReference"); |
2086 | afterParserOrEnumRuleCall(); | 2149 | afterParserOrEnumRuleCall(); |
2087 | } | 2150 | } |
2088 | ) | 2151 | ) |
@@ -2092,11 +2155,11 @@ ruleTypeScope returns [EObject current=null] | |||
2092 | ( | 2155 | ( |
2093 | lv_setsNew_2_0='+=' | 2156 | lv_setsNew_2_0='+=' |
2094 | { | 2157 | { |
2095 | newLeafNode(lv_setsNew_2_0, grammarAccess.getTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | 2158 | newLeafNode(lv_setsNew_2_0, grammarAccess.getClassTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
2096 | } | 2159 | } |
2097 | { | 2160 | { |
2098 | if ($current==null) { | 2161 | if ($current==null) { |
2099 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | 2162 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); |
2100 | } | 2163 | } |
2101 | setWithLastConsumed($current, "setsNew", true, "+="); | 2164 | setWithLastConsumed($current, "setsNew", true, "+="); |
2102 | } | 2165 | } |
@@ -2107,11 +2170,11 @@ ruleTypeScope returns [EObject current=null] | |||
2107 | ( | 2170 | ( |
2108 | lv_setsSum_3_0='=' | 2171 | lv_setsSum_3_0='=' |
2109 | { | 2172 | { |
2110 | newLeafNode(lv_setsSum_3_0, grammarAccess.getTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | 2173 | newLeafNode(lv_setsSum_3_0, grammarAccess.getClassTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); |
2111 | } | 2174 | } |
2112 | { | 2175 | { |
2113 | if ($current==null) { | 2176 | if ($current==null) { |
2114 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | 2177 | $current = createModelElement(grammarAccess.getClassTypeScopeRule()); |
2115 | } | 2178 | } |
2116 | setWithLastConsumed($current, "setsSum", true, "="); | 2179 | setWithLastConsumed($current, "setsSum", true, "="); |
2117 | } | 2180 | } |
@@ -2120,75 +2183,171 @@ ruleTypeScope returns [EObject current=null] | |||
2120 | ) | 2183 | ) |
2121 | ( | 2184 | ( |
2122 | ( | 2185 | ( |
2123 | lv_min_4_0=RULE_INT | 2186 | ( |
2187 | { | ||
2188 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | ||
2189 | } | ||
2190 | lv_number_4_0=ruleExactNumber | ||
2191 | { | ||
2192 | if ($current==null) { | ||
2193 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); | ||
2194 | } | ||
2195 | set( | ||
2196 | $current, | ||
2197 | "number", | ||
2198 | lv_number_4_0, | ||
2199 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | ||
2200 | afterParserOrEnumRuleCall(); | ||
2201 | } | ||
2202 | ) | ||
2203 | ) | ||
2204 | | | ||
2205 | ( | ||
2206 | ( | ||
2207 | { | ||
2208 | newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | ||
2209 | } | ||
2210 | lv_number_5_0=ruleIntervallNumber | ||
2211 | { | ||
2212 | if ($current==null) { | ||
2213 | $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); | ||
2214 | } | ||
2215 | set( | ||
2216 | $current, | ||
2217 | "number", | ||
2218 | lv_number_5_0, | ||
2219 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | ||
2220 | afterParserOrEnumRuleCall(); | ||
2221 | } | ||
2222 | ) | ||
2223 | ) | ||
2224 | ) | ||
2225 | ) | ||
2226 | ; | ||
2227 | |||
2228 | // Entry rule entryRuleObjectTypeScope | ||
2229 | entryRuleObjectTypeScope returns [EObject current=null]: | ||
2230 | { newCompositeNode(grammarAccess.getObjectTypeScopeRule()); } | ||
2231 | iv_ruleObjectTypeScope=ruleObjectTypeScope | ||
2232 | { $current=$iv_ruleObjectTypeScope.current; } | ||
2233 | EOF; | ||
2234 | |||
2235 | // Rule ObjectTypeScope | ||
2236 | ruleObjectTypeScope returns [EObject current=null] | ||
2237 | @init { | ||
2238 | enterRule(); | ||
2239 | } | ||
2240 | @after { | ||
2241 | leaveRule(); | ||
2242 | }: | ||
2243 | ( | ||
2244 | otherlv_0='#' | ||
2245 | { | ||
2246 | newLeafNode(otherlv_0, grammarAccess.getObjectTypeScopeAccess().getNumberSignKeyword_0()); | ||
2247 | } | ||
2248 | ( | ||
2249 | ( | ||
2124 | { | 2250 | { |
2125 | newLeafNode(lv_min_4_0, grammarAccess.getTypeScopeAccess().getMinINTTerminalRuleCall_3_0()); | 2251 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getTypeObjectReferenceParserRuleCall_1_0()); |
2126 | } | 2252 | } |
2253 | lv_type_1_0=ruleObjectReference | ||
2127 | { | 2254 | { |
2128 | if ($current==null) { | 2255 | if ($current==null) { |
2129 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | 2256 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); |
2130 | } | 2257 | } |
2131 | setWithLastConsumed( | 2258 | set( |
2132 | $current, | 2259 | $current, |
2133 | "min", | 2260 | "type", |
2134 | lv_min_4_0, | 2261 | lv_type_1_0, |
2135 | "org.eclipse.xtext.common.Terminals.INT"); | 2262 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectReference"); |
2263 | afterParserOrEnumRuleCall(); | ||
2136 | } | 2264 | } |
2137 | ) | 2265 | ) |
2138 | ) | 2266 | ) |
2139 | ( | 2267 | ( |
2140 | otherlv_5='..' | ||
2141 | { | ||
2142 | newLeafNode(otherlv_5, grammarAccess.getTypeScopeAccess().getFullStopFullStopKeyword_4_0()); | ||
2143 | } | ||
2144 | ( | 2268 | ( |
2145 | ( | 2269 | ( |
2146 | ( | 2270 | lv_setsNew_2_0='+=' |
2147 | lv_maxUnlimited_6_0='*' | 2271 | { |
2148 | { | 2272 | newLeafNode(lv_setsNew_2_0, grammarAccess.getObjectTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); |
2149 | newLeafNode(lv_maxUnlimited_6_0, grammarAccess.getTypeScopeAccess().getMaxUnlimitedAsteriskKeyword_4_1_0_0()); | 2273 | } |
2274 | { | ||
2275 | if ($current==null) { | ||
2276 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); | ||
2150 | } | 2277 | } |
2151 | { | 2278 | setWithLastConsumed($current, "setsNew", true, "+="); |
2152 | if ($current==null) { | 2279 | } |
2153 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | 2280 | ) |
2154 | } | 2281 | ) |
2155 | setWithLastConsumed($current, "maxUnlimited", true, "*"); | 2282 | | |
2283 | ( | ||
2284 | ( | ||
2285 | lv_setsSum_3_0='=' | ||
2286 | { | ||
2287 | newLeafNode(lv_setsSum_3_0, grammarAccess.getObjectTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | ||
2288 | } | ||
2289 | { | ||
2290 | if ($current==null) { | ||
2291 | $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); | ||
2156 | } | 2292 | } |
2157 | ) | 2293 | setWithLastConsumed($current, "setsSum", true, "="); |
2294 | } | ||
2158 | ) | 2295 | ) |
2159 | | | 2296 | ) |
2297 | ) | ||
2298 | ( | ||
2299 | ( | ||
2160 | ( | 2300 | ( |
2161 | ( | 2301 | { |
2162 | lv_max_7_0=RULE_INT | 2302 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); |
2163 | { | 2303 | } |
2164 | newLeafNode(lv_max_7_0, grammarAccess.getTypeScopeAccess().getMaxINTTerminalRuleCall_4_1_1_0()); | 2304 | lv_number_4_0=ruleExactNumber |
2305 | { | ||
2306 | if ($current==null) { | ||
2307 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); | ||
2165 | } | 2308 | } |
2166 | { | 2309 | set( |
2167 | if ($current==null) { | 2310 | $current, |
2168 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | 2311 | "number", |
2169 | } | 2312 | lv_number_4_0, |
2170 | setWithLastConsumed( | 2313 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); |
2171 | $current, | 2314 | afterParserOrEnumRuleCall(); |
2172 | "max", | 2315 | } |
2173 | lv_max_7_0, | 2316 | ) |
2174 | "org.eclipse.xtext.common.Terminals.INT"); | 2317 | ) |
2318 | | | ||
2319 | ( | ||
2320 | ( | ||
2321 | { | ||
2322 | newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | ||
2323 | } | ||
2324 | lv_number_5_0=ruleIntervallNumber | ||
2325 | { | ||
2326 | if ($current==null) { | ||
2327 | $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); | ||
2175 | } | 2328 | } |
2176 | ) | 2329 | set( |
2330 | $current, | ||
2331 | "number", | ||
2332 | lv_number_5_0, | ||
2333 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | ||
2334 | afterParserOrEnumRuleCall(); | ||
2335 | } | ||
2177 | ) | 2336 | ) |
2178 | ) | 2337 | ) |
2179 | )? | 2338 | ) |
2180 | ) | 2339 | ) |
2181 | ; | 2340 | ; |
2182 | 2341 | ||
2183 | // Entry rule entryRuleTypeReference | 2342 | // Entry rule entryRuleIntegerTypeScope |
2184 | entryRuleTypeReference returns [EObject current=null]: | 2343 | entryRuleIntegerTypeScope returns [EObject current=null]: |
2185 | { newCompositeNode(grammarAccess.getTypeReferenceRule()); } | 2344 | { newCompositeNode(grammarAccess.getIntegerTypeScopeRule()); } |
2186 | iv_ruleTypeReference=ruleTypeReference | 2345 | iv_ruleIntegerTypeScope=ruleIntegerTypeScope |
2187 | { $current=$iv_ruleTypeReference.current; } | 2346 | { $current=$iv_ruleIntegerTypeScope.current; } |
2188 | EOF; | 2347 | EOF; |
2189 | 2348 | ||
2190 | // Rule TypeReference | 2349 | // Rule IntegerTypeScope |
2191 | ruleTypeReference returns [EObject current=null] | 2350 | ruleIntegerTypeScope returns [EObject current=null] |
2192 | @init { | 2351 | @init { |
2193 | enterRule(); | 2352 | enterRule(); |
2194 | } | 2353 | } |
@@ -2196,50 +2355,389 @@ ruleTypeReference returns [EObject current=null] | |||
2196 | leaveRule(); | 2355 | leaveRule(); |
2197 | }: | 2356 | }: |
2198 | ( | 2357 | ( |
2358 | otherlv_0='#' | ||
2199 | { | 2359 | { |
2200 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getClassReferenceParserRuleCall_0()); | 2360 | newLeafNode(otherlv_0, grammarAccess.getIntegerTypeScopeAccess().getNumberSignKeyword_0()); |
2201 | } | ||
2202 | this_ClassReference_0=ruleClassReference | ||
2203 | { | ||
2204 | $current = $this_ClassReference_0.current; | ||
2205 | afterParserOrEnumRuleCall(); | ||
2206 | } | ||
2207 | | | ||
2208 | { | ||
2209 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getObjectReferenceParserRuleCall_1()); | ||
2210 | } | ||
2211 | this_ObjectReference_1=ruleObjectReference | ||
2212 | { | ||
2213 | $current = $this_ObjectReference_1.current; | ||
2214 | afterParserOrEnumRuleCall(); | ||
2215 | } | ||
2216 | | | ||
2217 | { | ||
2218 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getIntegerReferenceParserRuleCall_2()); | ||
2219 | } | ||
2220 | this_IntegerReference_2=ruleIntegerReference | ||
2221 | { | ||
2222 | $current = $this_IntegerReference_2.current; | ||
2223 | afterParserOrEnumRuleCall(); | ||
2224 | } | ||
2225 | | | ||
2226 | { | ||
2227 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getRealReferenceParserRuleCall_3()); | ||
2228 | } | ||
2229 | this_RealReference_3=ruleRealReference | ||
2230 | { | ||
2231 | $current = $this_RealReference_3.current; | ||
2232 | afterParserOrEnumRuleCall(); | ||
2233 | } | 2361 | } |
2234 | | | 2362 | ( |
2363 | ( | ||
2364 | { | ||
2365 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getTypeIntegerReferenceParserRuleCall_1_0()); | ||
2366 | } | ||
2367 | lv_type_1_0=ruleIntegerReference | ||
2368 | { | ||
2369 | if ($current==null) { | ||
2370 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | ||
2371 | } | ||
2372 | set( | ||
2373 | $current, | ||
2374 | "type", | ||
2375 | lv_type_1_0, | ||
2376 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntegerReference"); | ||
2377 | afterParserOrEnumRuleCall(); | ||
2378 | } | ||
2379 | ) | ||
2380 | ) | ||
2381 | ( | ||
2382 | ( | ||
2383 | ( | ||
2384 | lv_setsNew_2_0='+=' | ||
2385 | { | ||
2386 | newLeafNode(lv_setsNew_2_0, grammarAccess.getIntegerTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | ||
2387 | } | ||
2388 | { | ||
2389 | if ($current==null) { | ||
2390 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); | ||
2391 | } | ||
2392 | setWithLastConsumed($current, "setsNew", true, "+="); | ||
2393 | } | ||
2394 | ) | ||
2395 | ) | ||
2396 | | | ||
2397 | ( | ||
2398 | ( | ||
2399 | lv_setsSum_3_0='=' | ||
2400 | { | ||
2401 | newLeafNode(lv_setsSum_3_0, grammarAccess.getIntegerTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | ||
2402 | } | ||
2403 | { | ||
2404 | if ($current==null) { | ||
2405 | $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); | ||
2406 | } | ||
2407 | setWithLastConsumed($current, "setsSum", true, "="); | ||
2408 | } | ||
2409 | ) | ||
2410 | ) | ||
2411 | ) | ||
2412 | ( | ||
2413 | ( | ||
2414 | ( | ||
2415 | { | ||
2416 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | ||
2417 | } | ||
2418 | lv_number_4_0=ruleExactNumber | ||
2419 | { | ||
2420 | if ($current==null) { | ||
2421 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | ||
2422 | } | ||
2423 | set( | ||
2424 | $current, | ||
2425 | "number", | ||
2426 | lv_number_4_0, | ||
2427 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | ||
2428 | afterParserOrEnumRuleCall(); | ||
2429 | } | ||
2430 | ) | ||
2431 | ) | ||
2432 | | | ||
2433 | ( | ||
2434 | ( | ||
2435 | { | ||
2436 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | ||
2437 | } | ||
2438 | lv_number_5_0=ruleIntervallNumber | ||
2439 | { | ||
2440 | if ($current==null) { | ||
2441 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | ||
2442 | } | ||
2443 | set( | ||
2444 | $current, | ||
2445 | "number", | ||
2446 | lv_number_5_0, | ||
2447 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | ||
2448 | afterParserOrEnumRuleCall(); | ||
2449 | } | ||
2450 | ) | ||
2451 | ) | ||
2452 | | | ||
2453 | ( | ||
2454 | ( | ||
2455 | { | ||
2456 | newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntEnumberationParserRuleCall_3_2_0()); | ||
2457 | } | ||
2458 | lv_number_6_0=ruleIntEnumberation | ||
2459 | { | ||
2460 | if ($current==null) { | ||
2461 | $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); | ||
2462 | } | ||
2463 | set( | ||
2464 | $current, | ||
2465 | "number", | ||
2466 | lv_number_6_0, | ||
2467 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntEnumberation"); | ||
2468 | afterParserOrEnumRuleCall(); | ||
2469 | } | ||
2470 | ) | ||
2471 | ) | ||
2472 | ) | ||
2473 | ) | ||
2474 | ; | ||
2475 | |||
2476 | // Entry rule entryRuleRealTypeScope | ||
2477 | entryRuleRealTypeScope returns [EObject current=null]: | ||
2478 | { newCompositeNode(grammarAccess.getRealTypeScopeRule()); } | ||
2479 | iv_ruleRealTypeScope=ruleRealTypeScope | ||
2480 | { $current=$iv_ruleRealTypeScope.current; } | ||
2481 | EOF; | ||
2482 | |||
2483 | // Rule RealTypeScope | ||
2484 | ruleRealTypeScope returns [EObject current=null] | ||
2485 | @init { | ||
2486 | enterRule(); | ||
2487 | } | ||
2488 | @after { | ||
2489 | leaveRule(); | ||
2490 | }: | ||
2491 | ( | ||
2492 | otherlv_0='#' | ||
2235 | { | 2493 | { |
2236 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getStringReferenceParserRuleCall_4()); | 2494 | newLeafNode(otherlv_0, grammarAccess.getRealTypeScopeAccess().getNumberSignKeyword_0()); |
2237 | } | 2495 | } |
2238 | this_StringReference_4=ruleStringReference | 2496 | ( |
2497 | ( | ||
2498 | { | ||
2499 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getTypeRealReferenceParserRuleCall_1_0()); | ||
2500 | } | ||
2501 | lv_type_1_0=ruleRealReference | ||
2502 | { | ||
2503 | if ($current==null) { | ||
2504 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | ||
2505 | } | ||
2506 | set( | ||
2507 | $current, | ||
2508 | "type", | ||
2509 | lv_type_1_0, | ||
2510 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealReference"); | ||
2511 | afterParserOrEnumRuleCall(); | ||
2512 | } | ||
2513 | ) | ||
2514 | ) | ||
2515 | ( | ||
2516 | ( | ||
2517 | ( | ||
2518 | lv_setsNew_2_0='+=' | ||
2519 | { | ||
2520 | newLeafNode(lv_setsNew_2_0, grammarAccess.getRealTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | ||
2521 | } | ||
2522 | { | ||
2523 | if ($current==null) { | ||
2524 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); | ||
2525 | } | ||
2526 | setWithLastConsumed($current, "setsNew", true, "+="); | ||
2527 | } | ||
2528 | ) | ||
2529 | ) | ||
2530 | | | ||
2531 | ( | ||
2532 | ( | ||
2533 | lv_setsSum_3_0='=' | ||
2534 | { | ||
2535 | newLeafNode(lv_setsSum_3_0, grammarAccess.getRealTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | ||
2536 | } | ||
2537 | { | ||
2538 | if ($current==null) { | ||
2539 | $current = createModelElement(grammarAccess.getRealTypeScopeRule()); | ||
2540 | } | ||
2541 | setWithLastConsumed($current, "setsSum", true, "="); | ||
2542 | } | ||
2543 | ) | ||
2544 | ) | ||
2545 | ) | ||
2546 | ( | ||
2547 | ( | ||
2548 | ( | ||
2549 | { | ||
2550 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | ||
2551 | } | ||
2552 | lv_number_4_0=ruleExactNumber | ||
2553 | { | ||
2554 | if ($current==null) { | ||
2555 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | ||
2556 | } | ||
2557 | set( | ||
2558 | $current, | ||
2559 | "number", | ||
2560 | lv_number_4_0, | ||
2561 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | ||
2562 | afterParserOrEnumRuleCall(); | ||
2563 | } | ||
2564 | ) | ||
2565 | ) | ||
2566 | | | ||
2567 | ( | ||
2568 | ( | ||
2569 | { | ||
2570 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | ||
2571 | } | ||
2572 | lv_number_5_0=ruleIntervallNumber | ||
2573 | { | ||
2574 | if ($current==null) { | ||
2575 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | ||
2576 | } | ||
2577 | set( | ||
2578 | $current, | ||
2579 | "number", | ||
2580 | lv_number_5_0, | ||
2581 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | ||
2582 | afterParserOrEnumRuleCall(); | ||
2583 | } | ||
2584 | ) | ||
2585 | ) | ||
2586 | | | ||
2587 | ( | ||
2588 | ( | ||
2589 | { | ||
2590 | newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberRealEnumerationParserRuleCall_3_2_0()); | ||
2591 | } | ||
2592 | lv_number_6_0=ruleRealEnumeration | ||
2593 | { | ||
2594 | if ($current==null) { | ||
2595 | $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); | ||
2596 | } | ||
2597 | set( | ||
2598 | $current, | ||
2599 | "number", | ||
2600 | lv_number_6_0, | ||
2601 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealEnumeration"); | ||
2602 | afterParserOrEnumRuleCall(); | ||
2603 | } | ||
2604 | ) | ||
2605 | ) | ||
2606 | ) | ||
2607 | ) | ||
2608 | ; | ||
2609 | |||
2610 | // Entry rule entryRuleStringTypeScope | ||
2611 | entryRuleStringTypeScope returns [EObject current=null]: | ||
2612 | { newCompositeNode(grammarAccess.getStringTypeScopeRule()); } | ||
2613 | iv_ruleStringTypeScope=ruleStringTypeScope | ||
2614 | { $current=$iv_ruleStringTypeScope.current; } | ||
2615 | EOF; | ||
2616 | |||
2617 | // Rule StringTypeScope | ||
2618 | ruleStringTypeScope returns [EObject current=null] | ||
2619 | @init { | ||
2620 | enterRule(); | ||
2621 | } | ||
2622 | @after { | ||
2623 | leaveRule(); | ||
2624 | }: | ||
2625 | ( | ||
2626 | otherlv_0='#' | ||
2239 | { | 2627 | { |
2240 | $current = $this_StringReference_4.current; | 2628 | newLeafNode(otherlv_0, grammarAccess.getStringTypeScopeAccess().getNumberSignKeyword_0()); |
2241 | afterParserOrEnumRuleCall(); | ||
2242 | } | 2629 | } |
2630 | ( | ||
2631 | ( | ||
2632 | { | ||
2633 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getTypeStringReferenceParserRuleCall_1_0()); | ||
2634 | } | ||
2635 | lv_type_1_0=ruleStringReference | ||
2636 | { | ||
2637 | if ($current==null) { | ||
2638 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | ||
2639 | } | ||
2640 | set( | ||
2641 | $current, | ||
2642 | "type", | ||
2643 | lv_type_1_0, | ||
2644 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringReference"); | ||
2645 | afterParserOrEnumRuleCall(); | ||
2646 | } | ||
2647 | ) | ||
2648 | ) | ||
2649 | ( | ||
2650 | ( | ||
2651 | ( | ||
2652 | lv_setsNew_2_0='+=' | ||
2653 | { | ||
2654 | newLeafNode(lv_setsNew_2_0, grammarAccess.getStringTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); | ||
2655 | } | ||
2656 | { | ||
2657 | if ($current==null) { | ||
2658 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); | ||
2659 | } | ||
2660 | setWithLastConsumed($current, "setsNew", true, "+="); | ||
2661 | } | ||
2662 | ) | ||
2663 | ) | ||
2664 | | | ||
2665 | ( | ||
2666 | ( | ||
2667 | lv_setsSum_3_0='=' | ||
2668 | { | ||
2669 | newLeafNode(lv_setsSum_3_0, grammarAccess.getStringTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); | ||
2670 | } | ||
2671 | { | ||
2672 | if ($current==null) { | ||
2673 | $current = createModelElement(grammarAccess.getStringTypeScopeRule()); | ||
2674 | } | ||
2675 | setWithLastConsumed($current, "setsSum", true, "="); | ||
2676 | } | ||
2677 | ) | ||
2678 | ) | ||
2679 | ) | ||
2680 | ( | ||
2681 | ( | ||
2682 | ( | ||
2683 | { | ||
2684 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); | ||
2685 | } | ||
2686 | lv_number_4_0=ruleExactNumber | ||
2687 | { | ||
2688 | if ($current==null) { | ||
2689 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | ||
2690 | } | ||
2691 | set( | ||
2692 | $current, | ||
2693 | "number", | ||
2694 | lv_number_4_0, | ||
2695 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); | ||
2696 | afterParserOrEnumRuleCall(); | ||
2697 | } | ||
2698 | ) | ||
2699 | ) | ||
2700 | | | ||
2701 | ( | ||
2702 | ( | ||
2703 | { | ||
2704 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); | ||
2705 | } | ||
2706 | lv_number_5_0=ruleIntervallNumber | ||
2707 | { | ||
2708 | if ($current==null) { | ||
2709 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | ||
2710 | } | ||
2711 | set( | ||
2712 | $current, | ||
2713 | "number", | ||
2714 | lv_number_5_0, | ||
2715 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); | ||
2716 | afterParserOrEnumRuleCall(); | ||
2717 | } | ||
2718 | ) | ||
2719 | ) | ||
2720 | | | ||
2721 | ( | ||
2722 | ( | ||
2723 | { | ||
2724 | newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberStringEnumerationParserRuleCall_3_2_0()); | ||
2725 | } | ||
2726 | lv_number_6_0=ruleStringEnumeration | ||
2727 | { | ||
2728 | if ($current==null) { | ||
2729 | $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); | ||
2730 | } | ||
2731 | set( | ||
2732 | $current, | ||
2733 | "number", | ||
2734 | lv_number_6_0, | ||
2735 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringEnumeration"); | ||
2736 | afterParserOrEnumRuleCall(); | ||
2737 | } | ||
2738 | ) | ||
2739 | ) | ||
2740 | ) | ||
2243 | ) | 2741 | ) |
2244 | ; | 2742 | ; |
2245 | 2743 | ||
@@ -2409,6 +2907,368 @@ ruleStringReference returns [EObject current=null] | |||
2409 | ) | 2907 | ) |
2410 | ; | 2908 | ; |
2411 | 2909 | ||
2910 | // Entry rule entryRuleExactNumber | ||
2911 | entryRuleExactNumber returns [EObject current=null]: | ||
2912 | { newCompositeNode(grammarAccess.getExactNumberRule()); } | ||
2913 | iv_ruleExactNumber=ruleExactNumber | ||
2914 | { $current=$iv_ruleExactNumber.current; } | ||
2915 | EOF; | ||
2916 | |||
2917 | // Rule ExactNumber | ||
2918 | ruleExactNumber returns [EObject current=null] | ||
2919 | @init { | ||
2920 | enterRule(); | ||
2921 | } | ||
2922 | @after { | ||
2923 | leaveRule(); | ||
2924 | }: | ||
2925 | ( | ||
2926 | ( | ||
2927 | ( | ||
2928 | lv_exactNumber_0_0=RULE_INT | ||
2929 | { | ||
2930 | newLeafNode(lv_exactNumber_0_0, grammarAccess.getExactNumberAccess().getExactNumberINTTerminalRuleCall_0_0()); | ||
2931 | } | ||
2932 | { | ||
2933 | if ($current==null) { | ||
2934 | $current = createModelElement(grammarAccess.getExactNumberRule()); | ||
2935 | } | ||
2936 | setWithLastConsumed( | ||
2937 | $current, | ||
2938 | "exactNumber", | ||
2939 | lv_exactNumber_0_0, | ||
2940 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2941 | } | ||
2942 | ) | ||
2943 | ) | ||
2944 | | | ||
2945 | ( | ||
2946 | ( | ||
2947 | lv_exactUnlimited_1_0='*' | ||
2948 | { | ||
2949 | newLeafNode(lv_exactUnlimited_1_0, grammarAccess.getExactNumberAccess().getExactUnlimitedAsteriskKeyword_1_0()); | ||
2950 | } | ||
2951 | { | ||
2952 | if ($current==null) { | ||
2953 | $current = createModelElement(grammarAccess.getExactNumberRule()); | ||
2954 | } | ||
2955 | setWithLastConsumed($current, "exactUnlimited", true, "*"); | ||
2956 | } | ||
2957 | ) | ||
2958 | ) | ||
2959 | ) | ||
2960 | ; | ||
2961 | |||
2962 | // Entry rule entryRuleIntervallNumber | ||
2963 | entryRuleIntervallNumber returns [EObject current=null]: | ||
2964 | { newCompositeNode(grammarAccess.getIntervallNumberRule()); } | ||
2965 | iv_ruleIntervallNumber=ruleIntervallNumber | ||
2966 | { $current=$iv_ruleIntervallNumber.current; } | ||
2967 | EOF; | ||
2968 | |||
2969 | // Rule IntervallNumber | ||
2970 | ruleIntervallNumber returns [EObject current=null] | ||
2971 | @init { | ||
2972 | enterRule(); | ||
2973 | } | ||
2974 | @after { | ||
2975 | leaveRule(); | ||
2976 | }: | ||
2977 | ( | ||
2978 | ( | ||
2979 | ( | ||
2980 | lv_min_0_0=RULE_INT | ||
2981 | { | ||
2982 | newLeafNode(lv_min_0_0, grammarAccess.getIntervallNumberAccess().getMinINTTerminalRuleCall_0_0()); | ||
2983 | } | ||
2984 | { | ||
2985 | if ($current==null) { | ||
2986 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); | ||
2987 | } | ||
2988 | setWithLastConsumed( | ||
2989 | $current, | ||
2990 | "min", | ||
2991 | lv_min_0_0, | ||
2992 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2993 | } | ||
2994 | ) | ||
2995 | ) | ||
2996 | otherlv_1='..' | ||
2997 | { | ||
2998 | newLeafNode(otherlv_1, grammarAccess.getIntervallNumberAccess().getFullStopFullStopKeyword_1()); | ||
2999 | } | ||
3000 | ( | ||
3001 | ( | ||
3002 | ( | ||
3003 | lv_maxNumber_2_0=RULE_INT | ||
3004 | { | ||
3005 | newLeafNode(lv_maxNumber_2_0, grammarAccess.getIntervallNumberAccess().getMaxNumberINTTerminalRuleCall_2_0_0()); | ||
3006 | } | ||
3007 | { | ||
3008 | if ($current==null) { | ||
3009 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); | ||
3010 | } | ||
3011 | setWithLastConsumed( | ||
3012 | $current, | ||
3013 | "maxNumber", | ||
3014 | lv_maxNumber_2_0, | ||
3015 | "org.eclipse.xtext.common.Terminals.INT"); | ||
3016 | } | ||
3017 | ) | ||
3018 | ) | ||
3019 | | | ||
3020 | ( | ||
3021 | ( | ||
3022 | lv_maxUnlimited_3_0='*' | ||
3023 | { | ||
3024 | newLeafNode(lv_maxUnlimited_3_0, grammarAccess.getIntervallNumberAccess().getMaxUnlimitedAsteriskKeyword_2_1_0()); | ||
3025 | } | ||
3026 | { | ||
3027 | if ($current==null) { | ||
3028 | $current = createModelElement(grammarAccess.getIntervallNumberRule()); | ||
3029 | } | ||
3030 | setWithLastConsumed($current, "maxUnlimited", true, "*"); | ||
3031 | } | ||
3032 | ) | ||
3033 | ) | ||
3034 | ) | ||
3035 | ) | ||
3036 | ; | ||
3037 | |||
3038 | // Entry rule entryRuleIntEnumberation | ||
3039 | entryRuleIntEnumberation returns [EObject current=null]: | ||
3040 | { newCompositeNode(grammarAccess.getIntEnumberationRule()); } | ||
3041 | iv_ruleIntEnumberation=ruleIntEnumberation | ||
3042 | { $current=$iv_ruleIntEnumberation.current; } | ||
3043 | EOF; | ||
3044 | |||
3045 | // Rule IntEnumberation | ||
3046 | ruleIntEnumberation returns [EObject current=null] | ||
3047 | @init { | ||
3048 | enterRule(); | ||
3049 | } | ||
3050 | @after { | ||
3051 | leaveRule(); | ||
3052 | }: | ||
3053 | ( | ||
3054 | ( | ||
3055 | { | ||
3056 | $current = forceCreateModelElement( | ||
3057 | grammarAccess.getIntEnumberationAccess().getIntEnumberationAction_0(), | ||
3058 | $current); | ||
3059 | } | ||
3060 | ) | ||
3061 | otherlv_1='{' | ||
3062 | { | ||
3063 | newLeafNode(otherlv_1, grammarAccess.getIntEnumberationAccess().getLeftCurlyBracketKeyword_1()); | ||
3064 | } | ||
3065 | ( | ||
3066 | ( | ||
3067 | ( | ||
3068 | lv_entry_2_0=RULE_INT | ||
3069 | { | ||
3070 | newLeafNode(lv_entry_2_0, grammarAccess.getIntEnumberationAccess().getEntryINTTerminalRuleCall_2_0_0()); | ||
3071 | } | ||
3072 | { | ||
3073 | if ($current==null) { | ||
3074 | $current = createModelElement(grammarAccess.getIntEnumberationRule()); | ||
3075 | } | ||
3076 | addWithLastConsumed( | ||
3077 | $current, | ||
3078 | "entry", | ||
3079 | lv_entry_2_0, | ||
3080 | "org.eclipse.xtext.common.Terminals.INT"); | ||
3081 | } | ||
3082 | ) | ||
3083 | ) | ||
3084 | ( | ||
3085 | otherlv_3=',' | ||
3086 | { | ||
3087 | newLeafNode(otherlv_3, grammarAccess.getIntEnumberationAccess().getCommaKeyword_2_1_0()); | ||
3088 | } | ||
3089 | ( | ||
3090 | ( | ||
3091 | lv_entry_4_0=RULE_INT | ||
3092 | { | ||
3093 | newLeafNode(lv_entry_4_0, grammarAccess.getIntEnumberationAccess().getEntryINTTerminalRuleCall_2_1_1_0()); | ||
3094 | } | ||
3095 | { | ||
3096 | if ($current==null) { | ||
3097 | $current = createModelElement(grammarAccess.getIntEnumberationRule()); | ||
3098 | } | ||
3099 | addWithLastConsumed( | ||
3100 | $current, | ||
3101 | "entry", | ||
3102 | lv_entry_4_0, | ||
3103 | "org.eclipse.xtext.common.Terminals.INT"); | ||
3104 | } | ||
3105 | ) | ||
3106 | ) | ||
3107 | )* | ||
3108 | )? | ||
3109 | otherlv_5='}' | ||
3110 | { | ||
3111 | newLeafNode(otherlv_5, grammarAccess.getIntEnumberationAccess().getRightCurlyBracketKeyword_3()); | ||
3112 | } | ||
3113 | ) | ||
3114 | ; | ||
3115 | |||
3116 | // Entry rule entryRuleRealEnumeration | ||
3117 | entryRuleRealEnumeration returns [EObject current=null]: | ||
3118 | { newCompositeNode(grammarAccess.getRealEnumerationRule()); } | ||
3119 | iv_ruleRealEnumeration=ruleRealEnumeration | ||
3120 | { $current=$iv_ruleRealEnumeration.current; } | ||
3121 | EOF; | ||
3122 | |||
3123 | // Rule RealEnumeration | ||
3124 | ruleRealEnumeration returns [EObject current=null] | ||
3125 | @init { | ||
3126 | enterRule(); | ||
3127 | } | ||
3128 | @after { | ||
3129 | leaveRule(); | ||
3130 | }: | ||
3131 | ( | ||
3132 | ( | ||
3133 | { | ||
3134 | $current = forceCreateModelElement( | ||
3135 | grammarAccess.getRealEnumerationAccess().getRealEnumerationAction_0(), | ||
3136 | $current); | ||
3137 | } | ||
3138 | ) | ||
3139 | otherlv_1='{' | ||
3140 | { | ||
3141 | newLeafNode(otherlv_1, grammarAccess.getRealEnumerationAccess().getLeftCurlyBracketKeyword_1()); | ||
3142 | } | ||
3143 | ( | ||
3144 | ( | ||
3145 | ( | ||
3146 | lv_entry_2_0=RULE_INT | ||
3147 | { | ||
3148 | newLeafNode(lv_entry_2_0, grammarAccess.getRealEnumerationAccess().getEntryINTTerminalRuleCall_2_0_0()); | ||
3149 | } | ||
3150 | { | ||
3151 | if ($current==null) { | ||
3152 | $current = createModelElement(grammarAccess.getRealEnumerationRule()); | ||
3153 | } | ||
3154 | addWithLastConsumed( | ||
3155 | $current, | ||
3156 | "entry", | ||
3157 | lv_entry_2_0, | ||
3158 | "org.eclipse.xtext.common.Terminals.INT"); | ||
3159 | } | ||
3160 | ) | ||
3161 | ) | ||
3162 | ( | ||
3163 | otherlv_3=',' | ||
3164 | { | ||
3165 | newLeafNode(otherlv_3, grammarAccess.getRealEnumerationAccess().getCommaKeyword_2_1_0()); | ||
3166 | } | ||
3167 | ( | ||
3168 | ( | ||
3169 | lv_entry_4_0=RULE_INT | ||
3170 | { | ||
3171 | newLeafNode(lv_entry_4_0, grammarAccess.getRealEnumerationAccess().getEntryINTTerminalRuleCall_2_1_1_0()); | ||
3172 | } | ||
3173 | { | ||
3174 | if ($current==null) { | ||
3175 | $current = createModelElement(grammarAccess.getRealEnumerationRule()); | ||
3176 | } | ||
3177 | addWithLastConsumed( | ||
3178 | $current, | ||
3179 | "entry", | ||
3180 | lv_entry_4_0, | ||
3181 | "org.eclipse.xtext.common.Terminals.INT"); | ||
3182 | } | ||
3183 | ) | ||
3184 | ) | ||
3185 | )* | ||
3186 | )? | ||
3187 | otherlv_5='}' | ||
3188 | { | ||
3189 | newLeafNode(otherlv_5, grammarAccess.getRealEnumerationAccess().getRightCurlyBracketKeyword_3()); | ||
3190 | } | ||
3191 | ) | ||
3192 | ; | ||
3193 | |||
3194 | // Entry rule entryRuleStringEnumeration | ||
3195 | entryRuleStringEnumeration returns [EObject current=null]: | ||
3196 | { newCompositeNode(grammarAccess.getStringEnumerationRule()); } | ||
3197 | iv_ruleStringEnumeration=ruleStringEnumeration | ||
3198 | { $current=$iv_ruleStringEnumeration.current; } | ||
3199 | EOF; | ||
3200 | |||
3201 | // Rule StringEnumeration | ||
3202 | ruleStringEnumeration returns [EObject current=null] | ||
3203 | @init { | ||
3204 | enterRule(); | ||
3205 | } | ||
3206 | @after { | ||
3207 | leaveRule(); | ||
3208 | }: | ||
3209 | ( | ||
3210 | ( | ||
3211 | { | ||
3212 | $current = forceCreateModelElement( | ||
3213 | grammarAccess.getStringEnumerationAccess().getStringEnumerationAction_0(), | ||
3214 | $current); | ||
3215 | } | ||
3216 | ) | ||
3217 | otherlv_1='{' | ||
3218 | { | ||
3219 | newLeafNode(otherlv_1, grammarAccess.getStringEnumerationAccess().getLeftCurlyBracketKeyword_1()); | ||
3220 | } | ||
3221 | ( | ||
3222 | ( | ||
3223 | ( | ||
3224 | lv_entry_2_0=RULE_STRING | ||
3225 | { | ||
3226 | newLeafNode(lv_entry_2_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_0_0()); | ||
3227 | } | ||
3228 | { | ||
3229 | if ($current==null) { | ||
3230 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); | ||
3231 | } | ||
3232 | addWithLastConsumed( | ||
3233 | $current, | ||
3234 | "entry", | ||
3235 | lv_entry_2_0, | ||
3236 | "org.eclipse.xtext.common.Terminals.STRING"); | ||
3237 | } | ||
3238 | ) | ||
3239 | ) | ||
3240 | ( | ||
3241 | otherlv_3=',' | ||
3242 | { | ||
3243 | newLeafNode(otherlv_3, grammarAccess.getStringEnumerationAccess().getCommaKeyword_2_1_0()); | ||
3244 | } | ||
3245 | ( | ||
3246 | ( | ||
3247 | lv_entry_4_0=RULE_STRING | ||
3248 | { | ||
3249 | newLeafNode(lv_entry_4_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_1_1_0()); | ||
3250 | } | ||
3251 | { | ||
3252 | if ($current==null) { | ||
3253 | $current = createModelElement(grammarAccess.getStringEnumerationRule()); | ||
3254 | } | ||
3255 | addWithLastConsumed( | ||
3256 | $current, | ||
3257 | "entry", | ||
3258 | lv_entry_4_0, | ||
3259 | "org.eclipse.xtext.common.Terminals.STRING"); | ||
3260 | } | ||
3261 | ) | ||
3262 | ) | ||
3263 | )* | ||
3264 | )? | ||
3265 | otherlv_5='}' | ||
3266 | { | ||
3267 | newLeafNode(otherlv_5, grammarAccess.getStringEnumerationAccess().getRightCurlyBracketKeyword_3()); | ||
3268 | } | ||
3269 | ) | ||
3270 | ; | ||
3271 | |||
2412 | // Entry rule entryRuleScopeDeclaration | 3272 | // Entry rule entryRuleScopeDeclaration |
2413 | entryRuleScopeDeclaration returns [EObject current=null]: | 3273 | entryRuleScopeDeclaration returns [EObject current=null]: |
2414 | { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } | 3274 | { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } |
@@ -2755,10 +3615,20 @@ ruleGenerationTask returns [EObject current=null] | |||
2755 | { | 3615 | { |
2756 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4); | 3616 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4); |
2757 | } | 3617 | } |
2758 | ({true}?=>(otherlv_16='number' | 3618 | ({true}?=>(( |
2759 | { | 3619 | ( |
2760 | newLeafNode(otherlv_16, grammarAccess.getGenerationTaskAccess().getNumberKeyword_3_4_0()); | 3620 | lv_numberSpecified_16_0='number' |
2761 | } | 3621 | { |
3622 | newLeafNode(lv_numberSpecified_16_0, grammarAccess.getGenerationTaskAccess().getNumberSpecifiedNumberKeyword_3_4_0_0()); | ||
3623 | } | ||
3624 | { | ||
3625 | if ($current==null) { | ||
3626 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
3627 | } | ||
3628 | setWithLastConsumed($current, "numberSpecified", true, "number"); | ||
3629 | } | ||
3630 | ) | ||
3631 | ) | ||
2762 | otherlv_17='=' | 3632 | otherlv_17='=' |
2763 | { | 3633 | { |
2764 | newLeafNode(otherlv_17, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_4_1()); | 3634 | newLeafNode(otherlv_17, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_4_1()); |
@@ -2792,10 +3662,20 @@ ruleGenerationTask returns [EObject current=null] | |||
2792 | { | 3662 | { |
2793 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5); | 3663 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5); |
2794 | } | 3664 | } |
2795 | ({true}?=>(otherlv_19='runs' | 3665 | ({true}?=>(( |
2796 | { | 3666 | ( |
2797 | newLeafNode(otherlv_19, grammarAccess.getGenerationTaskAccess().getRunsKeyword_3_5_0()); | 3667 | lv_runSpecified_19_0='runs' |
2798 | } | 3668 | { |
3669 | newLeafNode(lv_runSpecified_19_0, grammarAccess.getGenerationTaskAccess().getRunSpecifiedRunsKeyword_3_5_0_0()); | ||
3670 | } | ||
3671 | { | ||
3672 | if ($current==null) { | ||
3673 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
3674 | } | ||
3675 | setWithLastConsumed($current, "runSpecified", true, "runs"); | ||
3676 | } | ||
3677 | ) | ||
3678 | ) | ||
2799 | otherlv_20='=' | 3679 | otherlv_20='=' |
2800 | { | 3680 | { |
2801 | newLeafNode(otherlv_20, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_5_1()); | 3681 | newLeafNode(otherlv_20, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_5_1()); |
@@ -2905,9 +3785,9 @@ ruleGenerationTask returns [EObject current=null] | |||
2905 | { | 3785 | { |
2906 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8); | 3786 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8); |
2907 | } | 3787 | } |
2908 | ({true}?=>(otherlv_28='output' | 3788 | ({true}?=>(otherlv_28='debug' |
2909 | { | 3789 | { |
2910 | newLeafNode(otherlv_28, grammarAccess.getGenerationTaskAccess().getOutputKeyword_3_8_0()); | 3790 | newLeafNode(otherlv_28, grammarAccess.getGenerationTaskAccess().getDebugKeyword_3_8_0()); |
2911 | } | 3791 | } |
2912 | otherlv_29='=' | 3792 | otherlv_29='=' |
2913 | { | 3793 | { |
@@ -2916,17 +3796,17 @@ ruleGenerationTask returns [EObject current=null] | |||
2916 | ( | 3796 | ( |
2917 | ( | 3797 | ( |
2918 | { | 3798 | { |
2919 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTagetFolderFileParserRuleCall_3_8_2_0()); | 3799 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getDebugFolderFileParserRuleCall_3_8_2_0()); |
2920 | } | 3800 | } |
2921 | lv_tagetFolder_30_0=ruleFile | 3801 | lv_debugFolder_30_0=ruleFile |
2922 | { | 3802 | { |
2923 | if ($current==null) { | 3803 | if ($current==null) { |
2924 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3804 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); |
2925 | } | 3805 | } |
2926 | set( | 3806 | set( |
2927 | $current, | 3807 | $current, |
2928 | "tagetFolder", | 3808 | "debugFolder", |
2929 | lv_tagetFolder_30_0, | 3809 | lv_debugFolder_30_0, |
2930 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 3810 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); |
2931 | afterParserOrEnumRuleCall(); | 3811 | afterParserOrEnumRuleCall(); |
2932 | } | 3812 | } |
@@ -2943,9 +3823,9 @@ ruleGenerationTask returns [EObject current=null] | |||
2943 | { | 3823 | { |
2944 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9); | 3824 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9); |
2945 | } | 3825 | } |
2946 | ({true}?=>(otherlv_31='debug' | 3826 | ({true}?=>(otherlv_31='log' |
2947 | { | 3827 | { |
2948 | newLeafNode(otherlv_31, grammarAccess.getGenerationTaskAccess().getDebugKeyword_3_9_0()); | 3828 | newLeafNode(otherlv_31, grammarAccess.getGenerationTaskAccess().getLogKeyword_3_9_0()); |
2949 | } | 3829 | } |
2950 | otherlv_32='=' | 3830 | otherlv_32='=' |
2951 | { | 3831 | { |
@@ -2954,17 +3834,17 @@ ruleGenerationTask returns [EObject current=null] | |||
2954 | ( | 3834 | ( |
2955 | ( | 3835 | ( |
2956 | { | 3836 | { |
2957 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getDebugFolderFileParserRuleCall_3_9_2_0()); | 3837 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetLogFileFileParserRuleCall_3_9_2_0()); |
2958 | } | 3838 | } |
2959 | lv_debugFolder_33_0=ruleFile | 3839 | lv_targetLogFile_33_0=ruleFile |
2960 | { | 3840 | { |
2961 | if ($current==null) { | 3841 | if ($current==null) { |
2962 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3842 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); |
2963 | } | 3843 | } |
2964 | set( | 3844 | set( |
2965 | $current, | 3845 | $current, |
2966 | "debugFolder", | 3846 | "targetLogFile", |
2967 | lv_debugFolder_33_0, | 3847 | lv_targetLogFile_33_0, |
2968 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 3848 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); |
2969 | afterParserOrEnumRuleCall(); | 3849 | afterParserOrEnumRuleCall(); |
2970 | } | 3850 | } |
@@ -2981,9 +3861,9 @@ ruleGenerationTask returns [EObject current=null] | |||
2981 | { | 3861 | { |
2982 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10); | 3862 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10); |
2983 | } | 3863 | } |
2984 | ({true}?=>(otherlv_34='log' | 3864 | ({true}?=>(otherlv_34='statistics' |
2985 | { | 3865 | { |
2986 | newLeafNode(otherlv_34, grammarAccess.getGenerationTaskAccess().getLogKeyword_3_10_0()); | 3866 | newLeafNode(otherlv_34, grammarAccess.getGenerationTaskAccess().getStatisticsKeyword_3_10_0()); |
2987 | } | 3867 | } |
2988 | otherlv_35='=' | 3868 | otherlv_35='=' |
2989 | { | 3869 | { |
@@ -2992,17 +3872,17 @@ ruleGenerationTask returns [EObject current=null] | |||
2992 | ( | 3872 | ( |
2993 | ( | 3873 | ( |
2994 | { | 3874 | { |
2995 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetLogFileFileParserRuleCall_3_10_2_0()); | 3875 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetStatisticsFileFileParserRuleCall_3_10_2_0()); |
2996 | } | 3876 | } |
2997 | lv_targetLogFile_36_0=ruleFile | 3877 | lv_targetStatisticsFile_36_0=ruleFile |
2998 | { | 3878 | { |
2999 | if ($current==null) { | 3879 | if ($current==null) { |
3000 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3880 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); |
3001 | } | 3881 | } |
3002 | set( | 3882 | set( |
3003 | $current, | 3883 | $current, |
3004 | "targetLogFile", | 3884 | "targetStatisticsFile", |
3005 | lv_targetLogFile_36_0, | 3885 | lv_targetStatisticsFile_36_0, |
3006 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 3886 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); |
3007 | afterParserOrEnumRuleCall(); | 3887 | afterParserOrEnumRuleCall(); |
3008 | } | 3888 | } |
@@ -3019,9 +3899,9 @@ ruleGenerationTask returns [EObject current=null] | |||
3019 | { | 3899 | { |
3020 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11); | 3900 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11); |
3021 | } | 3901 | } |
3022 | ({true}?=>(otherlv_37='statistics' | 3902 | ({true}?=>(otherlv_37='output' |
3023 | { | 3903 | { |
3024 | newLeafNode(otherlv_37, grammarAccess.getGenerationTaskAccess().getStatisticsKeyword_3_11_0()); | 3904 | newLeafNode(otherlv_37, grammarAccess.getGenerationTaskAccess().getOutputKeyword_3_11_0()); |
3025 | } | 3905 | } |
3026 | otherlv_38='=' | 3906 | otherlv_38='=' |
3027 | { | 3907 | { |
@@ -3030,17 +3910,17 @@ ruleGenerationTask returns [EObject current=null] | |||
3030 | ( | 3910 | ( |
3031 | ( | 3911 | ( |
3032 | { | 3912 | { |
3033 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetStatisticsFileFileParserRuleCall_3_11_2_0()); | 3913 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTagetFolderFileParserRuleCall_3_11_2_0()); |
3034 | } | 3914 | } |
3035 | lv_targetStatisticsFile_39_0=ruleFile | 3915 | lv_tagetFolder_39_0=ruleFile |
3036 | { | 3916 | { |
3037 | if ($current==null) { | 3917 | if ($current==null) { |
3038 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | 3918 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); |
3039 | } | 3919 | } |
3040 | set( | 3920 | set( |
3041 | $current, | 3921 | $current, |
3042 | "targetStatisticsFile", | 3922 | "tagetFolder", |
3043 | lv_targetStatisticsFile_39_0, | 3923 | lv_tagetFolder_39_0, |
3044 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | 3924 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); |
3045 | afterParserOrEnumRuleCall(); | 3925 | afterParserOrEnumRuleCall(); |
3046 | } | 3926 | } |