From f4474891acec5918f94bc126fed8eb9bb2792912 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Mon, 26 Sep 2016 10:06:01 -0600 Subject: set printS getPrecS to protected --- include/printer/dump.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/printer/dump.h') diff --git a/include/printer/dump.h b/include/printer/dump.h index fd382a3..894ea4a 100644 --- a/include/printer/dump.h +++ b/include/printer/dump.h @@ -10,14 +10,13 @@ namespace chill { namespace printer { /*! - * \brief this replace the old dump function in the chillAST + * \brief Dump the whole AST in Prefix format * + * This replace the old dump function in the chillAST. * Everthing is written in a Tree-like structure: ( ). No precedence calculation is needed. */ class Dump : public GenericPrinter { - public: - Dump() {} - + protected: virtual void printS(std::string ident, chillAST_ArraySubscriptExpr *n, std::ostream &o); virtual void printS(std::string ident, chillAST_BinaryOperator *n, std::ostream &o); @@ -86,6 +85,8 @@ namespace chill { virtual void printS(std::string ident, chillAST_VarDecl *n, std::ostream &o); + public: + Dump() {} /*! * Just prints everything. Indent is igored due to need to limit the number of output * @param ident -- cgit v1.2.3-70-g09d2