-
Notifications
You must be signed in to change notification settings - Fork 0
/
converter.h
32 lines (28 loc) · 1010 Bytes
/
converter.h
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
29
30
31
32
#ifndef CONVERTER_H
#define CONVERTER_H
#include "ast.h"
#include <map>
#include <string>
using namespace std;
class converter{
private:
map<int,string> myMapping;
public:
converter();
string traversal(ast_node * root);
string traverseSection(ast_node *root, int type);
string traverseSubSection(ast_node *root, int type);
string traverseList(ast_node *root, int type);
string traverseAnchor(ast_node *root, int type);
string traversePara(ast_node *root, int type);
string traverseFont(ast_node *root, int type);
string traverseTable(ast_node *root, int type);
string traverseImage(ast_node *root, int type);
string traverseDefault(ast_node *root, int type);
string traverseContent(ast_node *root, int type);
string traverseMath(ast_node *root, int type);
string traverseChildren(ast_node *root);
void printHTML(string s);
string getMapping(int type);
};
#endif