SQLsmith
v1.2.1-5-gfacd7a8
A random SQL query generator
dump.hh
Go to the documentation of this file.
1
#ifndef DUMP_HH
4
#define DUMP_HH
5
6
#include <iostream>
7
#include <fstream>
8
#include <string>
9
10
#include "
prod.hh
"
11
#include "
log.hh
"
12
13
struct
graphml_dumper
:
prod_visitor
{
14
std::ostream &o;
15
virtual
void
visit(
struct
prod
*p);
16
graphml_dumper
(std::ostream &out);
17
std::string id(
prod
*p);
18
std::string type(
struct
prod
*p);
19
virtual
~
graphml_dumper
();
20
};
21
22
struct
ast_logger
:
logger
{
23
int
queries = 0;
24
virtual
void
generated(
prod
&query);
25
};
26
27
#endif
log.hh
logging
prod.hh
Base class for grammar productions.
ast_logger
Definition:
dump.hh:22
graphml_dumper
Definition:
dump.hh:13
logger
logger base class
Definition:
log.hh:15
prod_visitor
Base class for walking the AST.
Definition:
prod.hh:11
prod
Base class for AST nodes.
Definition:
prod.hh:17
Generated by
1.9.1