blob: 91db5e9116802c493e16816a92a086ef8fbef5a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef LIB_WRITER_H
#define LIB_WRITER_H
#include "expr.h"
#include <map>
class libwriter
{
private:
std::vector< Expr* > syms;
std::vector< Expr* > defs;
std::vector< Expr* > judgements;
//get the variable name
void get_var_name( const std::string& n, std::string& nn );
public:
libwriter(){}
virtual ~libwriter(){}
void add_symbol( Expr* s, Expr* t ) {
syms.push_back( s );
defs.push_back( t );
}
void write_file();
};
#endif
|