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

How to represent OCL expressions in the TCS mapping model? (#86) #99

Open
StephanErb opened this issue Aug 23, 2011 · 1 comment
Open

Comments

@StephanErb
Copy link
Member

As long as we use #foreach and #context, we need to either keep the String version of the OCL expression, or we need to replace those by "self", set the parsing context, parse into an OCLExpression AST and store with it whether the #foreach or #context([tag]) are to be used as context element for evaluation. For semantic disambituation, the source of an operation template may also be used as context.

@StephanErb
Copy link
Member Author

Axel Uhl ([email protected]) wrote on 2010-12-22 09:29:18

We should introduce an EReference already which allows us to store / persistently cache the compiled OCLExpression. However, it won't be the TCSParser for now that does the work. It will rather be the runtime that, when evaluating such an OCL expression for the first time, will compile and then cache it in this reference.

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

No branches or pull requests

1 participant