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

ret ptrn = callee $ arg; body More...

#include <mim/ast/ast.h>

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

Public Member Functions

 RetExpr (Loc loc, Ptr< Ptrn > &&ptrn, Ptr< Expr > &&callee, Ptr< Expr > &&arg, Ptr< Expr > body)
const Ptrnptrn () const
const Exprcallee () const
const Exprarg () const
const Exprbody () 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

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

ret ptrn = callee $ arg; body

Definition at line 670 of file ast.h.

Constructor & Destructor Documentation

◆ RetExpr()

mim::ast::RetExpr::RetExpr ( Loc loc,
Ptr< Ptrn > && ptrn,
Ptr< Expr > && callee,
Ptr< Expr > && arg,
Ptr< Expr > body )
inline

Definition at line 672 of file ast.h.

References arg(), body(), callee(), mim::ast::Expr::Expr(), mim::ast::Node::loc(), and ptrn().

Member Function Documentation

◆ arg()

const Expr * mim::ast::RetExpr::arg ( ) const
inline

Definition at line 681 of file ast.h.

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

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

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 201 of file bind.cpp.

References arg(), body(), callee(), and ptrn().

◆ body()

const Expr * mim::ast::RetExpr::body ( ) const
inline

Definition at line 682 of file ast.h.

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

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

◆ callee()

const Expr * mim::ast::RetExpr::callee ( ) const
inline

Definition at line 680 of file ast.h.

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

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

◆ emit_()

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

◆ ptrn()

const Ptrn * mim::ast::RetExpr::ptrn ( ) const
inline

Definition at line 679 of file ast.h.

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

◆ stream()

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

Implements mim::ast::Node.

Definition at line 156 of file stream.cpp.

References arg(), body(), callee(), mim::Tab::print(), mim::println(), and ptrn().


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