pub fn install_lua_core_profile(
cx: &mut Cx,
registry: &mut ProfileRegistry,
) -> Result<LanguageProfile>Expand description
Installs the Lua core profile and its organ claims into a registry.
First-reach entry point: registers lua_core_profile through the standard
profile installer, publishing the control- and mutation-organ claims so the
surface becomes loadable.
ยงExamples
use std::sync::Arc;
use sim_kernel::{Cx, DefaultFactory, NoopEvalPolicy, Symbol};
use sim_lib_standard_core::ProfileRegistry;
use sim_lib_lang_lua::install_lua_core_profile;
let mut cx = Cx::new(Arc::new(NoopEvalPolicy), Arc::new(DefaultFactory));
let mut registry = ProfileRegistry::new();
let profile = install_lua_core_profile(&mut cx, &mut registry).unwrap();
assert_eq!(profile.reader, Symbol::qualified("codec", "algol"));