2015-12-08 04:51:55 +08:00
|
|
|
#pragma once
|
2015-09-13 17:34:17 +08:00
|
|
|
|
|
|
|
#include "ast_node.hpp"
|
|
|
|
#include "match.hpp"
|
|
|
|
#include "return.hpp"
|
2015-10-19 01:44:00 +08:00
|
|
|
#include "create.hpp"
|
2015-09-13 17:34:17 +08:00
|
|
|
|
|
|
|
namespace ast
|
|
|
|
{
|
|
|
|
|
|
|
|
struct ReadQuery : public AstNode<ReadQuery>
|
|
|
|
{
|
2015-10-19 01:44:00 +08:00
|
|
|
ReadQuery(Match* match, Return* return_clause)
|
|
|
|
: match(match), return_clause(return_clause) {}
|
2015-09-13 17:34:17 +08:00
|
|
|
|
|
|
|
Match* match;
|
2015-10-19 01:44:00 +08:00
|
|
|
Return* return_clause;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WriteQuery : public AstNode<WriteQuery>
|
|
|
|
{
|
|
|
|
WriteQuery(Create* create, Return* return_clause)
|
|
|
|
: create(create), return_clause(return_clause) {}
|
|
|
|
|
|
|
|
Create* create;
|
|
|
|
Return* return_clause;
|
2015-09-13 17:34:17 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|