paint-brush
Building a Linux Shell [Part III]by@MIMA
4,492 reads
4,492 reads

Building a Linux Shell [Part III]

by Mohammed Isam19mJune 29th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Mohammed Isam

Mohammed Isam

@MIMA

GNU/Linux system administrator and programmer

About @MIMA
LEARN MORE ABOUT @MIMA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mohammed Isam HackerNoon profile picture
Mohammed Isam@MIMA
GNU/Linux system administrator and programmer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite