1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| #include <iostream>
| #include <string>
| #include "ast.h"
| #include "gens.h"
|
| int main(int argc, char** argv)
| {
| Document *d = new Document(NULL, NULL, NULL);
| Block_Line *b = new Block_Line();
| Line_Word *lw = new Line_Word();
| std::string s = "Hello";
| dot_gen *v = new dot_gen("temp.dot");
|
| d->add_block(b);
| b->add_line(lw);
| lw->add_word(new Format_Bold(new Text("Hello")));
| lw->add_word(new Format_Italic(new Text("World")));
| lw->add_word(new Text("Test"));
| d->visit(v);
| delete d;
| delete v;
| }
|
|