Portfolio
Mini·shell command-line parser visualizer
Source ↗

Type a shell command and watch it flow through the three stages of my minishell (a bash-like shell written in C): the lexer splits it into tokens, the expander resolves $VAR / $?, and the parser builds an execution tree. This only parses — it never runs anything.

$
Try
1

Tokens

lexer output
command word / arg pipe and / or redirection fd subshell
2

Expansion

edit the environment, see before → after
3

Parse tree

execution order, bottom‑up