diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-25 14:30:34 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-25 14:30:34 -0600 |
commit | e7de858ce27ded585d6e2ec4a5cbc3467c6a7593 (patch) | |
tree | 6f20c14ae118bc83d3c69f12875ba7e369bb2716 /src/printer/dump.cpp | |
parent | 2a5618583e1fdc8cde0308d3e5b1873bc94c5fb1 (diff) | |
download | chill-e7de858ce27ded585d6e2ec4a5cbc3467c6a7593.tar.gz chill-e7de858ce27ded585d6e2ec4a5cbc3467c6a7593.tar.bz2 chill-e7de858ce27ded585d6e2ec4a5cbc3467c6a7593.zip |
CFamily AST printer
Diffstat (limited to 'src/printer/dump.cpp')
-rw-r--r-- | src/printer/dump.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/printer/dump.cpp b/src/printer/dump.cpp index bf3f6b8..66bcc7e 100644 --- a/src/printer/dump.cpp +++ b/src/printer/dump.cpp @@ -10,15 +10,17 @@ using namespace std; void dumpVector(GenericPrinter *p, string ident, chillAST_NodeList *n, ostream &o) { for (int i = 0; i < n->size(); ++i) - p->print("", (*n)[i], o); + p->print(ident, (*n)[i], o); } + void dumpVector(GenericPrinter *p, string ident, chillAST_SymbolTable *n, ostream &o) { for (int i = 0; i < n->size(); ++i) - p->print("", (*n)[i], o); + p->print(ident, (*n)[i], o); } + void dumpVector(GenericPrinter *p, string ident, chillAST_TypedefTable *n, ostream &o) { for (int i = 0; i < n->size(); ++i) - p->print("", (*n)[i], o); + p->print(ident, (*n)[i], o); } void Dump::print(string ident, chillAST_Node *n, ostream &o) { |