2015-12-08 04:51:55 +08:00
|
|
|
#pragma once
|
2015-08-30 07:12:46 +08:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "expr.hpp"
|
|
|
|
#include "identifier.hpp"
|
|
|
|
|
|
|
|
namespace ast
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Accessor : public VisitableExpr<Accessor>
|
|
|
|
{
|
|
|
|
Accessor(Identifier* entity, Identifier* prop)
|
|
|
|
: entity(entity), prop(prop) {}
|
|
|
|
|
2015-10-19 01:44:00 +08:00
|
|
|
Identifier* entity;
|
|
|
|
Identifier* prop;
|
2015-08-30 07:12:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|