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 
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
logging
Base class for grammar productions.
logger base class
Definition: log.hh:15
Base class for walking the AST.
Definition: prod.hh:11
Base class for AST nodes.
Definition: prod.hh:17