memgraph/cypher/ast/ast_visitor.hpp

74 lines
1.2 KiB
C++
Raw Normal View History

#pragma once
#include "utils/visitor/visitor.hpp"
namespace ast
{
struct Identifier;
2016-01-24 23:21:46 +08:00
struct Alias;
// properties
struct Property;
struct PropertyList;
struct Accessor;
// values
struct Boolean;
struct Float;
struct Integer;
struct String;
// operators
struct And;
struct Or;
struct Lt;
struct Gt;
struct Ge;
struct Le;
struct Eq;
struct Ne;
struct Plus;
struct Minus;
struct Star;
struct Slash;
struct Rem;
struct RelationshipSpecs;
struct RelationshipList;
struct Relationship;
struct Node;
struct LabelList;
struct Pattern;
2015-10-19 01:44:00 +08:00
struct Return;
struct ReturnList;
struct Distinct;
2015-10-19 01:44:00 +08:00
2016-01-26 04:22:12 +08:00
struct Create;
struct Match;
struct Where;
2016-01-26 04:22:12 +08:00
struct Set;
struct Delete;
struct Start;
2015-10-19 01:44:00 +08:00
struct WriteQuery;
2016-01-26 04:22:12 +08:00
struct ReadQuery;
struct UpdateQuery;
2016-01-24 23:21:46 +08:00
struct DeleteQuery;
2015-10-19 01:44:00 +08:00
2016-01-26 04:22:12 +08:00
struct SetKey;
struct SetValue;
struct SetElement;
struct SetList;
2016-01-24 23:21:46 +08:00
struct AstVisitor : public Visitor<Accessor, Boolean, Float, Identifier, Alias,
2015-10-19 01:44:00 +08:00
Integer, String, Property, And, Or, Lt, Gt, Ge, Le, Eq, Ne, Plus, Minus,
Star, Slash, Rem, PropertyList, RelationshipList, Relationship, Node,
RelationshipSpecs, LabelList, ReturnList, Pattern, Match, ReadQuery,
2016-01-24 23:21:46 +08:00
Start, Where, WriteQuery, Create, Return, Distinct, Delete,
2016-01-26 04:22:12 +08:00
DeleteQuery, UpdateQuery, Set, SetKey, SetValue, SetElement, SetList> {};
}