Livl Shell  0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
Functions
input_parser.h File Reference

File containing the input parser functions to manage the input entered by the user (parsing, evaluation, etc.). More...

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "operator.h"
#include <ctype.h>
#include "constants.h"
#include <termios.h>
#include <unistd.h>
#include "history_command.h"
#include "console.h"
Include dependency graph for input_parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

char * read_input (char *input)
 Reads the input from the console. More...
 
int is_all_whitespace (const char *input)
 Checks if the input string is all whitespace. More...
 
void preprocess_input (char *input)
 Parses the input string into commands and operators. More...
 

Detailed Description

File containing the input parser functions to manage the input entered by the user (parsing, evaluation, etc.).

Author
Julien & Franck
Date
24 Dec 2023

Function Documentation

◆ is_all_whitespace()

int is_all_whitespace ( const char *  input)

Checks if the input string is all whitespace.

Parameters
inputThe input string
Returns
1 if the input string is all whitespace, 0 otherwise

◆ preprocess_input()

void preprocess_input ( char *  input)

Parses the input string into commands and operators.

Parameters
inputThe input string to be parsed

◆ read_input()

char* read_input ( char *  input)

Reads the input from the console.

Returns
The input string