Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: §wip/atl/DiagramInterchange/extracted
Source used for this grammar: Hugo Brunelière, DiagramInterchange 1.0, DiagramInterchange.ecore
, 2005/08/11
Dimension
, Point
, BezierPoint
, Property
, DiagramElement
, Reference
, GraphElement
, GraphEdge
, GraphNode
, GraphConnector
, DiagramLink
, SemanticModelBridge
, Diagram
, SimpleSemanticModelElement
, UML1SemanticModelBridge
, CoreSemanticModelBridge
, CoreElement
, ElementsElement
, LeafElement
, TextElement
, Image
, GraphicPrimitive
, Polyline
, Ellipse
, Integer
, String
, Boolean
), 0 root (—), 2 top (Property
, Integer
), 1 bottom (Double
11).[width]
, [heigth]
, [x]
, [y]
, [controls]
, [key]
, [value]
, [isIndividualRepresentation]
, [referenced]
, [waypoints]
2, [anchors]
, [size]
, [position]
, [gc_graphElement]
, [graphEdges]
, [zoom]
2, [viewPort]
2, [dl_graphElement]
, [dl_diagram]
, [name]
, [diagramLinks]
, [namespace]
, [typeInfo]
, [element]
2, [text]
, [uri]
, [mimeType]
, [closed]
, [center]
, [radiusX]
, [radiusY]
, [rotation]
, [startAngle]
, [endAngle]
.Dimension ::= [width]::Double [heigth]::Double
Point ::= BezierPoint
Point ::= [x]::Double [y]::Double
BezierPoint ::= [controls]::Point
Property ::= [key]::String [value]::String
DiagramElement ::= Reference
DiagramElement ::= GraphElement
DiagramElement ::= LeafElement
Reference ::= [isIndividualRepresentation]::Boolean [referenced]::DiagramElement
GraphElement ::= GraphEdge
GraphElement ::= GraphNode
GraphEdge ::= [waypoints]::Point [anchors]::GraphConnector
GraphNode ::= Diagram
GraphNode ::= [size]::Dimension
GraphConnector ::=
[position]::Point [gc_graphElement]::GraphElement [graphEdges]::GraphEdge
DiagramLink ::= [zoom]::Double [viewPort]::Point [dl_graphElement]::GraphElement [dl_diagram]::Diagram
SemanticModelBridge ::= SimpleSemanticModelElement
SemanticModelBridge ::= UML1SemanticModelBridge
SemanticModelBridge ::= CoreSemanticModelBridge
Diagram ::=
[name]::String [zoom]::Double [viewPort]::Point [diagramLinks]::DiagramLink
[namespace]::SemanticModelBridgeSimpleSemanticModelElement ::= [typeInfo]::String
UML1SemanticModelBridge ::= [element]::CoreElement
CoreSemanticModelBridge ::= [element]::ElementsElement
CoreElement ::= ε
ElementsElement ::= ε
LeafElement ::= TextElement
LeafElement ::= Image
LeafElement ::= GraphicPrimitive
TextElement ::= [text]::String
Image ::= [uri]::String [mimeType]::String
GraphicPrimitive ::= Polyline
GraphicPrimitive ::= Ellipse
Polyline ::= [waypoints]::Point [closed]::Boolean
Ellipse ::= [center]::Point [radiusX]::Double [radiusY]::Double [rotation]::Double [startAngle]::Double [endAngle]::Double
Integer ::= integer
String ::= string
Boolean ::= "true" "false"