|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
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) |
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().
|
inline |
Recursive expression printer for internal use.
Definition at line 1199 of file Compiler_AST.H.
References append_indent(), Aleph::compiler_token_kind_name(), dump_expr(), escape_text(), Aleph::Compiler_Expr::kind, Aleph::Compiler_Literal_Expr::lexeme, Aleph::Compiler_Identifier_Expr::name, and out.
Referenced by Aleph::compiler_dump_expr(), dump_expr(), and dump_stmt().
|
inline |
Definition at line 1371 of file Compiler_AST.H.
References append_indent(), Aleph::blossom_maximum_cardinality_matching(), dump_import_decl(), escape_text(), and out.
Referenced by Aleph::compiler_dump_import_decl(), Aleph::compiler_dump_module(), and dump_import_decl().
|
inline |
Recursive statement printer for internal use.
Definition at line 1281 of file Compiler_AST.H.
References append_indent(), dump_expr(), dump_stmt(), dump_type_expr(), Aleph::Compiler_Stmt::kind, Aleph::Compiler_Let_Stmt::name, and out.
Referenced by Aleph::compiler_dump_function(), Aleph::compiler_dump_module(), Aleph::compiler_dump_stmt(), and dump_stmt().
|
inline |
Recursive type-declaration printer for internal use.
Definition at line 1397 of file Compiler_AST.H.
References append_indent(), Aleph::blossom_maximum_cardinality_matching(), dump_type_decl(), dump_type_expr(), Aleph::Compiler_Type_Decl::name, and out.
Referenced by Aleph::compiler_dump_module(), Aleph::compiler_dump_type_decl(), and dump_type_decl().
|
inline |
Dumps one parsed type-expression in a compact stable form.
Definition at line 1132 of file Compiler_AST.H.
References Aleph::blossom_maximum_cardinality_matching(), dump_type_expr(), Aleph::Compiler_Type_Expr::kind, and out.
Referenced by Aleph::compiler_dump_function(), Aleph::compiler_dump_module(), dump_stmt(), dump_type_decl(), and dump_type_expr().
|
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().