How to integrate a class I want to use in a generator template ?

hello,
I am a new MPS user and I want to create a DSL that can make easy testing a simple java class that multiply two integer.
My language allow to create scenario to test it via BDD notation.
So I need a way to integrate my Multiply class in MPS so that I can use it in the generator template.
Actually, I also generate the Multiply class in a generator template. Is this the better way to integrate a class we want to use in generated files ?
1 comment
Hi,

my feeling is that you need to follow the instructions over here http://forum.jetbrains.com/thread/Meta-Programming-System-2118 in order to include external Java code in your generator.
In brief, you need to include the Java class (as source, class or a jar) in a "run-time" solution and then add a dependency to you generator so that it depends on the "run-time" solution.

Vaclav
0

Please sign in to leave a comment.