2015-12-08 04:51:55 +08:00
|
|
|
#pragma once
|
2015-09-13 17:34:17 +08:00
|
|
|
|
|
|
|
#include "ast_node.hpp"
|
|
|
|
#include "pattern.hpp"
|
|
|
|
#include "where.hpp"
|
|
|
|
|
|
|
|
namespace ast
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Match : public AstNode<Match>
|
|
|
|
{
|
|
|
|
Match(Pattern* pattern, Where* where)
|
|
|
|
: pattern(pattern), where(where) {}
|
|
|
|
|
|
|
|
Pattern* pattern;
|
|
|
|
Where* where;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|