From 921deb9e5e56cba1554a9ed12d49be7694e2529f Mon Sep 17 00:00:00 2001 From: Ava Hahn Date: Mon, 27 Mar 2023 11:32:12 -0700 Subject: [PATCH] put todo items into readme instead of posix module comment block --- Readme.org | 44 ++++++++++++++++++++++++++++++++++++++++++-- src/stl/posix.rs | 22 ---------------------- 2 files changed, 42 insertions(+), 24 deletions(-) diff --git a/Readme.org b/Readme.org index 23f7fe2..058de78 100644 --- a/Readme.org +++ b/Readme.org @@ -482,10 +482,50 @@ Note: this section only tracks the state of incomplete TODO items. Having everyt ** TODO Pre-alpha tasks - Shell module - - See todo steps in posix.rs + - circuit casts int to bool automatically + - pipe control flow construct + - l and load functions for binaries, call for scripts + - load-to-string function + - ignore job control signals (if needed) + - background processes + - be able to list all background processes with j function + - be able to fg a bg process + - be able to bg and fg process (ctrl z?) + - changedir/cd + - pwd + - call-with (let style fd redirection) + - Documentation! - logging library - make const all the error messages - +- make presentation on relish + - lisp basics + - s expressions + - data structures + - control flow + - let, circuit, etc + - homoiconicity + - quote/eval + - lambda + - putting it all together + - CI tests + - repl configuration + - self documenting + - env + - help + - beyond lisp + - POSIX + - ergonomics of control flow as shell command + - circuit -> pipe + - let -> call-with + - putting it all together + - job control in shell + - shell scripts + - To infinity and beyond + - NGINX modules + - bootable? + - give a pretty pastel white, pink and blue theme + - store in repo after giving presentation + ** TODO alpha tasks - Can pass args to relish scripts (via interpreter) - Can pass args to relish scripts (via command line) diff --git a/src/stl/posix.rs b/src/stl/posix.rs index 85ada3c..7613a68 100644 --- a/src/stl/posix.rs +++ b/src/stl/posix.rs @@ -26,28 +26,6 @@ use std::process::{Command, Child, Stdio}; use nix::unistd; use ctrlc; -/* WONTDO: flag, switch - * Step 6: ? function - * Step 7: pipe control flow that circuits across a list of calls hooking stdin to stdout - * Step 8.1: load=binary script=call - * Step 8.2: call-to-string function - * Step 9: ignore job control signals - * Step 10: background processes - * Step 11: Be able to list all background processes with j function - * Step 12: Be able to fg a bg process - * Step 13: Be able to bg an fg process (Ctrl Z) - * Step 14: changedir - * Step 15: pwd - * Step 16: circuit casts int to bool automatically - * Step 17: Documentation - * - list functions and their docstrings - * - examples of pipe and circuit - * - job control - * Step 18: call-with - * - let style setting of files as stream targets - * - and of course documentation - */ - pub struct ShellState { pub parent_pid: unistd::Pid, pub parent_pgid: unistd::Pid,