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
Ref emit (Emitter &) const
 
virtual Ref emit_decl (Emitter &, Ref) const
 
virtual void emit_body (Emitter &, Ref) const
 
- Public Member Functions inherited from mim::ast::Node
Loc loc () const
 
void dump () const
 

Private Member Functions

Ref 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)
 
virtual ~Node ()
 

Detailed Description

tag

Definition at line 327 of file ast.h.

Constructor & Destructor Documentation

◆ PrimaryExpr() [1/2]

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

Definition at line 329 of file ast.h.

◆ PrimaryExpr() [2/2]

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

Definition at line 332 of file ast.h.

Member Function Documentation

◆ bind()

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

Implements mim::ast::Expr.

Definition at line 117 of file bind.cpp.

◆ emit_()

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

Implements mim::ast::Expr.

Definition at line 130 of file emit.cpp.

◆ stream()

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

Implements mim::ast::Node.

Definition at line 79 of file stream.cpp.

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

◆ tag()

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

Definition at line 335 of file ast.h.

Referenced by stream().


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