Compiler plugins
With compiler plugins the compiler can be extended.The compiler defines extension points, an extension point provides an interface which can be implemented by the plugin. These extensions are registered in the plugin.xml of the plugin.
<?xml version="1.0" encoding="UTF-8" ?>
<plugin>
<id>io.github.potjerodekool.nabu.plugin.simple</id>
<version>0.0.1</version>
<description>Simple plugin for Nabu compiler</description>
<extensions>
</extensions>
</plugin>
| Description | Interface | More |
|---|---|---|
| Custom element resolver for a DSL | io.github.potjerodekool.nabu.resolve.spi.ElementResolver | More info |
| A transformer to transform the AST. Used to transform a DSL AST to a normal AST. | io.github.potjerodekool.nabu.tools.transform.spi.CodeTransformer | More info |
| A parser to parse source code and build an AST | io.github.potjerodekool.nabu.lang.spi.LanguageParser | More info |