#ifndef _Lang_h_
#define _Lang_h_

#include "Bool.h"
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>

/* External variables */
extern char **environ;

/* Predefined interpreters */
typedef enum {PERL, PYTHON, SH, CUSTOM} lang_t;
#define DEFAULT_LANG PERL
typedef enum {LANG_NAME, LANG_PATH, LANG_PARMS} langs_t;

/* Must be included after definition of types */
#include "Grouping.h"

/*
 * Little trick as compiler fails with a syntax error when using cblock_t as
 * parameter type (don't know why!?!)
 */
typedef void* _cblock_t;
bool parsetoLang (_cblock_t*, bool);
lang_t slangTolang_t (char*);

#endif
