diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-26 10:06:01 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-26 10:06:01 -0600 |
commit | f4474891acec5918f94bc126fed8eb9bb2792912 (patch) | |
tree | 819864472649715d2bae19eeeba450a94621b5f2 /include/printer/dump.h | |
parent | eb1ab91e1a12520d825cae60ee49655a0e8c4b94 (diff) | |
download | chill-f4474891acec5918f94bc126fed8eb9bb2792912.tar.gz chill-f4474891acec5918f94bc126fed8eb9bb2792912.tar.bz2 chill-f4474891acec5918f94bc126fed8eb9bb2792912.zip |
set printS getPrecS to protected
Diffstat (limited to 'include/printer/dump.h')
-rw-r--r-- | include/printer/dump.h | 9 |
1 files changed, 5 insertions, 4 deletions
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: (<NodeName> <Params>). 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 |