The swift-ecore package provides a pure Swift implementation of EMF/Ecore for Model-Driven Engineering.
Add to your Package.swift:
dependencies: [
.package(url: "https://github.com/mipalgu/swift-ecore.git", branch: "main"),
]
Swift 6.0 or later
macOS 15.0+, Linux, or Windows
swift-atl - ATL model transformations
swift-mtl - MTL code generation
swift-aql - AQL model queries
swift-modelling - Unified MDE toolkit
The package provides the ECore metamodelling framework, OCL operations, and EMFBase foundation types. For ECore, see Getting Started and Understanding Ecore. For OCL, see Getting Started and Understanding OCL.