> On 04 Sep 2016, at 20:48, Serge Stinckwich <
[hidden email]> wrote:
>
> I have one question about Opal Compiler.
>
> I would like do an AST transformation before using the compiler. If I
> understand correctly, I have to built a subclass of
> OCCompilerASTPlugin ? Is it correct ?
Yes. See the example ASTPluginMeaningOfLife
Plugins are not active by default, you need to compile with a compiler that includes your plugin.
e.g. add on the class side
compiler
"the example plugin is active for this class"
^super compiler addPlugin: ASTPluginMeaningOfLife.
to enable it for this hierarchy.
( see ASTTransformExamplePluginActive )
> Any documentation more update about Opal than this :
>
https://github.com/SquareBracketAssociates/PharoLimbo/tree/master/OpalThere is the paper:
https://marcusdenker.de/publications/Bera13a-OpalIWST.pdfBut it is not a tutorial.
Marcus