Newer
Older
**
** Made by Seblu
** Login <seblu@epita.fr>
**
** Started on Mon Apr 10 23:57:28 2006 Seblu
** Last update Wed Aug 30 00:20:33 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
// parse and execute stdin stream
do
{
ast = parse(parser);
if (!parser->error && option_isset(shell->options, "ast_print"))
ast_print(ast, NULL);
while (!parser->lexer->eof);
if (!isinteractive())
fprintf(stderr, "exit\n");