![]() |
Livl Shell
0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
|
File containing the command sequence functions to manage the command sequence (commands and operators). More...
#include "command.h"#include "scheduler.h"#include "operator.h"#include "redirection.h"#include "constants.h"

Go to the source code of this file.
Functions | |
| void | command_sequence_init (char *input) |
| Initialize the command sequence module. More... | |
| 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. More... | |
| void | store_command (char **commands, char **currentCommand, int *cmdIndex) |
| Stores the current command in the commands array. More... | |
| void | free_command_sequence (CommandSequence *sequence) |
File containing the command sequence functions to manage the command sequence (commands and operators).
| void command_sequence_init | ( | char * | input | ) |
Initialize the command sequence module.
| input | The input string parsed |
| void free_command_sequence | ( | CommandSequence * | sequence | ) |
Free the memory allocated for a command sequence Each command in the sequence is also freed
| sequence | the command sequence to free |
| 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.
| token | The token to be checked |
| commands | The array of commands |
| operators | The array of operators |
| currentCommand | The current command |
| cmdIndex | The index of the current command |
| opIndex | The index of the current operator |
| void store_command | ( | char ** | commands, |
| char ** | currentCommand, | ||
| int * | cmdIndex | ||
| ) |
Stores the current command in the commands array.
| commands | The array of commands |
| currentCommand | The current command |
| cmdIndex | The index of the current command |
1.8.17