init
This commit is contained in:
commit
da82c775db
9 changed files with 1066 additions and 0 deletions
14
example/repl.rs
Normal file
14
example/repl.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
use std::io::stdin;
|
||||
|
||||
use microlang::Context;
|
||||
|
||||
pub fn main() {
|
||||
unsafe { backtrace_on_stack_overflow::enable() };
|
||||
let mut context = Context::empty();
|
||||
loop {
|
||||
let mut line = String::new();
|
||||
stdin().read_line(&mut line).unwrap();
|
||||
let res = context.eval(line);
|
||||
dbg!(res).ok();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue