How can I register primitive strategies written in Java in a Spoofax project?
STRJ supports the implementation of strategies in Java. I used this feature to create a couple of strategies by extending the
AbstractPrimitiveclass. I collect the primitives in a registry that extends
How can I register theAsked by Sebastian Erdweg on 13 December 2013 at 14:56
AbstractStrategoOperatorRegistryin a Spoofax project, so that my regular Stratego strategies can access them?
Primitives and operator registries can only be registered by STRJ itself. You should implement your Java strategies by extending the Strategy class. See the instructions on the wiki.Answered by Vlad Vergu on 13 December 2013 at 15:13