2015-12-08 04:51:55 +08:00
|
|
|
#pragma once
|
2015-08-30 07:12:46 +08:00
|
|
|
|
|
|
|
#include "ast_node.hpp"
|
|
|
|
|
|
|
|
namespace ast
|
|
|
|
{
|
|
|
|
|
|
|
|
template <class T, class Derived>
|
|
|
|
struct List : public AstNode<Derived>
|
|
|
|
{
|
|
|
|
List(T* value, Derived* next)
|
|
|
|
: value(value), next(next) {}
|
|
|
|
|
|
|
|
T* value;
|
|
|
|
Derived* next;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|