MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
stream.cpp File Reference
#include <bit>
#include <ostream>
#include "mim/ast/ast.h"
#include "mim/ast/lexer.h"
Include dependency graph for stream.cpp:

Go to the source code of this file.

Classes

struct  mim::ast::S
struct  mim::ast::R< T >

Namespaces

namespace  mim
namespace  mim::ast

Functions

static void mim::ast::stream_decls (fe::Tab &tab, std::ostream &os, fe::View< Ptr< ValDecl > > decls)
static std::string mim::ast::escape_char (char8_t c)
static std::string_view mim::ast::vis2str (Vis vis)
static std::ostream & mim::ast::operator<< (std::ostream &os, const Mods &mods)
 Prints vis/extern/anx, skipping vis if it's the modifier-nudged Mods::default_vis.
static bool mim::ast::is_block (const Expr *expr)
 Does expr span several statements and hence deserve an indented block of its own?