Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emfatic language does not allow setting the 'literal' attribute of EEnumLiteral #2

Open
eclipsewebmaster opened this issue Sep 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@eclipsewebmaster
Copy link

Jörn Guy Süß CLA 2022-12-14 00:48:24 EST
The grammar of Emfatic defines an EEnumliteral like this:

sequence enumLiteral : leadingAnnotations=annotations name=ID (EQUALS val=INT_LITERAL)? trailingAnnotations=annotations SEMI ;

But Ecore defines it like this:
https://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EEnumLiteral.html

with an extra attribute literal, defined as

This is the literal, string value that represents this enumerator value. This is used in persisting instances of enumerated type. If set to null, it will return the name, instead.

Checking the source code of Emfatic, there is no call to the setLiteral() method anywhere. This, together with the grammar, seems to indicate that Emfatic does not offer this feature.

Could this please be added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant