X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/c7f552fd8888da2f0d8cfb228fe0f28d3df3a12c..b4b6f2ea75b9f0f3ca918f5b84016610bf7a4d4f:/interpretor/preprocessor/faust-0.9.47mr3/compiler/tlib/node.cpp diff --git a/interpretor/preprocessor/faust-0.9.47mr3/compiler/tlib/node.cpp b/interpretor/preprocessor/faust-0.9.47mr3/compiler/tlib/node.cpp new file mode 100644 index 0000000..6614092 --- /dev/null +++ b/interpretor/preprocessor/faust-0.9.47mr3/compiler/tlib/node.cpp @@ -0,0 +1,15 @@ +#include "node.hh" + +ostream& Node::print (ostream& fout) const ///< print a node on a stream +{ + switch (fType) { + case kIntNode : return fout << fData.i; + case kDoubleNode : return fout << fData.f; + case kSymNode : return fout << *(fData.s); + case kPointerNode : return fout << "ptr:" << fData.p; + default : return fout << "badnode"; + } + +// return fout; +} +