Minishell
Loading...
Searching...
No Matches
gat.h File Reference
#include <stdbool.h>
#include <time.h>
#include <unistd.h>
Include dependency graph for gat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  parser_state_t
 

Macros

#define COLOR_RESET   "\033[0m"
 
#define COLOR_KEYWORD   "\033[1;36m"
 
#define COLOR_STRING   "\033[0;32m"
 
#define COLOR_COMMENT   "\033[0;33m"
 
#define COLOR_NUMBER   "\033[0;35m"
 
#define COLOR_PREPROCESSOR   "\033[0;31m"
 
#define COLOR_FUNCTION   "\033[0;34m"
 

Functions

int handle_preprocessor (const char *line, int i, int len)
 
int handle_string (const char *line, int i, int len, char delimiter)
 
int handle_number (const char *line, int i, int len)
 
int handle_identifier (const char *line, int i, int len)
 
void strip_newline (char *line)
 
void print_file_header (const char *filename)
 

Macro Definition Documentation

◆ COLOR_COMMENT

#define COLOR_COMMENT   "\033[0;33m"

◆ COLOR_FUNCTION

#define COLOR_FUNCTION   "\033[0;34m"

◆ COLOR_KEYWORD

#define COLOR_KEYWORD   "\033[1;36m"

◆ COLOR_NUMBER

#define COLOR_NUMBER   "\033[0;35m"

◆ COLOR_PREPROCESSOR

#define COLOR_PREPROCESSOR   "\033[0;31m"

◆ COLOR_RESET

#define COLOR_RESET   "\033[0m"

◆ COLOR_STRING

#define COLOR_STRING   "\033[0;32m"

Function Documentation

◆ handle_identifier()

int handle_identifier ( const char * line,
int i,
int len )

◆ handle_number()

int handle_number ( const char * line,
int i,
int len )

◆ handle_preprocessor()

int handle_preprocessor ( const char * line,
int i,
int len )

◆ handle_string()

int handle_string ( const char * line,
int i,
int len,
char delimiter )

◆ print_file_header()

void print_file_header ( const char * filename)

◆ strip_newline()

void strip_newline ( char * line)