MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::ast::InsertExpr Class Reference

ins(tuple, index, value) More...

#include <mim/ast/ast.h>

Inheritance diagram for mim::ast::InsertExpr:
[legend]

Public Member Functions

 InsertExpr (Loc loc, Ptr< Expr > &&tuple, Ptr< Expr > &&index, Ptr< Expr > &&value)
 
const Exprtuple () const
 
const Exprindex () const
 
const Exprvalue () const
 
void bind (Scopes &) const override
 
std::ostream & stream (Tab &, std::ostream &) const override
 
- Public Member Functions inherited from mim::ast::Expr
const Defemit (Emitter &) const
 
virtual const Defemit_decl (Emitter &, const Def *) const
 
virtual void emit_body (Emitter &, const Def *) const
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
void dump () const
 

Private Member Functions

const Defemit_ (Emitter &) const override
 

Additional Inherited Members

enum class  Prec {
  Err ,
  Bot ,
  Where ,
  Arrow ,
  Pi ,
  App ,
  Extract ,
  Lit
}
 
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 ()
 

Detailed Description

ins(tuple, index, value)

Definition at line 705 of file ast.h.

Constructor & Destructor Documentation

◆ InsertExpr()

mim::ast::InsertExpr::InsertExpr ( Loc loc,
Ptr< Expr > && tuple,
Ptr< Expr > && index,
Ptr< Expr > && value )
inline

Definition at line 707 of file ast.h.

References mim::ast::Expr::Expr(), index(), mim::ast::Node::loc(), tuple(), and value().

Member Function Documentation

◆ bind()

void mim::ast::InsertExpr::bind ( Scopes & s) const
overridevirtual

Implements mim::ast::Expr.

Definition at line 208 of file bind.cpp.

References index(), tuple(), and value().

◆ emit_()

const Def * mim::ast::InsertExpr::emit_ ( Emitter & e) const
overrideprivatevirtual

Implements mim::ast::Expr.

Definition at line 334 of file emit.cpp.

References index(), tuple(), and value().

◆ index()

const Expr * mim::ast::InsertExpr::index ( ) const
inline

Definition at line 714 of file ast.h.

References mim::ast::Expr::Expr().

Referenced by bind(), emit_(), InsertExpr(), and stream().

◆ stream()

std::ostream & mim::ast::InsertExpr::stream ( Tab & tab,
std::ostream & os ) const
overridevirtual

Implements mim::ast::Node.

Definition at line 150 of file stream.cpp.

References index(), mim::print(), tuple(), and value().

◆ tuple()

const Expr * mim::ast::InsertExpr::tuple ( ) const
inline

Definition at line 713 of file ast.h.

References mim::ast::Expr::Expr().

Referenced by bind(), emit_(), InsertExpr(), and stream().

◆ value()

const Expr * mim::ast::InsertExpr::value ( ) const
inline

Definition at line 715 of file ast.h.

References mim::ast::Expr::Expr().

Referenced by bind(), emit_(), InsertExpr(), and stream().


The documentation for this class was generated from the following files: