MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches

One of: More...

#include <mim/ast/ast.h>

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

Classes

class  Dom

Public Member Functions

 PiExpr (Loc loc, Tok::Tag tag, Ptr< Dom > &&dom, Ptr< Expr > &&codom)
Public Member Functions inherited from mim::ast::Expr
const Defemit (Emitter &) const
Public Member Functions inherited from mim::ast::Node
Loc loc () const
void dump () const

Private Member Functions

void bind (Scopes &) const override
const Defemit_decl (Emitter &, const Def *type) const override
void emit_body (Emitter &, const Def *decl) const override
std::ostream & stream (Tab &, std::ostream &) const override
const Defemit_ (Emitter &) const override

Additional Inherited Members

Public Types inherited from mim::ast::Expr
using Prec = ast::Prec
 Backward-compatible alias; prefer the free-standing ast::Prec.
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

One of:

  • {ptrn} → codom
  • Cn prn
  • Fn prn → codom

Definition at line 571 of file ast.h.

Constructor & Destructor Documentation

◆ PiExpr()

mim::ast::PiExpr::PiExpr ( Loc loc,
Tok::Tag tag,
Ptr< Dom > && dom,
Ptr< Expr > && codom )
inline

Definition at line 603 of file ast.h.

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

Member Function Documentation

◆ bind()

void mim::ast::PiExpr::bind ( Scopes & s) const
overrideprivatevirtual

Implements mim::ast::Expr.

Definition at line 181 of file bind.cpp.

References mim::ast::Node::loc().

◆ emit_()

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

Implements mim::ast::Expr.

Definition at line 280 of file emit.cpp.

◆ emit_body()

void mim::ast::PiExpr::emit_body ( Emitter & e,
const Def * decl ) const
overrideprivatevirtual

Reimplemented from mim::ast::Expr.

Definition at line 278 of file emit.cpp.

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

◆ emit_decl()

const Def * mim::ast::PiExpr::emit_decl ( Emitter & e,
const Def * type ) const
overrideprivatevirtual

Reimplemented from mim::ast::Expr.

Definition at line 274 of file emit.cpp.

References mim::ast::Node::loc().

◆ stream()

std::ostream & mim::ast::PiExpr::stream ( Tab & tab,
std::ostream & os ) const
overrideprivatevirtual

Implements mim::ast::Node.

Definition at line 143 of file stream.cpp.

References mim::print().


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