mathinterpreter
Model
mathexpression
MathExpression
description
expression
Function
DefineExpr
variables
Variable
name
expression
External
name
arguments
PMExpression
left
operator
right
MDExpression
PowExpression
Power
PlusMinus
MultiplyDivide
Primary
VariableName
name
Number
value
Positive
Negative
PMParenthesis
expression
DefParenthesis
Pow
Plus
Minus
Multiply
Divide
<?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="mathinterpreter" nsURI="http://www.xtext.org/assingment2/Mathinterpreter"
    nsPrefix="mathinterpreter">
  <eClassifiers xsi:type="ecore:EClass" name="Model">
    <eStructuralFeatures xsi:type="ecore:EReference" name="mathexpression" upperBound="-1"
        eType="#//MathExpression" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="MathExpression">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="expression" eType="#//PMExpression"
        containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Function" eSuperTypes="#//MathExpression"/>
  <eClassifiers xsi:type="ecore:EClass" name="DefineExpr" eSuperTypes="#//MathExpression #//DefParenthesis">
    <eStructuralFeatures xsi:type="ecore:EReference" name="variables" upperBound="-1"
        eType="#//Variable" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Variable">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="expression" eType="#//PMExpression"
        containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="External" eSuperTypes="#//Primary">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="arguments" upperBound="-1"
        eType="#//Primary" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="PMExpression">
    <eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//PMExpression"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="operator" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//MDExpression"
        containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="MDExpression" eSuperTypes="#//PMExpression"/>
  <eClassifiers xsi:type="ecore:EClass" name="PowExpression" eSuperTypes="#//MDExpression"/>
  <eClassifiers xsi:type="ecore:EClass" name="Power"/>
  <eClassifiers xsi:type="ecore:EClass" name="PlusMinus"/>
  <eClassifiers xsi:type="ecore:EClass" name="MultiplyDivide"/>
  <eClassifiers xsi:type="ecore:EClass" name="Primary" eSuperTypes="#//PowExpression"/>
  <eClassifiers xsi:type="ecore:EClass" name="VariableName" eSuperTypes="#//Primary">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Number" eSuperTypes="#//Primary">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Positive" eSuperTypes="#//Number"/>
  <eClassifiers xsi:type="ecore:EClass" name="Negative" eSuperTypes="#//Number"/>
  <eClassifiers xsi:type="ecore:EClass" name="PMParenthesis" eSuperTypes="#//Primary">
    <eStructuralFeatures xsi:type="ecore:EReference" name="expression" eType="#//PMExpression"
        containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="DefParenthesis" eSuperTypes="#//Primary"/>
  <eClassifiers xsi:type="ecore:EClass" name="Pow" eSuperTypes="#//Power"/>
  <eClassifiers xsi:type="ecore:EClass" name="Plus" eSuperTypes="#//PlusMinus"/>
  <eClassifiers xsi:type="ecore:EClass" name="Minus" eSuperTypes="#//PlusMinus"/>
  <eClassifiers xsi:type="ecore:EClass" name="Multiply" eSuperTypes="#//MultiplyDivide"/>
  <eClassifiers xsi:type="ecore:EClass" name="Divide" eSuperTypes="#//MultiplyDivide"/>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"mathinterpreter","nsURI":"http://www.xtext.org/assingment2/Mathinterpreter","name":"mathinterpreter","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Model","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MathExpression","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Function","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"DefineExpr","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Variable","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"External","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PMExpression","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MDExpression","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PowExpression","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Power","instanceClass":null,"abstract":false,"id":10,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PlusMinus","instanceClass":null,"abstract":false,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MultiplyDivide","instanceClass":null,"abstract":false,"id":12,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Primary","instanceClass":null,"abstract":false,"id":13,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"VariableName","instanceClass":null,"abstract":false,"id":14,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Number","instanceClass":null,"abstract":false,"id":15,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Positive","instanceClass":null,"abstract":false,"id":16,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Negative","instanceClass":null,"abstract":false,"id":17,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PMParenthesis","instanceClass":null,"abstract":false,"id":18,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"DefParenthesis","instanceClass":null,"abstract":false,"id":19,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Pow","instanceClass":null,"abstract":false,"id":20,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Plus","instanceClass":null,"abstract":false,"id":21,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Minus","instanceClass":null,"abstract":false,"id":22,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Multiply","instanceClass":null,"abstract":false,"id":23,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Divide","instanceClass":null,"abstract":false,"id":24,"interface":false,"eClass":"EClass"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"mathexpression","changeable":true,"resolveProxies":true,"lowerBound":0,"id":25,"derived":false},{"id":26,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"description","changeable":true,"lowerBound":0,"iD":false,"id":27,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"expression","changeable":true,"resolveProxies":true,"lowerBound":0,"id":28,"derived":false},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"variables","changeable":true,"resolveProxies":true,"lowerBound":0,"id":32,"derived":false},{"id":33,"eClass":"EGenericType"},{"id":34,"eClass":"EGenericType"},{"id":35,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":36,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"expression","changeable":true,"resolveProxies":true,"lowerBound":0,"id":37,"derived":false},{"id":38,"eClass":"EGenericType"},{"id":39,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":40,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"arguments","changeable":true,"resolveProxies":true,"lowerBound":0,"id":41,"derived":false},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"id":44,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"left","changeable":true,"resolveProxies":true,"lowerBound":0,"id":45,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"operator","changeable":true,"resolveProxies":true,"lowerBound":0,"id":46,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"right","changeable":true,"resolveProxies":true,"lowerBound":0,"id":47,"derived":false},{"id":48,"eClass":"EGenericType"},{"id":49,"eClass":"EGenericType"},{"id":50,"eClass":"EGenericType"},{"id":51,"eClass":"EGenericType"},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":54,"derived":false},{"id":55,"eClass":"EGenericType"},{"id":56,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"value","changeable":true,"lowerBound":0,"iD":false,"id":57,"derived":false},{"id":58,"eClass":"EGenericType"},{"id":59,"eClass":"EGenericType"},{"id":60,"eClass":"EGenericType"},{"id":61,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"expression","changeable":true,"resolveProxies":true,"lowerBound":0,"id":62,"derived":false},{"id":63,"eClass":"EGenericType"},{"id":64,"eClass":"EGenericType"},{"id":65,"eClass":"EGenericType"},{"id":66,"eClass":"EGenericType"},{"id":67,"eClass":"EGenericType"},{"id":68,"eClass":"EGenericType"},{"id":69,"eClass":"EGenericType"},{"id":70,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":0,"target":6},{"source":0,"target":7},{"source":0,"target":8},{"source":0,"target":9},{"source":0,"target":10},{"source":0,"target":11},{"source":0,"target":12},{"source":0,"target":13},{"source":0,"target":14},{"source":0,"target":15},{"source":0,"target":16},{"source":0,"target":17},{"source":0,"target":18},{"source":0,"target":19},{"source":0,"target":20},{"source":0,"target":21},{"source":0,"target":22},{"source":0,"target":23},{"source":0,"target":24},{"source":1,"target":0},{"source":1,"target":25},{"source":25,"target":2},{"source":25,"target":26},{"source":25,"target":1},{"source":26,"target":2},{"source":2,"target":0},{"source":2,"target":27},{"source":2,"target":28},{"source":27,"target":29},{"source":27,"target":2},{"source":28,"target":7},{"source":28,"target":30},{"source":28,"target":2},{"source":30,"target":7},{"source":3,"target":0},{"source":3,"target":2},{"source":3,"target":31},{"source":31,"target":2},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":19},{"source":4,"target":32},{"source":4,"target":33},{"source":4,"target":34},{"source":32,"target":5},{"source":32,"target":35},{"source":32,"target":4},{"source":35,"target":5},{"source":33,"target":2},{"source":34,"target":19},{"source":5,"target":0},{"source":5,"target":36},{"source":5,"target":37},{"source":36,"target":38},{"source":36,"target":5},{"source":37,"target":7},{"source":37,"target":39},{"source":37,"target":5},{"source":39,"target":7},{"source":6,"target":0},{"source":6,"target":13},{"source":6,"target":40},{"source":6,"target":41},{"source":6,"target":42},{"source":40,"target":43},{"source":40,"target":6},{"source":41,"target":13},{"source":41,"target":44},{"source":41,"target":6},{"source":44,"target":13},{"source":42,"target":13},{"source":7,"target":0},{"source":7,"target":45},{"source":7,"target":46},{"source":7,"target":47},{"source":45,"target":7},{"source":45,"target":48},{"source":45,"target":7},{"source":48,"target":7},{"source":46,"target":49},{"source":46,"target":7},{"source":47,"target":8},{"source":47,"target":50},{"source":47,"target":7},{"source":50,"target":8},{"source":8,"target":0},{"source":8,"target":7},{"source":8,"target":51},{"source":51,"target":7},{"source":9,"target":0},{"source":9,"target":8},{"source":9,"target":52},{"source":52,"target":8},{"source":10,"target":0},{"source":11,"target":0},{"source":12,"target":0},{"source":13,"target":0},{"source":13,"target":9},{"source":13,"target":53},{"source":53,"target":9},{"source":14,"target":0},{"source":14,"target":13},{"source":14,"target":54},{"source":14,"target":55},{"source":54,"target":56},{"source":54,"target":14},{"source":55,"target":13},{"source":15,"target":0},{"source":15,"target":13},{"source":15,"target":57},{"source":15,"target":58},{"source":57,"target":59},{"source":57,"target":15},{"source":58,"target":13},{"source":16,"target":0},{"source":16,"target":15},{"source":16,"target":60},{"source":60,"target":15},{"source":17,"target":0},{"source":17,"target":15},{"source":17,"target":61},{"source":61,"target":15},{"source":18,"target":0},{"source":18,"target":13},{"source":18,"target":62},{"source":18,"target":63},{"source":62,"target":7},{"source":62,"target":64},{"source":62,"target":18},{"source":64,"target":7},{"source":63,"target":13},{"source":19,"target":0},{"source":19,"target":13},{"source":19,"target":65},{"source":65,"target":13},{"source":20,"target":0},{"source":20,"target":10},{"source":20,"target":66},{"source":66,"target":10},{"source":21,"target":0},{"source":21,"target":11},{"source":21,"target":67},{"source":67,"target":11},{"source":22,"target":0},{"source":22,"target":11},{"source":22,"target":68},{"source":68,"target":11},{"source":23,"target":0},{"source":23,"target":12},{"source":23,"target":69},{"source":69,"target":12},{"source":24,"target":0},{"source":24,"target":12},{"source":24,"target":70},{"source":70,"target":12}],"multigraph":true}