2015-12-08 04:51:55 +08:00
|
|
|
#pragma once
|
2015-08-30 07:12:46 +08:00
|
|
|
|
|
|
|
#include "ast_node.hpp"
|
2015-09-13 17:34:17 +08:00
|
|
|
#include "relationship.hpp"
|
2015-10-19 01:44:00 +08:00
|
|
|
#include "node.hpp"
|
2015-08-30 07:12:46 +08:00
|
|
|
|
|
|
|
namespace ast
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Pattern : public AstNode<Pattern>
|
|
|
|
{
|
2015-09-13 17:34:17 +08:00
|
|
|
Pattern(Node* node, Relationship* relationship, Pattern* next)
|
|
|
|
: node(node), relationship(relationship), next(next) {}
|
|
|
|
|
2015-08-30 07:12:46 +08:00
|
|
|
Node* node;
|
2015-09-13 17:34:17 +08:00
|
|
|
Relationship* relationship;
|
2015-08-30 07:12:46 +08:00
|
|
|
Pattern* next;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|