View Source Luex.Records (luex v0.0.2)

This module contains extracted luerl records.

Link to this section Summary

Types

internal represenation of a lua function, defined in BEAM function (written in Erlang / Elixir / etc)

internal represenation of a lua function, defined in BEAM function via module and function name

internal reference to a lua function

internal represenation of a lua function, defined in lua.

luerl vm instance

internal metatable represenation

interal luerl table type

internal table reference via index

interal table structure

internal reference to userdata in a virtual machine

internal structure represenating userdata

Functions

creates a record of erl_func

creates a record of erl_mfa

creates a record of funref

Check if a value is of the erl_func type.

Check if a value is of the erl_mfa type.

Check if a value is of the funref type.

Check if a value is of the lua_func type.

Check if a value is of the luerl type.

Check if a value is of the meta type.

Check if a value is of the table type.

Check if a value is of the tref type.

Check if a value is of the tstruct type.

Check if a value is of the usdref type.

Check if a value is of the userdata type.

creates a record of lua_func

creates a record of luerl

creates a record of meta

creates a record of table

creates a record of tref

creates a record of tstruct

creates a record of usdref

creates a record of userdata

Link to this section Types

@type erl_func() ::
  {:erl_func,
   code :: ([Luex.lua_value()], Luex.vm() -> {[Luex.lua_value()], Luex.vm()})}

internal represenation of a lua function, defined in BEAM function (written in Erlang / Elixir / etc)

@type erl_mfa() :: {:erl_mfa, m :: module(), f :: atom(), a :: any()}

internal represenation of a lua function, defined in BEAM function via module and function name

@type funref() :: {:funref, i :: any(), env :: any()}

internal reference to a lua function

follow reference with luerl_heap:get_funcdef/2.

@type lua_func() ::
  {:lua_func, anno :: any(), funrefs :: any(), lsz :: any(), esz :: any(),
   pars :: any(), body :: any()}

internal represenation of a lua function, defined in lua.

@type luerl() ::
  {:luerl, tabs :: any(), envs :: any(), usds :: any(), fncs :: any(),
   g :: any(), stk :: any(), cs :: any(), meta :: any(), rand :: any(),
   tag :: any(), trace_func :: any(), trace_data :: any()}

luerl vm instance

@type meta() ::
  {:meta, nil :: any(), boolean :: any(), number :: any(), string :: any()}

internal metatable represenation

@type table() :: {:table, a :: any(), d :: any(), meta :: any()}

interal luerl table type

@type tref() :: {:tref, i :: any()}

internal table reference via index

@type tstruct() ::
  {:tstruct, data :: map() | :orddict.orddict() | :array.array(), free :: any(),
   next :: any()}

interal table structure

@type usdref() :: {:usdref, i :: any()}

internal reference to userdata in a virtual machine

@type userdata() :: {:userdata, d :: any(), meta :: any()}

internal structure represenating userdata

Link to this section Functions

Link to this macro

erl_func(args \\ [])

View Source (macro)

creates a record of erl_func

Link to this macro

erl_func(record, args)

View Source (macro)
Link to this macro

erl_mfa(args \\ [])

View Source (macro)

creates a record of erl_mfa

Link to this macro

erl_mfa(record, args)

View Source (macro)
Link to this macro

funref(args \\ [])

View Source (macro)

creates a record of funref

Link to this macro

funref(record, args)

View Source (macro)
Link to this macro

is_erl_func(v)

View Source (macro)

Check if a value is of the erl_func type.

Check if a value is of the erl_mfa type.

Check if a value is of the funref type.

Link to this macro

is_lua_func(v)

View Source (macro)

Check if a value is of the lua_func type.

Check if a value is of the luerl type.

Check if a value is of the meta type.

Check if a value is of the table type.

Check if a value is of the tref type.

Check if a value is of the tstruct type.

Check if a value is of the usdref type.

Link to this macro

is_userdata(v)

View Source (macro)

Check if a value is of the userdata type.

Link to this macro

lua_func(args \\ [])

View Source (macro)

creates a record of lua_func

Link to this macro

lua_func(record, args)

View Source (macro)
Link to this macro

luerl(args \\ [])

View Source (macro)

creates a record of luerl

Link to this macro

luerl(record, args)

View Source (macro)
Link to this macro

meta(args \\ [])

View Source (macro)

creates a record of meta

Link to this macro

meta(record, args)

View Source (macro)
Link to this macro

table(args \\ [])

View Source (macro)

creates a record of table

Link to this macro

table(record, args)

View Source (macro)
Link to this macro

tref(args \\ [])

View Source (macro)

creates a record of tref

Link to this macro

tref(record, args)

View Source (macro)
Link to this macro

tstruct(args \\ [])

View Source (macro)

creates a record of tstruct

Link to this macro

tstruct(record, args)

View Source (macro)
Link to this macro

usdref(args \\ [])

View Source (macro)

creates a record of usdref

Link to this macro

usdref(record, args)

View Source (macro)
Link to this macro

userdata(args \\ [])

View Source (macro)

creates a record of userdata

Link to this macro

userdata(record, args)

View Source (macro)