Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.04 KB

File metadata and controls

37 lines (27 loc) · 1.04 KB

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.