Skip to content
Biraj Pathak

All projects

EchoCraft

A Unix-style shell written from scratch in Python: tokenizer, parser, pipes, redirection and history.

The problem

Shells are something every engineer uses daily and few have built. EchoCraft was a way to understand one from the inside.

What I built

A lexer and parser written from scratch, with an object-oriented design, turn input into a command tree. The executor wires up pipes and file redirection and keeps a command history. The banner greets you with "Valar Dohaeris: all must serve the code."

Outcome

A working shell that handles piping, redirection and history, shown end to end in the demo video.