2015-10-28 03:21:28 +08:00
|
|
|
#ifndef MEMGRAPH_CYPHER_CODEGEN_CPPGEN_HPP
|
|
|
|
#define MEMGRAPH_CYPHER_CODEGEN_CPPGEN_HPP
|
|
|
|
|
|
|
|
#include "cypher/visitor/traverser.hpp"
|
|
|
|
|
|
|
|
class CppGen : public Traverser
|
|
|
|
{
|
|
|
|
struct CreateGen : public Traverser
|
|
|
|
{
|
|
|
|
void visit(ast::Pattern& pattern) override
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
void visit(ast::Start& start) override
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void visit(ast::Create create) override
|
|
|
|
{
|
2015-10-29 05:55:57 +08:00
|
|
|
auto create_gen = CreateGen();
|
|
|
|
create.accept(create_gen);
|
2015-10-28 03:21:28 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|