| Crates.io | ecore_rs |
| lib.rs | ecore_rs |
| version | 0.1.0 |
| created_at | 2022-12-20 13:22:09.609378+00 |
| updated_at | 2022-12-20 13:22:09.609378+00 |
| description | A parser for the Eclipse Modeling Framework Ecore format. |
| homepage | |
| repository | https://github.com/OCamlPro/ecore.rs |
| max_upload_size | |
| id | 742341 |
| size | 560,187 |
A parser and internal representation for the Ecore format used by the Eclipse Modeling Framework (EMF).
investigate type parameters for classes
investigate type parameters for operations
builtin type constructors (Vec, Option, ...)?
A few examples are available in the rsc folder, both XML and JPG.
We currently support the following abstract layout
file =
xml_version (package)*
package =
"<ecore:Package" ... "name" "=" string ">"
(annotation | package | classifier)*
"</ecore:Package>"
# a class (concrete/abstract/enum/...)
classifier =
"<eClassifiers"
"xsi:type" "=" string
"name" "=" string
"abstract" "=" string
">"
(annotation | operation | structural_feature)
"</eClassifiers>
annotation =
"<eAnnotations"
"source" "=" string
">"
( "<details" "key" "=" string "value" "=" string ">" )*
"</eAnnotations>"
# a method
operation =
"<eOperations"
"name" "=" string
"eType" "=" string
">"
(
"<eParameters"
"name" "=" string
"lowerBound" "=" nat_string
"upperBound" "=" int_string
"eType" "=" string
">"
)*
"</eOperations>"
structural_feature =
"<eStructuralFeatures"
"xsi:type" "=" string
"name" "=" string
"eType" "=" string
"/>"