Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Compiler_Ast_Detail Namespace Reference

Functions

std::string escape_text (std::string_view text)
 Escapes control characters in a string for safe text output.
 
void dump_type_expr (const Compiler_Type_Expr *type, std::ostream &out)
 Dumps one parsed type-expression in a compact stable form.
 
void append_indent (std::ostream &out, const size_t indent)
 Utility to append spaces to a stream for indentation.
 
void dump_type_decl (const Compiler_Type_Decl *decl, std::ostream &out, const size_t indent)
 Recursive type-declaration printer for internal use.
 
void dump_expr (const Compiler_Expr *expr, std::ostream &out, const size_t indent)
 Recursive expression printer for internal use.
 
void dump_stmt (const Compiler_Stmt *stmt, std::ostream &out, const size_t indent)
 Recursive statement printer for internal use.
 
void dump_import_decl (const Compiler_Import_Decl *decl, std::ostream &out, const size_t indent)
 

Function Documentation

◆ append_indent()

void Aleph::Compiler_Ast_Detail::append_indent ( std::ostream &  out,
const size_t  indent 
)
inline

Utility to append spaces to a stream for indentation.

Definition at line 1185 of file Compiler_AST.H.

References append_indent(), and out.

Referenced by append_indent(), Aleph::compiler_dump_module(), dump_expr(), dump_import_decl(), dump_stmt(), and dump_type_decl().

◆ dump_expr()

void Aleph::Compiler_Ast_Detail::dump_expr ( const Compiler_Expr *  expr,
std::ostream &  out,
const size_t  indent 
)
inline

◆ dump_import_decl()

void Aleph::Compiler_Ast_Detail::dump_import_decl ( const Compiler_Import_Decl *  decl,
std::ostream &  out,
const size_t  indent 
)
inline

◆ dump_stmt()

void Aleph::Compiler_Ast_Detail::dump_stmt ( const Compiler_Stmt *  stmt,
std::ostream &  out,
const size_t  indent 
)
inline

◆ dump_type_decl()

void Aleph::Compiler_Ast_Detail::dump_type_decl ( const Compiler_Type_Decl *  decl,
std::ostream &  out,
const size_t  indent 
)
inline

◆ dump_type_expr()

void Aleph::Compiler_Ast_Detail::dump_type_expr ( const Compiler_Type_Expr *  type,
std::ostream &  out 
)
inline

◆ escape_text()

std::string Aleph::Compiler_Ast_Detail::escape_text ( std::string_view  text)
inline

Escapes control characters in a string for safe text output.

Definition at line 1103 of file Compiler_AST.H.

References Aleph::blossom_maximum_cardinality_matching(), and escape_text().

Referenced by dump_expr(), dump_import_decl(), and escape_text().