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

File containing the operator functions to manage the operators that can be used in the shell. More...

#include <string.h>
#include "typedef.h"
Include dependency graph for operator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

OperatorType get_operator_type (const char *operator_str)
 Gets the type of the given operator. More...
 
const char * get_operator_string (OperatorType operator_type)
 Gets the string corresponding to the given operator. More...
 

Detailed Description

File containing the operator functions to manage the operators that can be used in the shell.

Author
Julien & Franck
Date
24 Dec 2023

Function Documentation

◆ get_operator_string()

const char* get_operator_string ( OperatorType  operator_type)

Gets the string corresponding to the given operator.

Parameters
operator_typeThe operator type
Returns
The string corresponding to the operator

◆ get_operator_type()

OperatorType get_operator_type ( const char *  operator_str)

Gets the type of the given operator.

Parameters
operator_strThe operator string
Returns
The type of the operator

Order by operator length (longest first) to avoid matching << when looking for <