Files
HEL/src/main.rs
T
2022-12-10 16:04:09 +01:00

26 lines
467 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;
mod lk;
mod parser;
mod password;
mod repl;
mod structs;
mod skey;
use rustyline::Editor;
use std::{cell::RefCell, rc::Rc};
use crate::lk::LK;
use crate::repl::LKRead;
pub fn main() {
let lk = Rc::new(RefCell::new(LK::new()));
let mut lkread = LKRead::new(Editor::<()>::new().unwrap(), String::from(" "), lk.clone());
while lkread.read().eval().print() {
lkread.refresh();
}
lkread.quit();
}