aboutsummaryrefslogtreecommitdiffstats
path: root/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g
diff options
context:
space:
mode:
Diffstat (limited to 'language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g')
-rw-r--r--language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g655
1 files changed, 619 insertions, 36 deletions
diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g
index 3a368756..4ef02d71 100644
--- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g
+++ b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g
@@ -181,11 +181,20 @@ ruleStatement returns [EObject current=null]
181 } 181 }
182 | 182 |
183 { 183 {
184 newCompositeNode(grammarAccess.getStatementAccess().getScopeDeclarationParserRuleCall_4()); 184 newCompositeNode(grammarAccess.getStatementAccess().getNodeValueAssertionParserRuleCall_4());
185 } 185 }
186 this_ScopeDeclaration_4=ruleScopeDeclaration 186 this_NodeValueAssertion_4=ruleNodeValueAssertion
187 { 187 {
188 $current = $this_ScopeDeclaration_4.current; 188 $current = $this_NodeValueAssertion_4.current;
189 afterParserOrEnumRuleCall();
190 }
191 |
192 {
193 newCompositeNode(grammarAccess.getStatementAccess().getScopeDeclarationParserRuleCall_5());
194 }
195 this_ScopeDeclaration_5=ruleScopeDeclaration
196 {
197 $current = $this_ScopeDeclaration_5.current;
189 afterParserOrEnumRuleCall(); 198 afterParserOrEnumRuleCall();
190 } 199 }
191 ) 200 )
@@ -1102,14 +1111,50 @@ ruleArgument returns [EObject current=null]
1102 leaveRule(); 1111 leaveRule();
1103}: 1112}:
1104 ( 1113 (
1114 {
1115 newCompositeNode(grammarAccess.getArgumentAccess().getVariableOrNodeArgumentParserRuleCall_0());
1116 }
1117 this_VariableOrNodeArgument_0=ruleVariableOrNodeArgument
1118 {
1119 $current = $this_VariableOrNodeArgument_0.current;
1120 afterParserOrEnumRuleCall();
1121 }
1122 |
1123 {
1124 newCompositeNode(grammarAccess.getArgumentAccess().getConstantArgumentParserRuleCall_1());
1125 }
1126 this_ConstantArgument_1=ruleConstantArgument
1127 {
1128 $current = $this_ConstantArgument_1.current;
1129 afterParserOrEnumRuleCall();
1130 }
1131 )
1132;
1133
1134// Entry rule entryRuleVariableOrNodeArgument
1135entryRuleVariableOrNodeArgument returns [EObject current=null]:
1136 { newCompositeNode(grammarAccess.getVariableOrNodeArgumentRule()); }
1137 iv_ruleVariableOrNodeArgument=ruleVariableOrNodeArgument
1138 { $current=$iv_ruleVariableOrNodeArgument.current; }
1139 EOF;
1140
1141// Rule VariableOrNodeArgument
1142ruleVariableOrNodeArgument returns [EObject current=null]
1143@init {
1144 enterRule();
1145}
1146@after {
1147 leaveRule();
1148}:
1149 (
1105 ( 1150 (
1106 { 1151 {
1107 if ($current==null) { 1152 if ($current==null) {
1108 $current = createModelElement(grammarAccess.getArgumentRule()); 1153 $current = createModelElement(grammarAccess.getVariableOrNodeArgumentRule());
1109 } 1154 }
1110 } 1155 }
1111 { 1156 {
1112 newCompositeNode(grammarAccess.getArgumentAccess().getVariableOrNodeVariableOrNodeCrossReference_0()); 1157 newCompositeNode(grammarAccess.getVariableOrNodeArgumentAccess().getVariableOrNodeVariableOrNodeCrossReference_0());
1113 } 1158 }
1114 ruleQualifiedName 1159 ruleQualifiedName
1115 { 1160 {
@@ -1119,6 +1164,42 @@ ruleArgument returns [EObject current=null]
1119 ) 1164 )
1120; 1165;
1121 1166
1167// Entry rule entryRuleConstantArgument
1168entryRuleConstantArgument returns [EObject current=null]:
1169 { newCompositeNode(grammarAccess.getConstantArgumentRule()); }
1170 iv_ruleConstantArgument=ruleConstantArgument
1171 { $current=$iv_ruleConstantArgument.current; }
1172 EOF;
1173
1174// Rule ConstantArgument
1175ruleConstantArgument returns [EObject current=null]
1176@init {
1177 enterRule();
1178}
1179@after {
1180 leaveRule();
1181}:
1182 (
1183 (
1184 {
1185 newCompositeNode(grammarAccess.getConstantArgumentAccess().getConstantConstantParserRuleCall_0());
1186 }
1187 lv_constant_0_0=ruleConstant
1188 {
1189 if ($current==null) {
1190 $current = createModelElementForParent(grammarAccess.getConstantArgumentRule());
1191 }
1192 set(
1193 $current,
1194 "constant",
1195 lv_constant_0_0,
1196 "org.eclipse.viatra.solver.language.Problem.Constant");
1197 afterParserOrEnumRuleCall();
1198 }
1199 )
1200 )
1201;
1202
1122// Entry rule entryRuleAssertion 1203// Entry rule entryRuleAssertion
1123entryRuleAssertion returns [EObject current=null]: 1204entryRuleAssertion returns [EObject current=null]:
1124 { newCompositeNode(grammarAccess.getAssertionRule()); } 1205 { newCompositeNode(grammarAccess.getAssertionRule()); }
@@ -1161,15 +1242,18 @@ ruleAssertion returns [EObject current=null]
1161 ( 1242 (
1162 ( 1243 (
1163 { 1244 {
1164 if ($current==null) { 1245 newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_0_2_0_0());
1165 $current = createModelElement(grammarAccess.getAssertionRule());
1166 }
1167 }
1168 {
1169 newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsNodeCrossReference_0_0_2_0_0());
1170 } 1246 }
1171 ruleQualifiedName 1247 lv_arguments_2_0=ruleAssertionArgument
1172 { 1248 {
1249 if ($current==null) {
1250 $current = createModelElementForParent(grammarAccess.getAssertionRule());
1251 }
1252 add(
1253 $current,
1254 "arguments",
1255 lv_arguments_2_0,
1256 "org.eclipse.viatra.solver.language.Problem.AssertionArgument");
1173 afterParserOrEnumRuleCall(); 1257 afterParserOrEnumRuleCall();
1174 } 1258 }
1175 ) 1259 )
@@ -1182,15 +1266,18 @@ ruleAssertion returns [EObject current=null]
1182 ( 1266 (
1183 ( 1267 (
1184 { 1268 {
1185 if ($current==null) { 1269 newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_0_2_1_1_0());
1186 $current = createModelElement(grammarAccess.getAssertionRule());
1187 }
1188 } 1270 }
1271 lv_arguments_4_0=ruleAssertionArgument
1189 { 1272 {
1190 newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsNodeCrossReference_0_0_2_1_1_0()); 1273 if ($current==null) {
1191 } 1274 $current = createModelElementForParent(grammarAccess.getAssertionRule());
1192 ruleQualifiedName 1275 }
1193 { 1276 add(
1277 $current,
1278 "arguments",
1279 lv_arguments_4_0,
1280 "org.eclipse.viatra.solver.language.Problem.AssertionArgument");
1194 afterParserOrEnumRuleCall(); 1281 afterParserOrEnumRuleCall();
1195 } 1282 }
1196 ) 1283 )
@@ -1270,15 +1357,18 @@ ruleAssertion returns [EObject current=null]
1270 ( 1357 (
1271 ( 1358 (
1272 { 1359 {
1273 if ($current==null) { 1360 newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_1_3_0_0());
1274 $current = createModelElement(grammarAccess.getAssertionRule());
1275 }
1276 }
1277 {
1278 newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsNodeCrossReference_0_1_3_0_0());
1279 } 1361 }
1280 ruleQualifiedName 1362 lv_arguments_11_0=ruleAssertionArgument
1281 { 1363 {
1364 if ($current==null) {
1365 $current = createModelElementForParent(grammarAccess.getAssertionRule());
1366 }
1367 add(
1368 $current,
1369 "arguments",
1370 lv_arguments_11_0,
1371 "org.eclipse.viatra.solver.language.Problem.AssertionArgument");
1282 afterParserOrEnumRuleCall(); 1372 afterParserOrEnumRuleCall();
1283 } 1373 }
1284 ) 1374 )
@@ -1291,15 +1381,18 @@ ruleAssertion returns [EObject current=null]
1291 ( 1381 (
1292 ( 1382 (
1293 { 1383 {
1294 if ($current==null) { 1384 newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_1_3_1_1_0());
1295 $current = createModelElement(grammarAccess.getAssertionRule());
1296 }
1297 }
1298 {
1299 newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsNodeCrossReference_0_1_3_1_1_0());
1300 } 1385 }
1301 ruleQualifiedName 1386 lv_arguments_13_0=ruleAssertionArgument
1302 { 1387 {
1388 if ($current==null) {
1389 $current = createModelElementForParent(grammarAccess.getAssertionRule());
1390 }
1391 add(
1392 $current,
1393 "arguments",
1394 lv_arguments_13_0,
1395 "org.eclipse.viatra.solver.language.Problem.AssertionArgument");
1303 afterParserOrEnumRuleCall(); 1396 afterParserOrEnumRuleCall();
1304 } 1397 }
1305 ) 1398 )
@@ -1319,6 +1412,325 @@ ruleAssertion returns [EObject current=null]
1319 ) 1412 )
1320; 1413;
1321 1414
1415// Entry rule entryRuleAssertionArgument
1416entryRuleAssertionArgument returns [EObject current=null]:
1417 { newCompositeNode(grammarAccess.getAssertionArgumentRule()); }
1418 iv_ruleAssertionArgument=ruleAssertionArgument
1419 { $current=$iv_ruleAssertionArgument.current; }
1420 EOF;
1421
1422// Rule AssertionArgument
1423ruleAssertionArgument returns [EObject current=null]
1424@init {
1425 enterRule();
1426}
1427@after {
1428 leaveRule();
1429}:
1430 (
1431 {
1432 newCompositeNode(grammarAccess.getAssertionArgumentAccess().getNodeAssertionArgumentParserRuleCall_0());
1433 }
1434 this_NodeAssertionArgument_0=ruleNodeAssertionArgument
1435 {
1436 $current = $this_NodeAssertionArgument_0.current;
1437 afterParserOrEnumRuleCall();
1438 }
1439 |
1440 {
1441 newCompositeNode(grammarAccess.getAssertionArgumentAccess().getConstantAssertionArgumentParserRuleCall_1());
1442 }
1443 this_ConstantAssertionArgument_1=ruleConstantAssertionArgument
1444 {
1445 $current = $this_ConstantAssertionArgument_1.current;
1446 afterParserOrEnumRuleCall();
1447 }
1448 )
1449;
1450
1451// Entry rule entryRuleNodeAssertionArgument
1452entryRuleNodeAssertionArgument returns [EObject current=null]:
1453 { newCompositeNode(grammarAccess.getNodeAssertionArgumentRule()); }
1454 iv_ruleNodeAssertionArgument=ruleNodeAssertionArgument
1455 { $current=$iv_ruleNodeAssertionArgument.current; }
1456 EOF;
1457
1458// Rule NodeAssertionArgument
1459ruleNodeAssertionArgument returns [EObject current=null]
1460@init {
1461 enterRule();
1462}
1463@after {
1464 leaveRule();
1465}:
1466 (
1467 (
1468 {
1469 if ($current==null) {
1470 $current = createModelElement(grammarAccess.getNodeAssertionArgumentRule());
1471 }
1472 }
1473 {
1474 newCompositeNode(grammarAccess.getNodeAssertionArgumentAccess().getNodeNodeCrossReference_0());
1475 }
1476 ruleQualifiedName
1477 {
1478 afterParserOrEnumRuleCall();
1479 }
1480 )
1481 )
1482;
1483
1484// Entry rule entryRuleConstantAssertionArgument
1485entryRuleConstantAssertionArgument returns [EObject current=null]:
1486 { newCompositeNode(grammarAccess.getConstantAssertionArgumentRule()); }
1487 iv_ruleConstantAssertionArgument=ruleConstantAssertionArgument
1488 { $current=$iv_ruleConstantAssertionArgument.current; }
1489 EOF;
1490
1491// Rule ConstantAssertionArgument
1492ruleConstantAssertionArgument returns [EObject current=null]
1493@init {
1494 enterRule();
1495}
1496@after {
1497 leaveRule();
1498}:
1499 (
1500 (
1501 {
1502 newCompositeNode(grammarAccess.getConstantAssertionArgumentAccess().getConstantConstantParserRuleCall_0());
1503 }
1504 lv_constant_0_0=ruleConstant
1505 {
1506 if ($current==null) {
1507 $current = createModelElementForParent(grammarAccess.getConstantAssertionArgumentRule());
1508 }
1509 set(
1510 $current,
1511 "constant",
1512 lv_constant_0_0,
1513 "org.eclipse.viatra.solver.language.Problem.Constant");
1514 afterParserOrEnumRuleCall();
1515 }
1516 )
1517 )
1518;
1519
1520// Entry rule entryRuleNodeValueAssertion
1521entryRuleNodeValueAssertion returns [EObject current=null]:
1522 { newCompositeNode(grammarAccess.getNodeValueAssertionRule()); }
1523 iv_ruleNodeValueAssertion=ruleNodeValueAssertion
1524 { $current=$iv_ruleNodeValueAssertion.current; }
1525 EOF;
1526
1527// Rule NodeValueAssertion
1528ruleNodeValueAssertion returns [EObject current=null]
1529@init {
1530 enterRule();
1531}
1532@after {
1533 leaveRule();
1534}:
1535 (
1536 (
1537 (
1538 {
1539 if ($current==null) {
1540 $current = createModelElement(grammarAccess.getNodeValueAssertionRule());
1541 }
1542 }
1543 {
1544 newCompositeNode(grammarAccess.getNodeValueAssertionAccess().getNodeNodeCrossReference_0_0());
1545 }
1546 ruleQualifiedName
1547 {
1548 afterParserOrEnumRuleCall();
1549 }
1550 )
1551 )
1552 otherlv_1=':'
1553 {
1554 newLeafNode(otherlv_1, grammarAccess.getNodeValueAssertionAccess().getColonKeyword_1());
1555 }
1556 (
1557 (
1558 {
1559 newCompositeNode(grammarAccess.getNodeValueAssertionAccess().getValueConstantParserRuleCall_2_0());
1560 }
1561 lv_value_2_0=ruleConstant
1562 {
1563 if ($current==null) {
1564 $current = createModelElementForParent(grammarAccess.getNodeValueAssertionRule());
1565 }
1566 set(
1567 $current,
1568 "value",
1569 lv_value_2_0,
1570 "org.eclipse.viatra.solver.language.Problem.Constant");
1571 afterParserOrEnumRuleCall();
1572 }
1573 )
1574 )
1575 otherlv_3='.'
1576 {
1577 newLeafNode(otherlv_3, grammarAccess.getNodeValueAssertionAccess().getFullStopKeyword_3());
1578 }
1579 )
1580;
1581
1582// Entry rule entryRuleConstant
1583entryRuleConstant returns [EObject current=null]:
1584 { newCompositeNode(grammarAccess.getConstantRule()); }
1585 iv_ruleConstant=ruleConstant
1586 { $current=$iv_ruleConstant.current; }
1587 EOF;
1588
1589// Rule Constant
1590ruleConstant returns [EObject current=null]
1591@init {
1592 enterRule();
1593}
1594@after {
1595 leaveRule();
1596}:
1597 (
1598 {
1599 newCompositeNode(grammarAccess.getConstantAccess().getIntConstantParserRuleCall_0());
1600 }
1601 this_IntConstant_0=ruleIntConstant
1602 {
1603 $current = $this_IntConstant_0.current;
1604 afterParserOrEnumRuleCall();
1605 }
1606 |
1607 {
1608 newCompositeNode(grammarAccess.getConstantAccess().getRealConstantParserRuleCall_1());
1609 }
1610 this_RealConstant_1=ruleRealConstant
1611 {
1612 $current = $this_RealConstant_1.current;
1613 afterParserOrEnumRuleCall();
1614 }
1615 |
1616 {
1617 newCompositeNode(grammarAccess.getConstantAccess().getStringConstantParserRuleCall_2());
1618 }
1619 this_StringConstant_2=ruleStringConstant
1620 {
1621 $current = $this_StringConstant_2.current;
1622 afterParserOrEnumRuleCall();
1623 }
1624 )
1625;
1626
1627// Entry rule entryRuleIntConstant
1628entryRuleIntConstant returns [EObject current=null]:
1629 { newCompositeNode(grammarAccess.getIntConstantRule()); }
1630 iv_ruleIntConstant=ruleIntConstant
1631 { $current=$iv_ruleIntConstant.current; }
1632 EOF;
1633
1634// Rule IntConstant
1635ruleIntConstant returns [EObject current=null]
1636@init {
1637 enterRule();
1638}
1639@after {
1640 leaveRule();
1641}:
1642 (
1643 (
1644 {
1645 newCompositeNode(grammarAccess.getIntConstantAccess().getIntValueIntegerParserRuleCall_0());
1646 }
1647 lv_intValue_0_0=ruleInteger
1648 {
1649 if ($current==null) {
1650 $current = createModelElementForParent(grammarAccess.getIntConstantRule());
1651 }
1652 set(
1653 $current,
1654 "intValue",
1655 lv_intValue_0_0,
1656 "org.eclipse.viatra.solver.language.Problem.Integer");
1657 afterParserOrEnumRuleCall();
1658 }
1659 )
1660 )
1661;
1662
1663// Entry rule entryRuleRealConstant
1664entryRuleRealConstant returns [EObject current=null]:
1665 { newCompositeNode(grammarAccess.getRealConstantRule()); }
1666 iv_ruleRealConstant=ruleRealConstant
1667 { $current=$iv_ruleRealConstant.current; }
1668 EOF;
1669
1670// Rule RealConstant
1671ruleRealConstant returns [EObject current=null]
1672@init {
1673 enterRule();
1674}
1675@after {
1676 leaveRule();
1677}:
1678 (
1679 (
1680 {
1681 newCompositeNode(grammarAccess.getRealConstantAccess().getRealValueRealParserRuleCall_0());
1682 }
1683 lv_realValue_0_0=ruleReal
1684 {
1685 if ($current==null) {
1686 $current = createModelElementForParent(grammarAccess.getRealConstantRule());
1687 }
1688 set(
1689 $current,
1690 "realValue",
1691 lv_realValue_0_0,
1692 "org.eclipse.viatra.solver.language.Problem.Real");
1693 afterParserOrEnumRuleCall();
1694 }
1695 )
1696 )
1697;
1698
1699// Entry rule entryRuleStringConstant
1700entryRuleStringConstant returns [EObject current=null]:
1701 { newCompositeNode(grammarAccess.getStringConstantRule()); }
1702 iv_ruleStringConstant=ruleStringConstant
1703 { $current=$iv_ruleStringConstant.current; }
1704 EOF;
1705
1706// Rule StringConstant
1707ruleStringConstant returns [EObject current=null]
1708@init {
1709 enterRule();
1710}
1711@after {
1712 leaveRule();
1713}:
1714 (
1715 (
1716 lv_stringValue_0_0=RULE_STRING
1717 {
1718 newLeafNode(lv_stringValue_0_0, grammarAccess.getStringConstantAccess().getStringValueSTRINGTerminalRuleCall_0());
1719 }
1720 {
1721 if ($current==null) {
1722 $current = createModelElement(grammarAccess.getStringConstantRule());
1723 }
1724 setWithLastConsumed(
1725 $current,
1726 "stringValue",
1727 lv_stringValue_0_0,
1728 "org.eclipse.viatra.solver.language.Problem.STRING");
1729 }
1730 )
1731 )
1732;
1733
1322// Entry rule entryRuleScopeDeclaration 1734// Entry rule entryRuleScopeDeclaration
1323entryRuleScopeDeclaration returns [EObject current=null]: 1735entryRuleScopeDeclaration returns [EObject current=null]:
1324 { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } 1736 { newCompositeNode(grammarAccess.getScopeDeclarationRule()); }
@@ -1723,16 +2135,22 @@ ruleQuotedOrUnquotedId returns [AntlrDatatypeRuleToken current=new AntlrDatatype
1723; 2135;
1724 2136
1725// Entry rule entryRuleQualifiedName 2137// Entry rule entryRuleQualifiedName
1726entryRuleQualifiedName returns [String current=null]: 2138entryRuleQualifiedName returns [String current=null]@init {
2139 HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
2140}:
1727 { newCompositeNode(grammarAccess.getQualifiedNameRule()); } 2141 { newCompositeNode(grammarAccess.getQualifiedNameRule()); }
1728 iv_ruleQualifiedName=ruleQualifiedName 2142 iv_ruleQualifiedName=ruleQualifiedName
1729 { $current=$iv_ruleQualifiedName.current.getText(); } 2143 { $current=$iv_ruleQualifiedName.current.getText(); }
1730 EOF; 2144 EOF;
2145finally {
2146 myHiddenTokenState.restore();
2147}
1731 2148
1732// Rule QualifiedName 2149// Rule QualifiedName
1733ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] 2150ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
1734@init { 2151@init {
1735 enterRule(); 2152 enterRule();
2153 HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
1736} 2154}
1737@after { 2155@after {
1738 leaveRule(); 2156 leaveRule();
@@ -1791,6 +2209,9 @@ ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleT
1791 ) 2209 )
1792 ) 2210 )
1793; 2211;
2212finally {
2213 myHiddenTokenState.restore();
2214}
1794 2215
1795// Entry rule entryRuleIdentifier 2216// Entry rule entryRuleIdentifier
1796entryRuleIdentifier returns [String current=null]: 2217entryRuleIdentifier returns [String current=null]:
@@ -1827,9 +2248,171 @@ ruleIdentifier returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToke
1827 $current.merge(kw); 2248 $current.merge(kw);
1828 newLeafNode(kw, grammarAccess.getIdentifierAccess().getFalseKeyword_2()); 2249 newLeafNode(kw, grammarAccess.getIdentifierAccess().getFalseKeyword_2());
1829 } 2250 }
2251 |
2252 kw='e'
2253 {
2254 $current.merge(kw);
2255 newLeafNode(kw, grammarAccess.getIdentifierAccess().getEKeyword_3());
2256 }
2257 |
2258 kw='E'
2259 {
2260 $current.merge(kw);
2261 newLeafNode(kw, grammarAccess.getIdentifierAccess().getEKeyword_4());
2262 }
1830 ) 2263 )
1831; 2264;
1832 2265
2266// Entry rule entryRuleInteger
2267entryRuleInteger returns [String current=null]@init {
2268 HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
2269}:
2270 { newCompositeNode(grammarAccess.getIntegerRule()); }
2271 iv_ruleInteger=ruleInteger
2272 { $current=$iv_ruleInteger.current.getText(); }
2273 EOF;
2274finally {
2275 myHiddenTokenState.restore();
2276}
2277
2278// Rule Integer
2279ruleInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
2280@init {
2281 enterRule();
2282 HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
2283}
2284@after {
2285 leaveRule();
2286}:
2287 (
2288 (
2289 kw='-'
2290 {
2291 $current.merge(kw);
2292 newLeafNode(kw, grammarAccess.getIntegerAccess().getHyphenMinusKeyword_0());
2293 }
2294 )?
2295 this_INT_1=RULE_INT
2296 {
2297 $current.merge(this_INT_1);
2298 }
2299 {
2300 newLeafNode(this_INT_1, grammarAccess.getIntegerAccess().getINTTerminalRuleCall_1());
2301 }
2302 )
2303;
2304finally {
2305 myHiddenTokenState.restore();
2306}
2307
2308// Entry rule entryRuleReal
2309entryRuleReal returns [String current=null]@init {
2310 HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
2311}:
2312 { newCompositeNode(grammarAccess.getRealRule()); }
2313 iv_ruleReal=ruleReal
2314 { $current=$iv_ruleReal.current.getText(); }
2315 EOF;
2316finally {
2317 myHiddenTokenState.restore();
2318}
2319
2320// Rule Real
2321ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
2322@init {
2323 enterRule();
2324 HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
2325}
2326@after {
2327 leaveRule();
2328}:
2329 (
2330 (
2331 kw='-'
2332 {
2333 $current.merge(kw);
2334 newLeafNode(kw, grammarAccess.getRealAccess().getHyphenMinusKeyword_0());
2335 }
2336 )?
2337 this_INT_1=RULE_INT
2338 {
2339 $current.merge(this_INT_1);
2340 }
2341 {
2342 newLeafNode(this_INT_1, grammarAccess.getRealAccess().getINTTerminalRuleCall_1());
2343 }
2344 (
2345 (
2346 kw='.'
2347 {
2348 $current.merge(kw);
2349 newLeafNode(kw, grammarAccess.getRealAccess().getFullStopKeyword_2_0_0());
2350 }
2351 this_INT_3=RULE_INT
2352 {
2353 $current.merge(this_INT_3);
2354 }
2355 {
2356 newLeafNode(this_INT_3, grammarAccess.getRealAccess().getINTTerminalRuleCall_2_0_1());
2357 }
2358 )
2359 |
2360 (
2361 (
2362 kw='.'
2363 {
2364 $current.merge(kw);
2365 newLeafNode(kw, grammarAccess.getRealAccess().getFullStopKeyword_2_1_0_0());
2366 }
2367 this_INT_5=RULE_INT
2368 {
2369 $current.merge(this_INT_5);
2370 }
2371 {
2372 newLeafNode(this_INT_5, grammarAccess.getRealAccess().getINTTerminalRuleCall_2_1_0_1());
2373 }
2374 )?
2375 (
2376 kw='e'
2377 {
2378 $current.merge(kw);
2379 newLeafNode(kw, grammarAccess.getRealAccess().getEKeyword_2_1_1_0());
2380 }
2381 |
2382 kw='E'
2383 {
2384 $current.merge(kw);
2385 newLeafNode(kw, grammarAccess.getRealAccess().getEKeyword_2_1_1_1());
2386 }
2387 )
2388 (
2389 kw='-'
2390 {
2391 $current.merge(kw);
2392 newLeafNode(kw, grammarAccess.getRealAccess().getHyphenMinusKeyword_2_1_2_0());
2393 }
2394 |
2395 kw='+'
2396 {
2397 $current.merge(kw);
2398 newLeafNode(kw, grammarAccess.getRealAccess().getPlusSignKeyword_2_1_2_1());
2399 }
2400 )?
2401 this_INT_10=RULE_INT
2402 {
2403 $current.merge(this_INT_10);
2404 }
2405 {
2406 newLeafNode(this_INT_10, grammarAccess.getRealAccess().getINTTerminalRuleCall_2_1_3());
2407 }
2408 )
2409 )
2410 )
2411;
2412finally {
2413 myHiddenTokenState.restore();
2414}
2415
1833// Rule LogicValue 2416// Rule LogicValue
1834ruleLogicValue returns [Enumerator current=null] 2417ruleLogicValue returns [Enumerator current=null]
1835@init { 2418@init {
@@ -1892,14 +2475,14 @@ ruleShortLogicValue returns [Enumerator current=null]
1892 ) 2475 )
1893; 2476;
1894 2477
2478RULE_ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
2479
1895RULE_STRING : '"' ('\\' .|~(('\\'|'"')))* '"'; 2480RULE_STRING : '"' ('\\' .|~(('\\'|'"')))* '"';
1896 2481
1897RULE_QUOTED_ID : '\'' ('\\' .|~(('\\'|'\'')))* '\''; 2482RULE_QUOTED_ID : '\'' ('\\' .|~(('\\'|'\'')))* '\'';
1898 2483
1899RULE_SL_COMMENT : ('%'|'//') ~(('\n'|'\r'))* ('\r'? '\n')?; 2484RULE_SL_COMMENT : ('%'|'//') ~(('\n'|'\r'))* ('\r'? '\n')?;
1900 2485
1901RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
1902
1903RULE_INT : ('0'..'9')+; 2486RULE_INT : ('0'..'9')+;
1904 2487
1905RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; 2488RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/';