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

Allow attribute names identical to reactions keywords #94

Open
TomWerm opened this issue Aug 16, 2023 · 2 comments
Open

Allow attribute names identical to reactions keywords #94

TomWerm opened this issue Aug 16, 2023 · 2 comments

Comments

@TomWerm
Copy link
Member

TomWerm commented Aug 16, 2023

Trying to access an attribute of a class (class[attribute]) which has the same name as one of the reactions keywords (e.g. to and from for a connection) does not work, as the attribute name is lexed or parsed as the keyword instead of the attribute.

@arlange
Copy link
Member

arlange commented Oct 23, 2024

Can you post an example? A test maybe...? Sounds like something I might want to try to fix.

@TomWerm
Copy link
Member Author

TomWerm commented Oct 23, 2024

We currently do not have metamodels that define attributes that have the same name as our keywords. The problem occurs if an attribute named, e.g., to has to be used. In the example:

after element network::Endpoint inserted in network::Connection[to]

the to would be parsed as a keyword and not as an attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants