Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

Building the AST ​

Frontend - Building the ASTDatapackcreateFunction(name)public(name)FunctionRefbuild(ctx => …)FunctionContextsay() / if() / tellraw() …FunctionNodenodes[]Each ctx.<cmd>() is added by itsown file in commands/.returnsbuild() hands youpushes nodes into

Each ctx.<cmd>() pushes one node. Methods are added to FunctionContext by their own file in commands/, so the context class itself has no command methods.

Released under the MIT License · Credits
These docs were written with AI; the layout and every page have been reviewed by a human.