MimIR 0.1
MimIR is my Intermediate Representation
|
(elem_0, ..., elem_n-1)
More...
#include <mim/ast/ast.h>
Public Member Functions | |
TupleExpr (Loc loc, Ptrs< Expr > &&elems) | |
const auto & | elems () const |
const Expr * | elem (size_t i) const |
size_t | num_elems () const |
void | bind (Scopes &) const override |
std::ostream & | stream (Tab &, std::ostream &) const override |
Public Member Functions inherited from mim::ast::Expr | |
Ref | emit (Emitter &) const |
virtual Ref | emit_decl (Emitter &, Ref) const |
virtual void | emit_body (Emitter &, Ref) const |
Public Member Functions inherited from mim::ast::Node | |
Loc | loc () const |
void | dump () const |
Private Member Functions | |
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 () |
|
overridevirtual |
Implements mim::ast::Expr.
|
inline |
|
inline |
Definition at line 638 of file ast.h.
Referenced by num_elems().
Implements mim::ast::Expr.
|
inline |
|
overridevirtual |