Files
HEL/src/main.rs
T
Kiyomichi Kosaka ccb0f86bbb Initial commit
2022-11-27 14:03:00 +00:00

22 lines
442 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#[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();
}