Module context

Source
Expand description

This module defines the CompileContext and associated structures used for compiling a regular expression NFA into a WASM module.

Structsยง

ActiveDataSegment
Represents an active data segment to be included in the WASM module.
BlockSignature
Describes the signature of a block type (e.g., for if, loop, block). It includes a descriptive name, parameter types, and result types.
CompileContext
This struct contains all the input and intermediate state needed to compile the WASM module.
Function
Contains the full definition of a function: signature and definition.
FunctionDefinition
Contains the definition of a function: its body, local names, label names, and branch hints.
FunctionIdx
This index type represents a pointer to a specific Function.
FunctionSignature
Describes the signature of a function: its name, parameters, results, and export status.
Sections
Contains the various sections of a WASM module being built. Declarations are added here, and definitions are stored for later assembly.
TypeIdx
This index type represents a pointer to a specific type, be it function or block signature.