-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
30 lines (27 loc) · 1.18 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nprudenc <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/30 17:37:24 by nprudenc #+# #+# */
/* Updated: 2024/02/22 11:01:24 by nprudenc ### ########.fr */
/* */
/* ************************************************************************** */
#include "libseas.h"
int main(int argc, char **argv, char **envp)
{
t_pushdown_automaton *parse_bot;
if (argc != 1)
return (FALSE);
(void)argv;
parse_bot = automaton_new(envp);
while (1)
{
if (!core(parse_bot, "\033[0;1;34mSEAshell\033[0m~ ",
STDIN_FILENO))
break ;
}
automaton_destroy(parse_bot);
}