Skip to content

POSIX compliant shell, that can carry out scanning, tokenization, parsing and execution of Unix based commands

License

Notifications You must be signed in to change notification settings

booringreader/bosh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Project

This project implements a basic shell with modularized components.

Directory Structure

  • scanner/: Directory for scanning and tokenizing.
  • source/: Directory for source handling.
  • main.c: Main entry point of the shell.
  • shell/: Core functionalities of the shell.
  • prompt.c: Managing the shell prompt appearance.
  • parser/: Directory for parsing functionalities.
  • node/: Directory for command structure (AST) representation.
  • executor/: Directory for execution-related functionalities.

Usage

To use the shell, compile the source files and link them together.

gcc main.c prompt.c scanner/scanner.c source/source.c -o my_shell

To demonstrate a basic single-line input in the shell, use the echo command:

echo "This is a single-line input."

License

This project is licensed under the MIT License.

About

POSIX compliant shell, that can carry out scanning, tokenization, parsing and execution of Unix based commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages