compile
@Nullable
public @Nullable Instruction compile(@NotNull
@NotNull Compiler compiler,
@NotNull
@NotNull Compilation compilation,
@NotNull
@NotNull Tree tree)
Description copied from interface: Compiler
Compile the given tree and the trees in it. If this compiler cannot If this
compiler encountered a tree that it cannot compile, this compiler will pass it to
the given fallback compiler with the given compiler as the fallback
compiler.
Unless this compiler want to change the default compiler, this compiler will invoke
the given compiler with itself as the default compiler.
- Specified by:
compile in interface Compiler
- Parameters:
compiler - a compiler this compiler must use when dealing with other
entities this compiler cannot compile.
compilation - the compilation the given tree was taken from.
tree - the tree to parse any instruction in it.
- Returns:
- the compiled instruction. Or
null if this compiler failed to
compile the given tree into an instruction.