W3cubDocs

/Nim

pluginsupport

Source Edit

Plugin support for the Nim compiler. Right now plugins need to be built with the compiler only: plugins using DLLs or the FFI will not work.

Imports

ast, semdata, idents

Types

Plugin = tuple[package, module, fn: string, t: Transformation]
Source Edit
Transformation = proc (c: PContext; n: PNode): PNode {.nimcall.}
Source Edit

Procs

proc pluginMatches(ic: IdentCache; p: Plugin; s: PSym): bool {....raises: [],
    tags: [], forbids: [].}
Source Edit

© 2006–2024 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/pluginsupport.html