MimIR 0.1
MimIR is my Intermediate Representation
|
#include <mim/ast/ast.h>
Public Member Functions | |
Module (Loc loc, Ptrs< Import > &&imports, Ptrs< ValDecl > &&decls) | |
const auto & | implicit_imports () const |
const auto & | imports () const |
const auto & | decls () const |
void | add_implicit_imports (Ptrs< Import > &&imports) const |
void | compile (AST &) const |
void | bind (AST &) const |
void | bind (Scopes &) const |
void | emit (AST &) const |
void | emit (Emitter &) const |
std::ostream & | stream (Tab &, std::ostream &) const override |
Public Member Functions inherited from mim::ast::Node | |
Loc | loc () const |
void | dump () const |
Additional Inherited Members | |
Protected Member Functions inherited from mim::ast::Node | |
Node (Loc loc) | |
virtual | ~Node () |
void mim::ast::Module::bind | ( | AST & | ast | ) | const |
void mim::ast::Module::bind | ( | Scopes & | s | ) | const |
Definition at line 82 of file bind.cpp.
References decls(), implicit_imports(), and imports().
void mim::ast::Module::compile | ( | AST & | ast | ) | const |
Definition at line 183 of file ast.cpp.
References mim::Error::ack(), bind(), emit(), mim::ast::AST::error(), and mim::Error::num_warnings().
|
inline |
void mim::ast::Module::emit | ( | AST & | ast | ) | const |
void mim::ast::Module::emit | ( | Emitter & | e | ) | const |
Definition at line 40 of file emit.cpp.
References decls(), implicit_imports(), imports(), and mim::ast::Node::loc().
|
inline |
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 43 of file stream.cpp.
References decls(), imports(), and mim::Tab::println().