Newer
Older
**
** Made by Seblu
** Login <seblu@epita.fr>
**
** Started on Mon Apr 10 23:57:28 2006 Seblu
** Last update Fri Aug 25 12:24:50 2006 Seblu
#include "../ast/ast.h"
#include "../parser/parser.h"
#include "../exec/exec.h"
/*!
** Program entry point
**
** @param argc Argument count
** @param argv Argument vector
**
** @return return program value
*/
int main(int argc, char *argv[])
{
// shell initialization
shell = shell_init(argv[0]);
// parse argv
// shell parser init
parser = parser_init(stdin);
// parse and execute stdin stream
do
{
ast = parse(parser);
while (!parser->lexer->eof);
if (!isinteractive())
fprintf(stderr, "exit\n");