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

tag More...

#include <mim/ast/ast.h>

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

Public Member Functions

 PrimaryExpr (Loc loc, Tok::Tag tag)
 PrimaryExpr (Tok tok)
Tok::Tag tag () 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

tag

Definition at line 352 of file ast.h.

Constructor & Destructor Documentation

◆ PrimaryExpr() [1/2]

mim::ast::PrimaryExpr::PrimaryExpr ( Loc loc,
Tok::Tag tag )
inline

Definition at line 354 of file ast.h.

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

Referenced by PrimaryExpr().

◆ PrimaryExpr() [2/2]

mim::ast::PrimaryExpr::PrimaryExpr ( Tok tok)
inline

Definition at line 357 of file ast.h.

References mim::ast::Node::loc(), PrimaryExpr(), and tag().

Member Function Documentation

◆ bind()

void mim::ast::PrimaryExpr::bind ( Scopes & ) const
overridevirtual

Implements mim::ast::Expr.

Definition at line 125 of file bind.cpp.

◆ emit_()

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

Implements mim::ast::Expr.

Definition at line 153 of file emit.cpp.

References tag().

◆ stream()

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

Implements mim::ast::Node.

Definition at line 80 of file stream.cpp.

References mim::print(), and tag().

◆ tag()

Tok::Tag mim::ast::PrimaryExpr::tag ( ) const
inline

Definition at line 360 of file ast.h.

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


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