MimIR 0.1
MimIR is my Intermediate Representation
|
One of: More...
#include <mim/ast/ast.h>
Classes | |
class | Dom |
Public Member Functions | |
PiExpr (Loc loc, Tok::Tag tag, Ptrs< Dom > &&doms, Ptr< Expr > &&codom) | |
Public Member Functions inherited from mim::ast::Expr | |
Ref | emit (Emitter &) const |
Public Member Functions inherited from mim::ast::Node | |
Loc | loc () const |
void | dump () const |
Private Member Functions | |
void | bind (Scopes &) const override |
Ref | emit_decl (Emitter &, Ref type) const override |
void | emit_body (Emitter &, Ref decl) const override |
std::ostream & | stream (Tab &, std::ostream &) const override |
Ref | emit_ (Emitter &) const override |
Additional Inherited Members | |
Public Types inherited from mim::ast::Expr | |
enum class | Prec { Err , Bot , Where , Arrow , Pi , App , Extract , Lit } |
Static Public Member Functions inherited from mim::ast::Expr | |
static constexpr bool | is_rassoc (Prec p) |
Protected Member Functions inherited from mim::ast::Expr | |
Expr (Loc loc) | |
Protected Member Functions inherited from mim::ast::Node | |
Node (Loc loc) | |
virtual | ~Node () |
One of:
dom_0 ... dom_n-1 -> codom
Cn dom_0 ... dom_n-1
Fn dom_0 ... dom_n-1 -> codom
|
overrideprivatevirtual |
Implements mim::ast::Expr.
Definition at line 151 of file bind.cpp.
References mim::ast::Expr::bind(), mim::ast::PiExpr::Dom::bind(), and mim::ast::Node::loc().
Implements mim::ast::Expr.
Definition at line 233 of file emit.cpp.
References mim::ast::Expr::emit(), mim::ast::PiExpr::Dom::emit_type(), mim::ast::PiExpr::Dom::pi_, and mim::Pi::set_codom().
Reimplemented from mim::ast::Expr.
Definition at line 231 of file emit.cpp.
References mim::ast::Expr::emit().
Referenced by mim::ast::LamExpr::emit_().
Reimplemented from mim::ast::Expr.
Definition at line 226 of file emit.cpp.
References mim::ast::Node::loc().
Referenced by mim::ast::LamExpr::emit_().
|
overrideprivatevirtual |