Split the code to separate modules and add the first tests for the reply module.

This commit is contained in:
Kiyomichi Kosaka
2022-11-27 15:01:26 +00:00
parent 3defe08d2b
commit a909cac999
5 changed files with 131 additions and 96 deletions
+9 -4
View File
@@ -1,12 +1,17 @@
#[macro_use]
extern crate lazy_static;
pub mod structs;
pub mod parser;
pub mod repl;
mod structs;
mod parser;
mod repl;
use std::{cell::RefCell, rc::Rc};
use std::collections::HashMap;
use rustyline::Editor;
use std::{cell::RefCell, rc::Rc};
use crate::structs::LK;
use crate::repl::LKRead;
pub fn main() {
let lk = Rc::new(RefCell::new(LK { db: HashMap::new() }));