nixd
Loading...
Searching...
No Matches
nixf::PrimOpInfo Struct Reference

#include <PrimOpInfo.h>

Public Attributes

std::vector< std::string > Args
size_t Arity = 0
std::string Doc
bool Internal

Detailed Description

Info about a primitive operation, but omit the implementation.

Definition at line 11 of file PrimOpInfo.h.

Member Data Documentation

◆ Args

std::vector<std::string> nixf::PrimOpInfo::Args

Names of the parameters of a primop, for primops that take a fixed number of arguments to be substituted for these parameters.

Definition at line 16 of file PrimOpInfo.h.

◆ Arity

size_t nixf::PrimOpInfo::Arity = 0

Aritiy of the primop.

If args is not empty, this field will be computed from that field instead, so it doesn't need to be manually set.

Definition at line 24 of file PrimOpInfo.h.

◆ Doc

std::string nixf::PrimOpInfo::Doc

Optional free-form documentation about the primop.

Definition at line 29 of file PrimOpInfo.h.

◆ Internal

bool nixf::PrimOpInfo::Internal

If true, this primop is not exposed to the user.

Definition at line 34 of file PrimOpInfo.h.


The documentation for this struct was generated from the following file: