kmLogo
LogoProgram
variables
instructions
Instruction
Primitive
Back
steps
Forward
steps
Left
angle
Right
angle
PenDown
PenUp
Clear
Expression
Literal
IntegerLit
value
StringLit
value
BoolLit
value
ArithmeticExpression
left
right
operator
ArithmeticOperator
plus
plus
minus
minus
mult
mult
div
div
RelationalExpression
operator
left
right
RelationalOperator
lessThan
lessThan
greaterThan
greaterThan
equals
equals
notEqual
notEqual
lessThanOrEqualTo
lessThanOrEqualTo
greaterThanOrEqualTo
greaterThanOrEqualTo
VarReference
key
VarDecl
expression
key
<?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="kmLogo" nsURI="http://www.kermeta.org/kmLogo" nsPrefix="kmlogo">
  <eClassifiers xsi:type="ecore:EClass" name="LogoProgram">
    <eStructuralFeatures xsi:type="ecore:EReference" name="variables" upperBound="-1" eType="//VarDecl" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="instructions" upperBound="-1" eType="//Instruction" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Instruction" abstract="true"/>
  <eClassifiers xsi:type="ecore:EClass" name="Primitive" abstract="true" eSuperTypes="//Instruction"/>
  <eClassifiers xsi:type="ecore:EClass" name="Back" eSuperTypes="//Primitive">
    <eStructuralFeatures xsi:type="ecore:EReference" name="steps" lowerBound="1" eType="//Expression" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Forward" eSuperTypes="//Primitive">
    <eStructuralFeatures xsi:type="ecore:EReference" name="steps" lowerBound="1" eType="//Expression" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Left" eSuperTypes="//Primitive">
    <eStructuralFeatures xsi:type="ecore:EReference" name="angle" eType="//Expression" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Right" eSuperTypes="//Primitive">
    <eStructuralFeatures xsi:type="ecore:EReference" name="angle" eType="//Expression" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="PenDown" eSuperTypes="//Primitive"/>
  <eClassifiers xsi:type="ecore:EClass" name="PenUp" eSuperTypes="//Primitive"/>
  <eClassifiers xsi:type="ecore:EClass" name="Clear" eSuperTypes="//Primitive"/>
  <eClassifiers xsi:type="ecore:EClass" name="Expression" abstract="true"/>
  <eClassifiers xsi:type="ecore:EClass" name="Literal" eSuperTypes="//Expression"/>
  <eClassifiers xsi:type="ecore:EClass" name="IntegerLit" eSuperTypes="//Literal">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="StringLit" eSuperTypes="//Literal">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="BoolLit" eSuperTypes="//Literal">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ArithmeticExpression" eSuperTypes="//Expression">
    <eStructuralFeatures xsi:type="ecore:EReference" name="left" lowerBound="1" eType="//Expression" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="right" lowerBound="1" eType="//Expression" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="//ArithmeticOperator"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="ArithmeticOperator">
    <eLiterals name="plus"/>
    <eLiterals name="minus" value="1"/>
    <eLiterals name="mult" value="2"/>
    <eLiterals name="div" value="3" literal="div"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="RelationalExpression" eSuperTypes="//Expression">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="//RelationalOperator"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="left" lowerBound="1" eType="//Expression" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="right" lowerBound="1" eType="//Expression" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="RelationalOperator">
    <eLiterals name="lessThan" literal="lessThan"/>
    <eLiterals name="greaterThan" value="1" literal="greaterThan"/>
    <eLiterals name="equals" value="2" literal="equals"/>
    <eLiterals name="notEqual" value="3" literal="notEqual"/>
    <eLiterals name="lessThanOrEqualTo" value="4" literal="lessThanOrEqualTo"/>
    <eLiterals name="greaterThanOrEqualTo" value="5" literal="greaterThanOrEqualTo"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="VarReference" eSuperTypes="//Expression">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="key">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="VarDecl" eSuperTypes="//Instruction">
    <eStructuralFeatures xsi:type="ecore:EReference" name="expression" eType="//Expression" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="key">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eStructuralFeatures>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"kmlogo","nsURI":"http://www.kermeta.org/kmLogo","name":"kmLogo","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"LogoProgram","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Instruction","instanceClass":null,"abstract":true,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Primitive","instanceClass":null,"abstract":true,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Back","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Forward","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Left","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Right","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PenDown","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PenUp","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Clear","instanceClass":null,"abstract":false,"id":10,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Expression","instanceClass":null,"abstract":true,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Literal","instanceClass":null,"abstract":false,"id":12,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"IntegerLit","instanceClass":null,"abstract":false,"id":13,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"StringLit","instanceClass":null,"abstract":false,"id":14,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"BoolLit","instanceClass":null,"abstract":false,"id":15,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ArithmeticExpression","instanceClass":null,"abstract":false,"id":16,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"ArithmeticOperator","instanceClass":null,"id":17,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"RelationalExpression","instanceClass":null,"abstract":false,"id":18,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"RelationalOperator","instanceClass":null,"id":19,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"VarReference","instanceClass":null,"abstract":false,"id":20,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"VarDecl","instanceClass":null,"abstract":false,"id":21,"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":"variables","changeable":true,"resolveProxies":true,"lowerBound":0,"id":22,"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":"instructions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":23,"derived":false},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"id":26,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"steps","changeable":true,"resolveProxies":true,"lowerBound":1,"id":27,"derived":false},{"id":28,"eClass":"EGenericType"},{"id":29,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"steps","changeable":true,"resolveProxies":true,"lowerBound":1,"id":30,"derived":false},{"id":31,"eClass":"EGenericType"},{"id":32,"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":"angle","changeable":true,"resolveProxies":true,"lowerBound":0,"id":33,"derived":false},{"id":34,"eClass":"EGenericType"},{"id":35,"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":"angle","changeable":true,"resolveProxies":true,"lowerBound":0,"id":36,"derived":false},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"id":39,"eClass":"EGenericType"},{"id":40,"eClass":"EGenericType"},{"id":41,"eClass":"EGenericType"},{"id":42,"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":43,"derived":false},{"id":44,"eClass":"EGenericType"},{"id":45,"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":"value","changeable":true,"lowerBound":0,"iD":false,"id":46,"derived":false},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":false,"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":49,"derived":false},{"id":50,"eClass":"EGenericType"},{"id":51,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"left","changeable":true,"resolveProxies":true,"lowerBound":1,"id":52,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"right","changeable":true,"resolveProxies":true,"lowerBound":1,"id":53,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"operator","changeable":true,"lowerBound":0,"iD":false,"id":54,"derived":false},{"id":55,"eClass":"EGenericType"},{"id":56,"eClass":"EGenericType"},{"id":57,"eClass":"EGenericType"},{"id":58,"eClass":"EGenericType"},{"name":"plus","id":59,"value":0,"literal":"plus","eClass":"EEnumLiteral"},{"name":"minus","id":60,"value":1,"literal":"minus","eClass":"EEnumLiteral"},{"name":"mult","id":61,"value":2,"literal":"mult","eClass":"EEnumLiteral"},{"name":"div","id":62,"value":3,"literal":"div","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"operator","changeable":true,"lowerBound":0,"iD":false,"id":63,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"left","changeable":true,"resolveProxies":true,"lowerBound":1,"id":64,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"right","changeable":true,"resolveProxies":true,"lowerBound":1,"id":65,"derived":false},{"id":66,"eClass":"EGenericType"},{"id":67,"eClass":"EGenericType"},{"id":68,"eClass":"EGenericType"},{"id":69,"eClass":"EGenericType"},{"name":"lessThan","id":70,"value":0,"literal":"lessThan","eClass":"EEnumLiteral"},{"name":"greaterThan","id":71,"value":1,"literal":"greaterThan","eClass":"EEnumLiteral"},{"name":"equals","id":72,"value":2,"literal":"equals","eClass":"EEnumLiteral"},{"name":"notEqual","id":73,"value":3,"literal":"notEqual","eClass":"EEnumLiteral"},{"name":"lessThanOrEqualTo","id":74,"value":4,"literal":"lessThanOrEqualTo","eClass":"EEnumLiteral"},{"name":"greaterThanOrEqualTo","id":75,"value":5,"literal":"greaterThanOrEqualTo","eClass":"EEnumLiteral"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"key","changeable":true,"lowerBound":0,"iD":false,"id":76,"derived":false},{"id":77,"eClass":"EGenericType"},{"id":78,"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":79,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"key","changeable":true,"lowerBound":0,"iD":false,"id":80,"derived":false},{"id":81,"eClass":"EGenericType"},{"id":82,"eClass":"EGenericType"},{"id":83,"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":1,"target":0},{"source":1,"target":22},{"source":1,"target":23},{"source":22,"target":21},{"source":22,"target":24},{"source":22,"target":1},{"source":24,"target":21},{"source":23,"target":2},{"source":23,"target":25},{"source":23,"target":1},{"source":25,"target":2},{"source":2,"target":0},{"source":3,"target":0},{"source":3,"target":2},{"source":3,"target":26},{"source":26,"target":2},{"source":4,"target":0},{"source":4,"target":3},{"source":4,"target":27},{"source":4,"target":28},{"source":27,"target":11},{"source":27,"target":29},{"source":27,"target":4},{"source":29,"target":11},{"source":28,"target":3},{"source":5,"target":0},{"source":5,"target":3},{"source":5,"target":30},{"source":5,"target":31},{"source":30,"target":11},{"source":30,"target":32},{"source":30,"target":5},{"source":32,"target":11},{"source":31,"target":3},{"source":6,"target":0},{"source":6,"target":3},{"source":6,"target":33},{"source":6,"target":34},{"source":33,"target":11},{"source":33,"target":35},{"source":33,"target":6},{"source":35,"target":11},{"source":34,"target":3},{"source":7,"target":0},{"source":7,"target":3},{"source":7,"target":36},{"source":7,"target":37},{"source":36,"target":11},{"source":36,"target":38},{"source":36,"target":7},{"source":38,"target":11},{"source":37,"target":3},{"source":8,"target":0},{"source":8,"target":3},{"source":8,"target":39},{"source":39,"target":3},{"source":9,"target":0},{"source":9,"target":3},{"source":9,"target":40},{"source":40,"target":3},{"source":10,"target":0},{"source":10,"target":3},{"source":10,"target":41},{"source":41,"target":3},{"source":11,"target":0},{"source":12,"target":0},{"source":12,"target":11},{"source":12,"target":42},{"source":42,"target":11},{"source":13,"target":0},{"source":13,"target":12},{"source":13,"target":43},{"source":13,"target":44},{"source":43,"target":45},{"source":43,"target":13},{"source":44,"target":12},{"source":14,"target":0},{"source":14,"target":12},{"source":14,"target":46},{"source":14,"target":47},{"source":46,"target":48},{"source":46,"target":14},{"source":47,"target":12},{"source":15,"target":0},{"source":15,"target":12},{"source":15,"target":49},{"source":15,"target":50},{"source":49,"target":51},{"source":49,"target":15},{"source":50,"target":12},{"source":16,"target":0},{"source":16,"target":11},{"source":16,"target":52},{"source":16,"target":53},{"source":16,"target":54},{"source":16,"target":55},{"source":52,"target":11},{"source":52,"target":56},{"source":52,"target":16},{"source":56,"target":11},{"source":53,"target":11},{"source":53,"target":57},{"source":53,"target":16},{"source":57,"target":11},{"source":54,"target":17},{"source":54,"target":58},{"source":54,"target":16},{"source":58,"target":17},{"source":55,"target":11},{"source":17,"target":0},{"source":17,"target":59},{"source":17,"target":60},{"source":17,"target":61},{"source":17,"target":62},{"source":59,"target":17},{"source":60,"target":17},{"source":61,"target":17},{"source":62,"target":17},{"source":18,"target":0},{"source":18,"target":11},{"source":18,"target":63},{"source":18,"target":64},{"source":18,"target":65},{"source":18,"target":66},{"source":63,"target":19},{"source":63,"target":67},{"source":63,"target":18},{"source":67,"target":19},{"source":64,"target":11},{"source":64,"target":68},{"source":64,"target":18},{"source":68,"target":11},{"source":65,"target":11},{"source":65,"target":69},{"source":65,"target":18},{"source":69,"target":11},{"source":66,"target":11},{"source":19,"target":0},{"source":19,"target":70},{"source":19,"target":71},{"source":19,"target":72},{"source":19,"target":73},{"source":19,"target":74},{"source":19,"target":75},{"source":70,"target":19},{"source":71,"target":19},{"source":72,"target":19},{"source":73,"target":19},{"source":74,"target":19},{"source":75,"target":19},{"source":20,"target":0},{"source":20,"target":11},{"source":20,"target":76},{"source":20,"target":77},{"source":76,"target":78},{"source":76,"target":20},{"source":77,"target":11},{"source":21,"target":0},{"source":21,"target":2},{"source":21,"target":79},{"source":21,"target":80},{"source":21,"target":81},{"source":79,"target":11},{"source":79,"target":82},{"source":79,"target":21},{"source":82,"target":11},{"source":80,"target":83},{"source":80,"target":21},{"source":81,"target":2}],"multigraph":true}