Commit Graph

59 Commits

Author SHA1 Message Date
4a0cefee32 More progress on integrating ariadne's error reporting 2026-03-01 02:20:58 -05:00
ef0f66efaa Work on integrating error reporting using the ariadne crate 2026-02-28 20:30:12 -05:00
1b63eff783 Add array support for local/export/readonly builtins
Add array length syntax ${arr[#]}

Map read path now expands variables before splitting on ., fixing map "$node" with dotted paths

Map assignment path uses quote-aware token splitting, enabling quoted keys like "--type="

Completion errors now display above prompt instead of being overwritten

Fix nested if/fi parser bug when closing keywords appear on separate lines

Add QuoteState enum, replacing ad-hoc quote tracking booleans across lexer, highlighter, and expansion

Add split_tk_at/split_tk for quote-aware token splitting with span preservation

Refactor setup_builtin to accept optional argv for deferred expansion

Add ariadne dependency (not yet wired up)
2026-02-28 15:54:53 -05:00
c61360865f added 'map', 'pop', 'push', 'fpop', 'fpush', and 'rotate' builtins 2026-02-27 20:37:58 -05:00
ee4eb86ca5 cleaned up all compiler warnings 2026-02-27 11:08:42 -05:00
c508180228 Added -j flag to 'complete' for completing job names/pids 2026-02-27 11:03:56 -05:00
5f3610c298 Early implementation of bash-like completions with 'complete' and 'compgen' builtins 2026-02-27 01:10:52 -05:00
ccb1f43915 Implemented arrays and array indexing 2026-02-26 00:32:54 -05:00
cd40760ea0 Refactored internals for builtins inside of pipelines 2026-02-24 10:54:24 -05:00
fa49e2ef70 Fixed command substitutions not expanding when used as a command name 2026-02-23 23:32:12 -05:00
46d6d5319f Added auto-indent to multi-line editing -m Added shopt for enabling/disabling auto-indent -m Fixed some multi-line editing render bugs -m Scrolling up in history now preserves undo/redo history in the pending command 2026-02-23 20:52:33 -05:00
fa3d376659 Fixed some hangs in the lexer 2026-02-23 19:21:57 -05:00
a18a0b622f command arguments are now underlined if they match an existing path -m ran rustfmt on the entire codebase 2026-02-19 21:32:03 -05:00
9483477edd fixed the $0 parameter not being populated correctly 2026-02-19 14:24:55 -05:00
3b698628c6 Tab completion has been implemented
more small highlighter tune ups

2>&1 style redirections now work properly
2026-02-18 21:53:36 -05:00
43b171fab1 Implemented syntax highlighting 2026-02-18 02:00:45 -05:00
7f3e1cfcee renamed fern.rs back to main.rs 2026-01-28 19:57:14 -05:00
8ad53f09b3 Added rustfmt.toml, formatted codebase 2025-08-12 13:58:25 -04:00
220f636ebd removed placeholder text in prompt
cd no longer panics if the given directory doesn't exist (wtf?)
2025-05-29 01:29:25 -04:00
94e22d68f3 about to implement readline myself 2025-05-15 00:53:39 -04:00
c9414c8ce3 properly implemented $(( )) substitution 2025-05-14 16:35:04 -04:00
6006244739 more unit tests, better highlighting 2025-05-13 20:22:25 -04:00
df17ecdfb8 added arithmetic substitution 2025-05-13 13:08:53 -04:00
25e85edab0 Added regex to [[ ]] tests 2025-05-13 00:48:19 -04:00
bbb8162201 implemented most variable parameter expansion builtins 2025-05-12 16:14:06 -04:00
cc8d384704 About to rework lexer and parser return types 2025-05-09 01:00:36 -04:00
18d0b669b3 Parser tweaks 2025-05-08 21:21:23 -04:00
7523944d63 Early implementation of syntax highlighting
Various bug fixes related to command substitution
2025-05-08 21:21:23 -04:00
4d16ffa60f implemented for loops 2025-04-20 05:16:50 -04:00
b6be68b235 removed nix artifacts 2025-04-19 12:46:00 -04:00
80b6453597 Implemented subshells and improved error handling 2025-03-29 22:16:26 -04:00
1eb19092cc implemented globbing and tilde expansions 2025-03-28 12:02:34 -04:00
937bbbacdd Cleaned up warnings 2025-03-23 17:41:12 -04:00
32ec62b52f switched to Arc instead of Rc for input strings 2025-03-23 17:37:15 -04:00
8fffe1cd71 Implemented an abstraction for extracting flags from builtins 2025-03-22 20:10:47 -04:00
26fc4669f0 Implemented command substitution 2025-03-19 16:46:45 -04:00
aa2684546e Implemented case statements 2025-03-19 02:16:53 -04:00
0d286ba006 Implemented prompt expansion, and display for errors 2025-03-18 15:54:06 -04:00
d673bb692f implemented functions 2025-03-16 16:57:58 -04:00
05212749e3 Properly implemented word splitting 2025-03-15 23:52:58 -04:00
505b968c60 Various additions and improvements 2025-03-15 21:04:45 -04:00
7f21e5baa7 Adapted old code to fit new codebase 2025-03-15 17:54:08 -04:00
d4f8f023af re-imported job/signal code from old implementation 2025-03-15 17:14:52 -04:00
2acf70ef96 Implemented assignments, working on job control 2025-03-15 16:57:34 -04:00
97b4b1835d Progress 2025-03-15 00:02:05 -04:00
e81c4903b9 Implemented brace expansion 2025-03-10 01:50:12 -04:00
363e4805b7 Early work on tab completion 2025-03-09 21:59:12 -04:00
9b805c542c Implemented cmd runtime expansion for the prompt 2025-03-09 03:51:49 -04:00
90a188d4b2 Implemented heredocs and herestrings 2025-03-09 00:34:49 -05:00
cdcfb23edb Implemented scoping for expansions 2025-03-08 01:38:42 -05:00