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
AbstractPrimitive
class. I collect the primitives in a registry that extendsAbstractStrategoOperatorRegistry
.How can I register the
Asked by Sebastian Erdweg on 13 December 2013 at 14:56AbstractStrategoOperatorRegistry
in a Spoofax project, so that my regular Stratego strategies can access them?
1 Answer
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