From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- tiger-compiler/lib/misc/indent.hh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tiger-compiler/lib/misc/indent.hh (limited to 'tiger-compiler/lib/misc/indent.hh') diff --git a/tiger-compiler/lib/misc/indent.hh b/tiger-compiler/lib/misc/indent.hh new file mode 100644 index 0000000..04cd610 --- /dev/null +++ b/tiger-compiler/lib/misc/indent.hh @@ -0,0 +1,30 @@ +/** + ** \file misc/indent.hh + ** \brief Indentation relative functions. + **/ + +#pragma once + +#include + +namespace misc +{ + /// Increment the indentation. + std::ostream& incindent(std::ostream& o); + + /// Decrement the indentation. + std::ostream& decindent(std::ostream& o); + + /// Reset the indentation. + std::ostream& resetindent(std::ostream& o); + + /// Print an end of line, then set the indentation. + std::ostream& iendl(std::ostream& o); + + /// Increment the indentation, print an end of line, and set the indentation. + std::ostream& incendl(std::ostream& o); + + /// Decrement the indentation, print an end of line, and set the indentation. + std::ostream& decendl(std::ostream& o); + +} // namespace misc -- cgit v1.2.3