Livl Shell  0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
command_sequence.h
Go to the documentation of this file.
1 
7 #ifndef COMMAND_SEQUENCE_H
8 #define COMMAND_SEQUENCE_H
9 
10 #include "command.h"
11 #include "scheduler.h"
12 #include "operator.h"
13 #include "redirection.h"
14 #include "constants.h"
15 
20 void command_sequence_init(char *input);
21 
32 void process_token(char *token, char **commands, char **operators, char **currentCommand, int *cmdIndex, int *opIndex);
33 
40 void store_command(char **commands, char **currentCommand, int *cmdIndex);
41 
48 
49 #endif // COMMAND_SEQUENCE_H
CommandSequence
Struct that represents a command sequence.
Definition: typedef.h:123
operator.h
File containing the operator functions to manage the operators that can be used in the shell.
store_command
void store_command(char **commands, char **currentCommand, int *cmdIndex)
Stores the current command in the commands array.
Definition: command_sequence.c:95
scheduler.h
File containing the scheduler functions to manage the execution of commands.
command.h
File containing the command functions to manage the commands entered by the user (parsing,...
process_token
void process_token(char *token, char **commands, char **operators, char **currentCommand, int *cmdIndex, int *opIndex)
Checks if the given token is a command or an operator.
Definition: command_sequence.c:65
command_sequence_init
void command_sequence_init(char *input)
Initialize the command sequence module.
Definition: command_sequence.c:3
redirection.h
File containing the redirection functions to manage the redirection operators such as '<',...
free_command_sequence
void free_command_sequence(CommandSequence *sequence)
Definition: command_sequence.c:104
constants.h
Header file defining constants.