Reformat code.

This commit is contained in:
Kiyomichi Kosaka
2022-12-03 20:37:41 +00:00
parent 474d0cd4e5
commit 47243330a9
6 changed files with 638 additions and 383 deletions
+6 -9
View File
@@ -1,24 +1,21 @@
#[macro_use]
extern crate lazy_static;
mod structs;
mod password;
mod parser;
mod repl;
mod lk;
mod parser;
mod password;
mod repl;
mod structs;
use std::{cell::RefCell, rc::Rc};
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());
let mut lkread = LKRead::new(Editor::<()>::new().unwrap(), String::from(" "), lk.clone());
while lkread.read().eval().print() {
lkread.refresh();