Files
Nasal-Interpreter/nasal_list.h
T
2019-07-26 15:28:13 +08:00

34 lines
440 B
C++

#ifndef __NASAL_LIST_H__
#define __NASAL_LIST_H__
#include <iostream>
#include <cstring>
namespace nasal
{
struct ListUnit
{
std::string Type;
void *data;
ListUnit* next;
};
class NasalList
{
private:
ListUnit *head;
public:
NasalList();
NasalList(NasalList &);
~NasalList();
void PrintList();
void Append(void *,const char *);
NasalList& operator=(const NasalList &);
};
}
#endif