diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-21 22:35:47 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-21 22:35:47 -0600 |
commit | ab016596602a4c6bdc27adf01c308b325af221f0 (patch) | |
tree | 4e86bfcf1f38fb00cc58082d540dc3570e0f126b /lib/codegen/include/code_gen/CG_stringRepr.h | |
parent | 6983c09937baac3ffb7d3a45c3c5009c0eba7e6c (diff) | |
download | chill-ab016596602a4c6bdc27adf01c308b325af221f0.tar.gz chill-ab016596602a4c6bdc27adf01c308b325af221f0.tar.bz2 chill-ab016596602a4c6bdc27adf01c308b325af221f0.zip |
something that only builds ...
Diffstat (limited to 'lib/codegen/include/code_gen/CG_stringRepr.h')
-rw-r--r-- | lib/codegen/include/code_gen/CG_stringRepr.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/codegen/include/code_gen/CG_stringRepr.h b/lib/codegen/include/code_gen/CG_stringRepr.h index a6df85d..b483bdb 100644 --- a/lib/codegen/include/code_gen/CG_stringRepr.h +++ b/lib/codegen/include/code_gen/CG_stringRepr.h @@ -18,6 +18,7 @@ #include <code_gen/CG_outputRepr.h> #include <string> #include <iostream> +#include <stdio.h> namespace omega { @@ -26,11 +27,16 @@ private: std::string s_; public: - CG_stringRepr() {} - CG_stringRepr(const std::string &s) { s_ = s; } - ~CG_stringRepr() {} + char *type() const { return strdup("string"); }; + + + CG_stringRepr() {}; + CG_stringRepr(const std::string &s){ s_ = s; } + ~CG_stringRepr() {} CG_outputRepr *clone() const { return new CG_stringRepr(s_); } void dump() const { std::cout << s_ << std::endl; } + void Dump() const; + void DumpToFile(FILE *fp = stderr) const; //--------------------------------------------------------------------------- // basic operation |