/** * Write the quoted element out to the stream. * * @param out -- The output stream to write the evaluate to. */ void Quoted_::Write_(Printer& out) const { out.Indent(); out << "'"; out.IgnoreNextIndent(); this->element.Write(out); }
/** * Write the case out to the stream. * * @param out -- The output stream to write the if to. */ void Case_::Write_(Printer& out) const { out.Indent(); out.IgnoreNextIndent(); out << "(case " << this->condition.ToString() << "\n"; { Printer::TabMarker tab = out.Tab(); } out.Indent(); out << ')'; }
/** * Write the set out to the stream. * * @param out -- The output stream to write the set to. */ void Function_::Write_(Printer& out) const { out.Indent(); out << "(function ( "; size_t const NUMBER_OF_ARGS = this->args.size(); for(size_t i=0; i<NUMBER_OF_ARGS; ++i) { out.IgnoreNextIndent(); out << this->args[i].ToString() << ' '; } out << ")\n"; { Printer::TabMarker tab = out.Tab(); this->body.Write(out); out << '\n'; } out.Indent(); out << ')'; }