sim-lib-lang-lua 0.1.4

Lua-style surface profile for the SIM expression runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
use sim_kernel::Ref;
use sim_lib_control::Coroutine;

/// Builds a Lua coroutine that alternates between two ref lanes.
///
/// Lowers Lua coroutines onto the control organ's [`Coroutine`] rather than
/// defining bespoke coroutine semantics.
pub fn lua_coroutine(first: Vec<Ref>, second: Vec<Ref>) -> Coroutine {
    Coroutine::alternating(first, second)
}