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

«arity; body» or ‹arity; body› if SeqExpr::is_pack. More...

#include <mim/ast/ast.h>

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

Public Member Functions

 SeqExpr (Loc loc, bool is_pack, Ptr< IdPtrn > arity, Ptr< Expr > body)
bool is_pack () const
const IdPtrnarity () const
const Exprbody () const
void bind (Scopes &) const override
void stream (fe::Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Expr
const Defemit (Emitter &) const
const Defemit_decl (Emitter &, const Def *type) const
void emit_body (Emitter &, const Def *decl) 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

Protected Member Functions inherited from mim::ast::Expr
 Expr (Loc loc)
Protected Member Functions inherited from mim::ast::Node
 Node (Loc loc)

Detailed Description

«arity; body» or ‹arity; body› if SeqExpr::is_pack.

Definition at line 843 of file ast.h.

Constructor & Destructor Documentation

◆ SeqExpr()

mim::ast::SeqExpr::SeqExpr ( Loc loc,
bool is_pack,
Ptr< IdPtrn > arity,
Ptr< Expr > body )
inline

Definition at line 845 of file ast.h.

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

Member Function Documentation

◆ arity()

const IdPtrn * mim::ast::SeqExpr::arity ( ) const
inline

Definition at line 852 of file ast.h.

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

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 310 of file bind.cpp.

References arity(), and body().

◆ body()

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

Definition at line 853 of file ast.h.

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

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

◆ emit_()

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

◆ is_pack()

bool mim::ast::SeqExpr::is_pack ( ) const
inline

Definition at line 851 of file ast.h.

Referenced by emit_(), SeqExpr(), and stream().

◆ stream()

void mim::ast::SeqExpr::stream ( fe::Tab & tab,
std::ostream & os ) const
overridevirtual

Implements mim::ast::Node.

Definition at line 184 of file stream.cpp.

References arity(), body(), is_pack(), and mim::ast::S::S().


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