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

op rhs; PrefixExpr::op picks the meaning - see MIM_PREFIX. More...

#include <mim/ast/ast.h>

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

Public Member Functions

 PrefixExpr (Loc loc, Tok op, Ptr< Expr > rhs)
Tok op () const
const Expr * rhs () const
void bind (Scopes &) const override
void stream (fe::Tab &, std::ostream &) const override
Public Member Functions inherited from mim::ast::Expr
const Def * emit (Emitter &) const
const Def * emit_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 Def * emit_ (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

op rhs; PrefixExpr::op picks the meaning - see MIM_PREFIX.

Definition at line 628 of file ast.h.

Constructor & Destructor Documentation

◆ PrefixExpr()

mim::ast::PrefixExpr::PrefixExpr ( Loc loc,
Tok op,
Ptr< Expr > rhs )
inline

Definition at line 630 of file ast.h.

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

Member Function Documentation

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 257 of file bind.cpp.

References mim::ast::Expr::bind(), and rhs().

◆ emit_()

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

◆ op()

Tok mim::ast::PrefixExpr::op ( ) const
inline

Definition at line 635 of file ast.h.

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

◆ rhs()

const Expr * mim::ast::PrefixExpr::rhs ( ) const
inline

Definition at line 636 of file ast.h.

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

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

◆ stream()

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

Implements mim::ast::Node.

Definition at line 163 of file stream.cpp.

References op(), rhs(), mim::ast::S::S(), and mim::ast::Tok::tag2str().


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