Reduct  v1.0.4-3-gdaf0d70
A functional and immutable language.
Loading...
Searching...
No Matches
reduct_function_t Struct Reference

Compiled function structure. More...

#include <function.h>

Collaboration diagram for reduct_function_t:

Data Fields

reduct_uint32_t instCount
 Number of instructions.
 
reduct_uint32_t instCapacity
 Capacity of the instruction array.
 
reduct_inst_tinsts
 An array of instructions.
 
reduct_uint32_tpositions
 An array of source positions parallel to the instructions.
 
reduct_const_slot_tconstants
 The array of constant slots forming the constant template.
 
reduct_uint16_t constantCount
 Number of constants.
 
reduct_uint16_t constantCapacity
 Capacity of the constant array.
 
reduct_uint16_t registerCount
 The number of registers the function uses.
 
reduct_uint8_t arity
 The number of arguments the function expects.
 

Detailed Description

Compiled function structure.

Definition at line 77 of file function.h.

Field Documentation

◆ instCount

reduct_uint32_t reduct_function_t::instCount

Number of instructions.

Definition at line 79 of file function.h.

◆ instCapacity

reduct_uint32_t reduct_function_t::instCapacity

Capacity of the instruction array.

Definition at line 80 of file function.h.

◆ insts

reduct_inst_t* reduct_function_t::insts

An array of instructions.

Definition at line 81 of file function.h.

◆ positions

reduct_uint32_t* reduct_function_t::positions

An array of source positions parallel to the instructions.

Definition at line 82 of file function.h.

◆ constants

reduct_const_slot_t* reduct_function_t::constants

The array of constant slots forming the constant template.

Definition at line 83 of file function.h.

◆ constantCount

reduct_uint16_t reduct_function_t::constantCount

Number of constants.

Definition at line 84 of file function.h.

◆ constantCapacity

reduct_uint16_t reduct_function_t::constantCapacity

Capacity of the constant array.

Definition at line 85 of file function.h.

◆ registerCount

reduct_uint16_t reduct_function_t::registerCount

The number of registers the function uses.

Definition at line 86 of file function.h.

◆ arity

reduct_uint8_t reduct_function_t::arity

The number of arguments the function expects.

Definition at line 87 of file function.h.


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