Mescal
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1
6
7#ifndef MAIN_H
8#define MAIN_H
9
10#include <assert.h>
11#include <getopt.h>
12#include <stdarg.h>
13#include <stdbool.h>
14#include <stdio.h>
15#include <stdlib.h>
16#include <string.h>
17#include <unistd.h>
18
19#include "alloc.h"
20#include "interrupt.h"
21#include "nfa.h"
22#include "printing.h"
23#include "readline.h"
24#include "regexp.h"
25#include "shell_keywords.h"
26#include "string.h"
27#include "time.h"
28#include "tools.h"
29
34void usage(char* argv[]);
35
40void parse_argv(int argc, char* argv[]);
41
46int shell_parse(void);
47
48#endif /* MAIN_H */
Macros and functions to help memory allocation.
Functions to handle interrupts and timeouts.
void parse_argv(int argc, char *argv[])
Parse the command line arguments.
int shell_parse(void)
Parse the command line of the shell.
void usage(char *argv[])
Print the usage of the program.
Implementation of NFAs.
Implementation of regular expressions.
Keywords and commands used in the shell.