Building a Linux Shell [Part III]by@MIMA
4,314 reads

Building a Linux Shell [Part III]

June 29th 2020
19m
by @MIMA 4,314 reads
tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

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.

Company Mentioned

Mention Thumbnail
featured image - Building a Linux Shell [Part III]
Mohammed Isam HackerNoon profile picture

@MIMA

Mohammed Isam

GNU/Linux system administrator and programmer


Receive Stories from @MIMA

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!