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 to define transient attributes in templates (#87) #100

Open
StephanErb opened this issue Aug 23, 2011 · 0 comments
Open

Allow to define transient attributes in templates (#87) #100

StephanErb opened this issue Aug 23, 2011 · 0 comments

Comments

@StephanErb
Copy link
Member

To allow for the use of mutiple tokens within a query that are recognized separately something like "transient attributes" in templates would be useful.

For example:
template A
: ${a} = "#" template{as=identifier,
query=Template.allInstances()->select(name=${a} and mode=?)}
;

"a" is not a property of class A but is required in the query. The above example syntax could be used to define an extra token "a" in the template for which the parse rule "identifier" is called. The value of "a" could then be used in the query to resolve a model element for "template".

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