Documentation Language: Swift

Structure

ATLExpressionXMIParser

Parses ATL/OCL expressions from Eclipse ATL XMI format.

struct ATLExpressionXMIParser

Overview

This parser reconstructs expression trees from the standard Eclipse ATL XMI representation, following the OCL metamodel structure.

Supported Expression Types

XMI Format

Expressions are identified by xsi:type attributes:

<expression xsi:type="ocl:VariableExp" varName="x"/>
<expression xsi:type="ocl:IntegerExp" integerSymbol="42"/>

Architecture

This parser uses a recursive descent approach with DOM-based XML parsing. Each expression type has a dedicated parsing method, eliminating shared state and naturally handling arbitrary nesting through recursion.

Topics

Initializers

?
init()

Creates a new expression XMI parser.

Instance Methods

F
parse(_:)

Parses an expression from XMI format.