grammar
Grammar
rules
Rule
parentGrammar
lhs
rhs
name
priority
EmbeddingMechanism
LHS
parentRule
node
RHS
parentRule
subGraph
Embedding
ParentRule
instructions
ConnexionInstruction
parentEmbedding
m
d
<?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="grammar" nsURI="http://grammar/1.0" nsPrefix="grammar">
  <eClassifiers xsi:type="ecore:EClass" name="Grammar" eSuperTypes="../../GraphModel/model/graph.ecore#//Named">
    <eStructuralFeatures xsi:type="ecore:EReference" name="rules" upperBound="-1"
        eType="#//Rule" containment="true" eOpposite="#//Rule/parentGrammar"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Rule">
    <eStructuralFeatures xsi:type="ecore:EReference" name="parentGrammar" lowerBound="1"
        eType="#//Grammar" eOpposite="#//Grammar/rules"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="lhs" lowerBound="1" eType="#//LHS"
        containment="true" eOpposite="#//LHS/parentRule"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="rhs" lowerBound="1" eType="#//RHS"
        containment="true" eOpposite="#//RHS/parentRule"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="priority" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="EmbeddingMechanism" lowerBound="1"
        eType="#//Embedding" containment="true" eOpposite="#//Embedding/ParentRule"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="LHS">
    <eStructuralFeatures xsi:type="ecore:EReference" name="parentRule" lowerBound="1"
        eType="#//Rule" eOpposite="#//Rule/lhs"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="node" lowerBound="1" eType="ecore:EClass ../../GraphModel/model/graph.ecore#//Node"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="RHS">
    <eStructuralFeatures xsi:type="ecore:EReference" name="parentRule" lowerBound="1"
        eType="#//Rule" eOpposite="#//Rule/rhs"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="subGraph" lowerBound="1"
        eType="ecore:EClass ../../GraphModel/model/graph.ecore#//Graph"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Embedding">
    <eStructuralFeatures xsi:type="ecore:EReference" name="ParentRule" lowerBound="1"
        eType="#//Rule" eOpposite="#//Rule/EmbeddingMechanism"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="instructions" upperBound="-1"
        eType="#//ConnexionInstruction" containment="true" eOpposite="#//ConnexionInstruction/parentEmbedding"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ConnexionInstruction">
    <eStructuralFeatures xsi:type="ecore:EReference" name="parentEmbedding" lowerBound="1"
        eType="#//Embedding" eOpposite="#//Embedding/instructions"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="m" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="d" eType="ecore:EClass ../../GraphModel/model/graph.ecore#//Node"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"grammar","nsURI":"http://grammar/1.0","name":"grammar","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Grammar","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Rule","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"LHS","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"RHS","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Embedding","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ConnexionInstruction","instanceClass":null,"abstract":false,"id":6,"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":"rules","changeable":true,"resolveProxies":true,"lowerBound":0,"id":7,"derived":false},{"id":8,"eClass":"EGenericType"},{"id":9,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"parentGrammar","changeable":true,"resolveProxies":true,"lowerBound":1,"id":10,"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":"lhs","changeable":true,"resolveProxies":true,"lowerBound":1,"id":11,"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":"rhs","changeable":true,"resolveProxies":true,"lowerBound":1,"id":12,"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":"name","changeable":true,"lowerBound":0,"iD":false,"id":13,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"priority","changeable":true,"lowerBound":0,"iD":false,"id":14,"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":"EmbeddingMechanism","changeable":true,"resolveProxies":true,"lowerBound":1,"id":15,"derived":false},{"id":16,"eClass":"EGenericType"},{"id":17,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"parentRule","changeable":true,"resolveProxies":true,"lowerBound":1,"id":18,"derived":false},{"id":19,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"parentRule","changeable":true,"resolveProxies":true,"lowerBound":1,"id":20,"derived":false},{"id":21,"eClass":"EGenericType"},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"ParentRule","changeable":true,"resolveProxies":true,"lowerBound":1,"id":24,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"node","changeable":true,"resolveProxies":true,"lowerBound":1,"id":25,"derived":false},{"id":26,"eClass":"EGenericType"},{"id":27,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"subGraph","changeable":true,"resolveProxies":true,"lowerBound":1,"id":28,"derived":false},{"id":29,"eClass":"EGenericType"},{"id":30,"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":"instructions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":31,"derived":false},{"id":32,"eClass":"EGenericType"},{"id":33,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"parentEmbedding","changeable":true,"resolveProxies":true,"lowerBound":1,"id":34,"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":"m","changeable":true,"lowerBound":0,"iD":false,"id":35,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"d","changeable":true,"resolveProxies":true,"lowerBound":0,"id":36,"derived":false},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"id":39,"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":1,"target":0},{"source":1,"target":7},{"source":1,"target":8},{"source":7,"target":2},{"source":7,"target":9},{"source":7,"target":1},{"source":7,"target":10},{"source":9,"target":2},{"source":2,"target":0},{"source":2,"target":10},{"source":2,"target":11},{"source":2,"target":12},{"source":2,"target":13},{"source":2,"target":14},{"source":2,"target":15},{"source":10,"target":1},{"source":10,"target":16},{"source":10,"target":2},{"source":10,"target":7},{"source":16,"target":1},{"source":11,"target":3},{"source":11,"target":17},{"source":11,"target":2},{"source":11,"target":18},{"source":17,"target":3},{"source":12,"target":4},{"source":12,"target":19},{"source":12,"target":2},{"source":12,"target":20},{"source":19,"target":4},{"source":13,"target":21},{"source":13,"target":2},{"source":14,"target":22},{"source":14,"target":2},{"source":15,"target":5},{"source":15,"target":23},{"source":15,"target":2},{"source":15,"target":24},{"source":23,"target":5},{"source":3,"target":0},{"source":3,"target":18},{"source":3,"target":25},{"source":18,"target":2},{"source":18,"target":26},{"source":18,"target":3},{"source":18,"target":11},{"source":26,"target":2},{"source":25,"target":27},{"source":25,"target":3},{"source":4,"target":0},{"source":4,"target":20},{"source":4,"target":28},{"source":20,"target":2},{"source":20,"target":29},{"source":20,"target":4},{"source":20,"target":12},{"source":29,"target":2},{"source":28,"target":30},{"source":28,"target":4},{"source":5,"target":0},{"source":5,"target":24},{"source":5,"target":31},{"source":24,"target":2},{"source":24,"target":32},{"source":24,"target":5},{"source":24,"target":15},{"source":32,"target":2},{"source":31,"target":6},{"source":31,"target":33},{"source":31,"target":5},{"source":31,"target":34},{"source":33,"target":6},{"source":6,"target":0},{"source":6,"target":34},{"source":6,"target":35},{"source":6,"target":36},{"source":34,"target":5},{"source":34,"target":37},{"source":34,"target":6},{"source":34,"target":31},{"source":37,"target":5},{"source":35,"target":38},{"source":35,"target":6},{"source":36,"target":39},{"source":36,"target":6}],"multigraph":true}