Evaluate expression before textgen
Hello,
I have a concept with a child C of concept Expression. I've set the type of C in an interference rule to <int>.
Can I evaluate the expression before using C in textgen?
For example, in textgen it should generate
I have a concept with a child C of concept Expression. I've set the type of C in an interference rule to <int>.
Can I evaluate the expression before using C in textgen?
For example, in textgen it should generate
price: 200instead of
price: 100 + 5 * 20
1 comment
Sort by
Date
Votes

I'm afraid not at the moment, since the corresponding "evaluation-capable" behaviour methods are not implemented by many Expression subconcepts. See https://youtrack.jetbrains.com/issue/MPS-16192
Please sign in to leave a comment.