/*! \file input.h

    \brief Functions to create and delete the Asm_Nts-datastructure.

*/


#ifndef _INPUT_H_
#define _INPUT_H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#include <tabulate.h>
#include <asm_typedefs.h>
#include <asm_runtime.h>


/*! \brief Convert the parser-dependencies given as "Nts"-representation to
    \brief "Asm_Nts"-representation.
    \param inputdata "Nts"-representation of the nonterminals
    \param result "Asm_Nts"-representation of the nonterminals (RESULT)
    \param Number Number of nonterminals (RESULT)
*/

void convert_input (Nts inputdata, Asm_Nts* result, int* Number);


/*! \brief Free all memory that was allocated for a "Asm_Nts"-representation
    \brief of the nonterminals.
    \param nonterms Nonterminals
    \param n Number of nonterminals
*/

void asm_nts_delete (Asm_Nts nonterms, int n);


#endif
