This project implements a basic shell with modularized components.
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.
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_shellTo demonstrate a basic single-line input in the shell, use the echo command:
echo "This is a single-line input."This project is licensed under the MIT License.