WebAssembly.Core.Engine

Elements-assembling engine used internally by WebAssembly.Builder and WebAssembly.DSL.

Summary

fire()

Fire up the engine accessible within the current Erlang process

new_scope()

Open new scope

push(value)

Push value into the current scope

release_scope()

Release the current scope, merging it with the uplevel one

return()

Shutdown the engine and return the assembled structure

Functions

fire()

Specs:

  • fire :: :ok

Fire up the engine accessible within the current Erlang process.

new_scope()

Specs:

  • new_scope :: :ok

Open new scope.

push(value)

Specs:

Push value into the current scope.

release_scope()

Specs:

  • release_scope :: :ok

Release the current scope, merging it with the uplevel one.

If this was the last scope, prepare the engine for return/0.

return()

Specs:

Shutdown the engine and return the assembled structure.