Building a Linux Shell [Part III]

Written by MIMA | Published 2020/06/29
Tech Story Tags: programming | linux | shell | terminal | tutorial | c-tutorials | cli | coding

TLDR This is part III of a tutorial on how to build a Linux shell. We use input tokens to create an AST, which is a tree-like structure that contains information about the components of a command. In the upcoming parts of this tutorial, we'll add more functions to enable our shell to parse loops and conditional expressions. To parse a simple command, we only need to call tokenize() to retrieve input tokens, one by one, until we get a newline token (which we test for) or we reach the end of our input.via the TL;DR App

no story

Written by MIMA | GNU/Linux system administrator and programmer
Published by HackerNoon on 2020/06/29