MimIR 0.1
MimIR is my Intermediate Representation
|
«dbg: shape; body»
or ‹dbg: shape; body›
More...
#include <mim/ast/ast.h>
Public Member Functions | |
SeqExpr (Loc loc, bool is_arr, Ptr< IdPtrn > &&shape, Ptr< Expr > &&body) | |
bool | is_arr () const |
const IdPtrn * | shape () const |
const Expr * | body () const |
void | bind (Scopes &) const override |
std::ostream & | stream (Tab &, std::ostream &) const override |
![]() | |
const Def * | emit (Emitter &) const |
virtual const Def * | emit_decl (Emitter &, const Def *) const |
virtual void | emit_body (Emitter &, const Def *) const |
![]() | |
Loc | loc () const |
void | dump () const |
Private Member Functions | |
const Def * | emit_ (Emitter &) const override |
Additional Inherited Members | |
enum class | Prec { Err , Bot , Where , Arrow , Pi , Inj , App , Union , Extract , Lit } |
static constexpr bool | is_rassoc (Prec p) |
![]() | |
Expr (Loc loc) | |
![]() | |
Node (Loc loc) | |
virtual | ~Node () |
|
inline |
Definition at line 745 of file ast.h.
References body(), mim::ast::Expr::Expr(), is_arr(), mim::ast::Node::loc(), and shape().
|
overridevirtual |
|
inline |
Implements mim::ast::Expr.
Definition at line 312 of file emit.cpp.
References body(), mim::ast::Expr::emit(), is_arr(), and shape().
|
inline |
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 156 of file stream.cpp.
References body(), is_arr(), mim::print(), and shape().