Files
Nasal-Interpreter/version0.15/version0.15.1/ast.h
T
2019-09-07 22:15:03 +08:00

30 lines
377 B
C++

#ifndef __AST_H__
#define __AST_H__
#include "token_type.h"
#include <stack>
#include <list>
#include <cstring>
enum tree_node_type
{
__syntax_tree_begin=128,
__error_syntax,
__null_statement,
__definition,
__assignment,
__loop,
__choose
};
struct node
{
int type;
int line;
std::string content;
std::list<node> children;
};
#endif