Skip to content
Snippets Groups Projects
Commit c3d9681b authored by Fabian Brosig's avatar Fabian Brosig
Browse files

adapted example grammar for expressions

git-svn-id: https://se1.informatik.uni-wuerzburg.de/usvn/svn/code/code/DMM/trunk@9906 9e42b895-fcda-4063-8a3b-11be15eb1bbd
parent d556ca3a
No related branches found
No related tags found
No related merge requests found
Showing
with 14024 additions and 5098 deletions
......@@ -20,41 +20,131 @@ public class AbstractMyDslProposalProvider extends TerminalsProposalProvider {
public void completeModel_Terms(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeTerm_Operations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
public void completeIfElseExpression_TrueExp(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeIfElseExpression_FalseExp(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeBinaryBooleanExpression_Operation(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeBinaryBooleanExpression_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeComparison_Operation(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeComparison_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeTerm_Operation(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeTerm_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeOperations_TermOperations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
public void completeProduct_Operation(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeProduct_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completePower_Exponent(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeFunction_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeFunction_Parameters(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeFormalParameter_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeBooleanLiteral_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeIntLiteral_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void completeDoubleLiteral_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
public void complete_Model(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Double(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Integer(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_EString(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_EBoolean(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_ProductOperation(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_TermOperation(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_CompareOperation(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_BooleanOperation(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_RootExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_IfElseExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_BinaryBooleanExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_UnaryBooleanExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Comparison(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Term(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Types(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
public void complete_Product(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Power(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Atom(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Function(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Arithmetics(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
public void complete_Literal(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Strings(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
public void complete_FormalParameter(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_DECIMAL(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
public void complete_BooleanLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_E_STRING(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
public void complete_NumberLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_Operations(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
public void complete_IntLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
public void complete_OperationsType(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
public void complete_DoubleLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
}
......@@ -37,20 +37,54 @@ public class MyDslParser extends AbstractContentAssistParser {
nameMappings = new HashMap<AbstractElement, String>() {
private static final long serialVersionUID = 1L;
{
put(grammarAccess.getTypesAccess().getAlternatives(), "rule__Types__Alternatives");
put(grammarAccess.getE_STRINGAccess().getAlternatives(), "rule__E_STRING__Alternatives");
put(grammarAccess.getOperationsTypeAccess().getAlternatives(), "rule__OperationsType__Alternatives");
put(grammarAccess.getEStringAccess().getAlternatives(), "rule__EString__Alternatives");
put(grammarAccess.getEBooleanAccess().getAlternatives(), "rule__EBoolean__Alternatives");
put(grammarAccess.getUnaryBooleanExpressionAccess().getAlternatives(), "rule__UnaryBooleanExpression__Alternatives");
put(grammarAccess.getAtomAccess().getAlternatives(), "rule__Atom__Alternatives");
put(grammarAccess.getLiteralAccess().getAlternatives(), "rule__Literal__Alternatives");
put(grammarAccess.getNumberLiteralAccess().getAlternatives(), "rule__NumberLiteral__Alternatives");
put(grammarAccess.getProductOperationAccess().getAlternatives(), "rule__ProductOperation__Alternatives");
put(grammarAccess.getTermOperationAccess().getAlternatives(), "rule__TermOperation__Alternatives");
put(grammarAccess.getCompareOperationAccess().getAlternatives(), "rule__CompareOperation__Alternatives");
put(grammarAccess.getBooleanOperationAccess().getAlternatives(), "rule__BooleanOperation__Alternatives");
put(grammarAccess.getDoubleAccess().getGroup(), "rule__Double__Group__0");
put(grammarAccess.getIntegerAccess().getGroup(), "rule__Integer__Group__0");
put(grammarAccess.getIfElseExpressionAccess().getGroup(), "rule__IfElseExpression__Group__0");
put(grammarAccess.getIfElseExpressionAccess().getGroup_1(), "rule__IfElseExpression__Group_1__0");
put(grammarAccess.getBinaryBooleanExpressionAccess().getGroup(), "rule__BinaryBooleanExpression__Group__0");
put(grammarAccess.getBinaryBooleanExpressionAccess().getGroup_1(), "rule__BinaryBooleanExpression__Group_1__0");
put(grammarAccess.getUnaryBooleanExpressionAccess().getGroup_0(), "rule__UnaryBooleanExpression__Group_0__0");
put(grammarAccess.getComparisonAccess().getGroup(), "rule__Comparison__Group__0");
put(grammarAccess.getComparisonAccess().getGroup_1(), "rule__Comparison__Group_1__0");
put(grammarAccess.getTermAccess().getGroup(), "rule__Term__Group__0");
put(grammarAccess.getTermAccess().getGroup_1(), "rule__Term__Group_1__0");
put(grammarAccess.getTypesAccess().getGroup_2(), "rule__Types__Group_2__0");
put(grammarAccess.getArithmeticsAccess().getGroup(), "rule__Arithmetics__Group__0");
put(grammarAccess.getStringsAccess().getGroup(), "rule__Strings__Group__0");
put(grammarAccess.getDECIMALAccess().getGroup(), "rule__DECIMAL__Group__0");
put(grammarAccess.getDECIMALAccess().getGroup_2(), "rule__DECIMAL__Group_2__0");
put(grammarAccess.getProductAccess().getGroup(), "rule__Product__Group__0");
put(grammarAccess.getProductAccess().getGroup_1(), "rule__Product__Group_1__0");
put(grammarAccess.getPowerAccess().getGroup(), "rule__Power__Group__0");
put(grammarAccess.getPowerAccess().getGroup_1(), "rule__Power__Group_1__0");
put(grammarAccess.getAtomAccess().getGroup_1(), "rule__Atom__Group_1__0");
put(grammarAccess.getFunctionAccess().getGroup(), "rule__Function__Group__0");
put(grammarAccess.getFunctionAccess().getGroup_2(), "rule__Function__Group_2__0");
put(grammarAccess.getFunctionAccess().getGroup_2_1(), "rule__Function__Group_2_1__0");
put(grammarAccess.getModelAccess().getTermsAssignment(), "rule__Model__TermsAssignment");
put(grammarAccess.getTermAccess().getOperationsAssignment_1_1(), "rule__Term__OperationsAssignment_1_1");
put(grammarAccess.getIfElseExpressionAccess().getTrueExpAssignment_1_2(), "rule__IfElseExpression__TrueExpAssignment_1_2");
put(grammarAccess.getIfElseExpressionAccess().getFalseExpAssignment_1_4(), "rule__IfElseExpression__FalseExpAssignment_1_4");
put(grammarAccess.getBinaryBooleanExpressionAccess().getOperationAssignment_1_1(), "rule__BinaryBooleanExpression__OperationAssignment_1_1");
put(grammarAccess.getBinaryBooleanExpressionAccess().getRightAssignment_1_2(), "rule__BinaryBooleanExpression__RightAssignment_1_2");
put(grammarAccess.getComparisonAccess().getOperationAssignment_1_1(), "rule__Comparison__OperationAssignment_1_1");
put(grammarAccess.getComparisonAccess().getRightAssignment_1_2(), "rule__Comparison__RightAssignment_1_2");
put(grammarAccess.getTermAccess().getOperationAssignment_1_1(), "rule__Term__OperationAssignment_1_1");
put(grammarAccess.getTermAccess().getRightAssignment_1_2(), "rule__Term__RightAssignment_1_2");
put(grammarAccess.getOperationsAccess().getTermOperationsAssignment(), "rule__Operations__TermOperationsAssignment");
put(grammarAccess.getProductAccess().getOperationAssignment_1_1(), "rule__Product__OperationAssignment_1_1");
put(grammarAccess.getProductAccess().getRightAssignment_1_2(), "rule__Product__RightAssignment_1_2");
put(grammarAccess.getPowerAccess().getExponentAssignment_1_2(), "rule__Power__ExponentAssignment_1_2");
put(grammarAccess.getFunctionAccess().getNameAssignment_0(), "rule__Function__NameAssignment_0");
put(grammarAccess.getFunctionAccess().getParametersAssignment_2_0(), "rule__Function__ParametersAssignment_2_0");
put(grammarAccess.getFunctionAccess().getParametersAssignment_2_1_1(), "rule__Function__ParametersAssignment_2_1_1");
put(grammarAccess.getFormalParameterAccess().getValueAssignment(), "rule__FormalParameter__ValueAssignment");
put(grammarAccess.getBooleanLiteralAccess().getValueAssignment(), "rule__BooleanLiteral__ValueAssignment");
put(grammarAccess.getIntLiteralAccess().getValueAssignment(), "rule__IntLiteral__ValueAssignment");
put(grammarAccess.getDoubleLiteralAccess().getValueAssignment(), "rule__DoubleLiteral__ValueAssignment");
}
};
}
......
RULE_ID=5
T__27=27
T__26=26
T__25=25
T__24=24
T__23=23
T__22=22
RULE_ANY_OTHER=10
T__21=21
T__20=20
RULE_SL_COMMENT=8
RULE_ML_COMMENT=7
T__19=19
RULE_STRING=4
T__16=16
T__15=15
T__18=18
T__17=17
T__12=12
T__11=11
T__14=14
T__13=13
RULE_INT=6
RULE_WS=9
'>='=21
'/'=14
'OR'=23
'>'=16
'XOR'=24
'<='=20
'!='=19
'='=18
'<'=17
'('=25
'-'=12
'*'=13
'+'=11
'.'=27
')'=26
'AND'=22
'%'=15
RULE_ID=5
T__29=29
T__28=28
T__27=27
T__26=26
T__25=25
T__24=24
T__23=23
T__22=22
RULE_ANY_OTHER=10
T__21=21
T__20=20
RULE_SL_COMMENT=8
RULE_ML_COMMENT=7
T__30=30
T__19=19
T__31=31
RULE_STRING=4
T__32=32
T__33=33
T__16=16
T__34=34
T__15=15
T__18=18
T__17=17
T__12=12
T__11=11
T__14=14
T__13=13
RULE_INT=6
RULE_WS=9
'NOT'=30
'true'=11
'>='=23
'/'=14
'OR'=25
'>'=18
'XOR'=26
'?'=28
'<='=22
'!='=21
'false'=12
'='=20
'<'=19
'('=32
':'=29
'*'=13
'-'=17
'+'=16
','=34
')'=33
'.'=27
'^'=31
'AND'=24
'%'=15
File added
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="myDsl" nsURI="http://www.xtext.org/example/mydsl/MyDsl" nsPrefix="myDsl">
<eClassifiers xsi:type="ecore:EClass" name="Model">
<eStructuralFeatures xsi:type="ecore:EReference" name="terms" upperBound="-1"
eType="#//Expression" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Expression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="termOperations" eType="#//OperationsType"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="OperationsType">
<eLiterals name="ADD" literal="+"/>
<eLiterals name="SUB" value="1" literal="-"/>
<eLiterals name="MULT" value="2" literal="*"/>
<eLiterals name="DIV" value="3" literal="/"/>
<eLiterals name="MOD" value="4" literal="%"/>
<eLiterals name="GREATER" value="5" literal=">"/>
<eLiterals name="LESS" value="6" literal="&lt;"/>
<eLiterals name="EQUALS" value="7" literal="="/>
<eLiterals name="NOTEQUAL" value="8" literal="!="/>
<eLiterals name="LESSEQUAL" value="9" literal="&lt;="/>
<eLiterals name="GREATEREQUAL" value="10" literal=">="/>
<eLiterals name="AND" value="11" literal="AND"/>
<eLiterals name="OR" value="12" literal="OR"/>
<eLiterals name="XOR" value="13" literal="XOR"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Term" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//Expression"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="Operations" eType="#//Expression"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//Expression"
containment="true"/>
</eClassifiers>
</ecore:EPackage>
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="myDsl" nsURI="http://www.xtext.org/example/mydsl/MyDsl" nsPrefix="myDsl">
<eClassifiers xsi:type="ecore:EClass" name="Model">
<eStructuralFeatures xsi:type="ecore:EReference" name="terms" eType="#//Expression"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ProductOperation">
<eLiterals name="MULT" literal="*"/>
<eLiterals name="DIV" value="1" literal="/"/>
<eLiterals name="MOD" value="2" literal="%"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="TermOperation">
<eLiterals name="ADD" literal="+"/>
<eLiterals name="SUB" value="1" literal="-"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="CompareOperation">
<eLiterals name="GREATER" literal=">"/>
<eLiterals name="LESS" value="1" literal="&lt;"/>
<eLiterals name="EQUALS" value="2" literal="="/>
<eLiterals name="NOTEQUAL" value="3" literal="!="/>
<eLiterals name="LESSEQUAL" value="4" literal="&lt;="/>
<eLiterals name="GREATEREQUAL" value="5" literal=">="/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="BooleanOperation">
<eLiterals name="AND" literal="AND"/>
<eLiterals name="OR" value="1" literal="OR"/>
<eLiterals name="XOR" value="2" literal="XOR"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Expression"/>
<eClassifiers xsi:type="ecore:EClass" name="Function" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
eType="#//Expression" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FormalParameter" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BooleanLiteral" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IntLiteral" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBigInteger"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DoubleLiteral" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBigDecimal"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IfElseExpression" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="condition" eType="#//Expression"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="trueExp" eType="#//Expression"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="falseExp" eType="#//Expression"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="BinaryBooleanExpression" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//Expression"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operation" eType="#//BooleanOperation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//Expression"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="UnaryBooleanExpression" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="inner" eType="#//Expression"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Comparison" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//Expression"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operation" eType="#//CompareOperation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//Expression"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Term" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//Expression"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operation" eType="#//TermOperation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//Expression"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Product" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//Expression"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operation" eType="#//ProductOperation"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//Expression"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Power" eSuperTypes="#//Expression">
<eStructuralFeatures xsi:type="ecore:EReference" name="base" eType="#//Expression"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="exponent" eType="#//Expression"
containment="true"/>
</eClassifiers>
</ecore:EPackage>
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.xtext.example.mydsl/src-gen" editDirectory="/org.xtext.example.mydsl.edit/src"
editorDirectory="/org.xtext.example.mydsl.editor/src" modelPluginID="org.xtext.example.mydsl"
forceOverwrite="true" modelName="MyDsl" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
complianceLevel="5.0" copyrightFields="false" editPluginID="org.xtext.example.mydsl.edit"
editorPluginID="org.xtext.example.mydsl.editor" runtimeVersion="2.8">
<genPackages prefix="MyDsl" basePackage="org.xtext.example.mydsl" disposableProviderFactory="true"
ecorePackage="MyDsl.ecore#/">
<genEnums typeSafeEnumCompatible="false" ecoreEnum="MyDsl.ecore#//OperationsType">
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/ADD"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/SUB"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/MULT"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/DIV"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/MOD"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/GREATER"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/LESS"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/EQUALS"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/NOTEQUAL"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/LESSEQUAL"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/GREATEREQUAL"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/AND"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/OR"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//OperationsType/XOR"/>
</genEnums>
<genClasses ecoreClass="MyDsl.ecore#//Model">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Model/terms"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//Expression">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//Expression/termOperations"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//Term">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Term/left"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Term/Operations"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Term/right"/>
</genClasses>
</genPackages>
</genmodel:GenModel>
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.xtext.example.mydsl/src-gen" editDirectory="/org.xtext.example.mydsl.edit/src"
editorDirectory="/org.xtext.example.mydsl.editor/src" modelPluginID="org.xtext.example.mydsl"
forceOverwrite="true" modelName="MyDsl" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
complianceLevel="5.0" copyrightFields="false" editPluginID="org.xtext.example.mydsl.edit"
editorPluginID="org.xtext.example.mydsl.editor" runtimeVersion="2.8">
<genPackages prefix="MyDsl" basePackage="org.xtext.example.mydsl" disposableProviderFactory="true"
ecorePackage="MyDsl.ecore#/">
<genEnums typeSafeEnumCompatible="false" ecoreEnum="MyDsl.ecore#//ProductOperation">
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//ProductOperation/MULT"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//ProductOperation/DIV"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//ProductOperation/MOD"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="MyDsl.ecore#//TermOperation">
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//TermOperation/ADD"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//TermOperation/SUB"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="MyDsl.ecore#//CompareOperation">
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//CompareOperation/GREATER"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//CompareOperation/LESS"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//CompareOperation/EQUALS"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//CompareOperation/NOTEQUAL"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//CompareOperation/LESSEQUAL"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//CompareOperation/GREATEREQUAL"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="MyDsl.ecore#//BooleanOperation">
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//BooleanOperation/AND"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//BooleanOperation/OR"/>
<genEnumLiterals ecoreEnumLiteral="MyDsl.ecore#//BooleanOperation/XOR"/>
</genEnums>
<genClasses ecoreClass="MyDsl.ecore#//Model">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Model/terms"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//Expression"/>
<genClasses ecoreClass="MyDsl.ecore#//Function">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//Function/name"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Function/parameters"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//FormalParameter">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//FormalParameter/value"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//BooleanLiteral">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//BooleanLiteral/value"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//IntLiteral">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//IntLiteral/value"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//DoubleLiteral">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//DoubleLiteral/value"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//IfElseExpression">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//IfElseExpression/condition"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//IfElseExpression/trueExp"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//IfElseExpression/falseExp"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//BinaryBooleanExpression">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//BinaryBooleanExpression/left"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//BinaryBooleanExpression/operation"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//BinaryBooleanExpression/right"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//UnaryBooleanExpression">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//UnaryBooleanExpression/inner"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//Comparison">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Comparison/left"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//Comparison/operation"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Comparison/right"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//Term">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Term/left"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//Term/operation"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Term/right"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//Product">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Product/left"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute MyDsl.ecore#//Product/operation"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Product/right"/>
</genClasses>
<genClasses ecoreClass="MyDsl.ecore#//Power">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Power/base"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference MyDsl.ecore#//Power/exponent"/>
</genClasses>
</genPackages>
</genmodel:GenModel>
/**
*/
package org.xtext.example.mydsl.myDsl;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Binary Boolean Expression</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.xtext.example.mydsl.myDsl.BinaryBooleanExpression#getLeft <em>Left</em>}</li>
* <li>{@link org.xtext.example.mydsl.myDsl.BinaryBooleanExpression#getOperation <em>Operation</em>}</li>
* <li>{@link org.xtext.example.mydsl.myDsl.BinaryBooleanExpression#getRight <em>Right</em>}</li>
* </ul>
* </p>
*
* @see org.xtext.example.mydsl.myDsl.MyDslPackage#getBinaryBooleanExpression()
* @model
* @generated
*/
public interface BinaryBooleanExpression extends Expression
{
/**
* Returns the value of the '<em><b>Left</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Left</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Left</em>' containment reference.
* @see #setLeft(Expression)
* @see org.xtext.example.mydsl.myDsl.MyDslPackage#getBinaryBooleanExpression_Left()
* @model containment="true"
* @generated
*/
Expression getLeft();
/**
* Sets the value of the '{@link org.xtext.example.mydsl.myDsl.BinaryBooleanExpression#getLeft <em>Left</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Left</em>' containment reference.
* @see #getLeft()
* @generated
*/
void setLeft(Expression value);
/**
* Returns the value of the '<em><b>Operation</b></em>' attribute.
* The literals are from the enumeration {@link org.xtext.example.mydsl.myDsl.BooleanOperation}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Operation</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Operation</em>' attribute.
* @see org.xtext.example.mydsl.myDsl.BooleanOperation
* @see #setOperation(BooleanOperation)
* @see org.xtext.example.mydsl.myDsl.MyDslPackage#getBinaryBooleanExpression_Operation()
* @model
* @generated
*/
BooleanOperation getOperation();
/**
* Sets the value of the '{@link org.xtext.example.mydsl.myDsl.BinaryBooleanExpression#getOperation <em>Operation</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Operation</em>' attribute.
* @see org.xtext.example.mydsl.myDsl.BooleanOperation
* @see #getOperation()
* @generated
*/
void setOperation(BooleanOperation value);
/**
* Returns the value of the '<em><b>Right</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Right</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Right</em>' containment reference.
* @see #setRight(Expression)
* @see org.xtext.example.mydsl.myDsl.MyDslPackage#getBinaryBooleanExpression_Right()
* @model containment="true"
* @generated
*/
Expression getRight();
/**
* Sets the value of the '{@link org.xtext.example.mydsl.myDsl.BinaryBooleanExpression#getRight <em>Right</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Right</em>' containment reference.
* @see #getRight()
* @generated
*/
void setRight(Expression value);
} // BinaryBooleanExpression
/**
*/
package org.xtext.example.mydsl.myDsl;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Boolean Literal</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.xtext.example.mydsl.myDsl.BooleanLiteral#isValue <em>Value</em>}</li>
* </ul>
* </p>
*
* @see org.xtext.example.mydsl.myDsl.MyDslPackage#getBooleanLiteral()
* @model
* @generated
*/
public interface BooleanLiteral extends Expression
{
/**
* Returns the value of the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Value</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' attribute.
* @see #setValue(boolean)
* @see org.xtext.example.mydsl.myDsl.MyDslPackage#getBooleanLiteral_Value()
* @model
* @generated
*/
boolean isValue();
/**
* Sets the value of the '{@link org.xtext.example.mydsl.myDsl.BooleanLiteral#isValue <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' attribute.
* @see #isValue()
* @generated
*/
void setValue(boolean value);
} // BooleanLiteral
/**
*/
package org.xtext.example.mydsl.myDsl;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Boolean Operation</b></em>',
* and utility methods for working with them.
* <!-- end-user-doc -->
* @see org.xtext.example.mydsl.myDsl.MyDslPackage#getBooleanOperation()
* @model
* @generated
*/
public enum BooleanOperation implements Enumerator
{
/**
* The '<em><b>AND</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #AND_VALUE
* @generated
* @ordered
*/
AND(0, "AND", "AND"),
/**
* The '<em><b>OR</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #OR_VALUE
* @generated
* @ordered
*/
OR(1, "OR", "OR"),
/**
* The '<em><b>XOR</b></em>' literal object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #XOR_VALUE
* @generated
* @ordered
*/
XOR(2, "XOR", "XOR");
/**
* The '<em><b>AND</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>AND</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #AND
* @model
* @generated
* @ordered
*/
public static final int AND_VALUE = 0;
/**
* The '<em><b>OR</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>OR</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #OR
* @model
* @generated
* @ordered
*/
public static final int OR_VALUE = 1;
/**
* The '<em><b>XOR</b></em>' literal value.
* <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>XOR</b></em>' literal object isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @see #XOR
* @model
* @generated
* @ordered
*/
public static final int XOR_VALUE = 2;
/**
* An array of all the '<em><b>Boolean Operation</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private static final BooleanOperation[] VALUES_ARRAY =
new BooleanOperation[]
{
AND,
OR,
XOR,
};
/**
* A public read-only list of all the '<em><b>Boolean Operation</b></em>' enumerators.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final List<BooleanOperation> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
* Returns the '<em><b>Boolean Operation</b></em>' literal with the specified literal value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static BooleanOperation get(String literal)
{
for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
BooleanOperation result = VALUES_ARRAY[i];
if (result.toString().equals(literal))
{
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Boolean Operation</b></em>' literal with the specified name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static BooleanOperation getByName(String name)
{
for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
BooleanOperation result = VALUES_ARRAY[i];
if (result.getName().equals(name))
{
return result;
}
}
return null;
}
/**
* Returns the '<em><b>Boolean Operation</b></em>' literal with the specified integer value.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static BooleanOperation get(int value)
{
switch (value)
{
case AND_VALUE: return AND;
case OR_VALUE: return OR;
case XOR_VALUE: return XOR;
}
return null;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private final String literal;
/**
* Only this class can construct instances.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private BooleanOperation(int value, String name, String literal)
{
this.value = value;
this.name = name;
this.literal = literal;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public int getValue()
{
return value;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName()
{
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getLiteral()
{
return literal;
}
/**
* Returns the literal value of the enumerator, which is its string representation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString()
{
return literal;
}
} //BooleanOperation
/**
*/
package org.xtext.example.mydsl.myDsl;
import java.math.BigDecimal;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Double Literal</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link org.xtext.example.mydsl.myDsl.DoubleLiteral#getValue <em>Value</em>}</li>
* </ul>
* </p>
*
* @see org.xtext.example.mydsl.myDsl.MyDslPackage#getDoubleLiteral()
* @model
* @generated
*/
public interface DoubleLiteral extends Expression
{
/**
* Returns the value of the '<em><b>Value</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Value</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Value</em>' attribute.
* @see #setValue(BigDecimal)
* @see org.xtext.example.mydsl.myDsl.MyDslPackage#getDoubleLiteral_Value()
* @model
* @generated
*/
BigDecimal getValue();
/**
* Sets the value of the '{@link org.xtext.example.mydsl.myDsl.DoubleLiteral#getValue <em>Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Value</em>' attribute.
* @see #getValue()
* @generated
*/
void setValue(BigDecimal value);
} // DoubleLiteral
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment