Browsable DiagramInterchange 1.0 Grammar

CC-BY

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

Summary

Syntax

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]::SemanticModelBridge
SimpleSemanticModelElement ::=
	[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"

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []