From 56a1548c9a10a2bfc6ddda0e0d28ae0087aa193f Mon Sep 17 00:00:00 2001 From: Jonas Maier <> Date: Sat, 7 Mar 2026 15:42:50 +0100 Subject: reorganize towards function execution --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 1dd86bc..7223e26 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,6 @@ use raw::*; use crate::cursor::{Direction, move_cursor}; use crate::parse::{Ast, PreExpansion}; -use crate::run::CommandDispatch; macro_rules! print { ($($x:tt)*) => {{ @@ -62,8 +61,8 @@ pub struct Session { raw: ScopedRawMode, line: LineBuf, history: Vec, - dispatch: CommandDispatch, prev_path: BString, + builtins: HashMap, vars: HashMap, funs: HashMap>, @@ -203,7 +202,7 @@ fn event_loop() { raw, line: LineBuf::new(), history: Vec::new(), - dispatch: CommandDispatch::new(), + builtins: run::builtin_map(), prev_path: vec![b'.'], history_visit: 0, vars: HashMap::new(), -- cgit v1.2.3