Struct Anchor

Struct Documentation

struct sgpl::local::Anchor

Marks a program location local jump instructions may route to.

Local jump instructions enable conditionals and looping within modules. This program location is tagged with the instruction’s tag.

As described in dish2::global::Anchor’s docstring, this operation also plays a role in determining whether global anchor instructions close a module.

Public Static Functions

template<typename Spec>
void run(sgpl::Core<Spec>&, const sgpl::Instruction<Spec>&, const sgpl::Program<Spec>&, typename Spec::peripheral_t&) noexcept
std::string name()
size_t prevalence()
template<typename Spec>
auto descriptors(const sgpl::Instruction<Spec> &inst)
template<typename Spec>
std::set<std::string> categories(const sgpl::Instruction<Spec>&)