Initial commit

This commit is contained in:
Kiyomichi Kosaka
2022-11-27 14:03:00 +00:00
commit ccb0f86bbb
7 changed files with 416 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#[macro_use]
extern crate lazy_static;
pub mod structs;
pub mod parser;
pub mod repl;
use rustyline::Editor;
use std::{cell::RefCell, rc::Rc};
pub fn main() {
let lk = Rc::new(RefCell::new(LK { db: HashMap::new() }));
let mut lkread = LKRead::new(
Editor::<()>::new().unwrap(),
String::from(" "),
lk.clone());
while lkread.read().eval().print() {
lkread.refresh();
}
lkread.quit();
}