You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let vm = gluon::new_vm();
vm.get_database_mut().set_implicit_prelude(true);
vm.run_io(true);
vm.run_expr::<()>("ex", r#"
let x = 23
()
"#);
vm.run_expr::<i32>("ex", r#" x ");
This gets me an error of "UndefinedVariable".
If I want do something "repl-like" where we define something in one command, then reference it in the next, is that possible in gluon ?
This gets me an error of "UndefinedVariable".
If I want do something "repl-like" where we define something in one command, then reference it in the next, is that possible in gluon ?
I tried reading https://github.com/gluon-lang/gluon/tree/master/repl/src but then got confused when it loads up https://github.com/gluon-lang/gluon/blob/master/repl/src/repl.glu
I'm trying to get a gluon REPL-ish to run on Chrome/wasm. Thus, I can't rely on the "io" stuff for now.
The text was updated successfully, but these errors were encountered: