MimIR 0.1
MimIR is my Intermediate Representation
|
tok:type
More...
#include <mim/ast/ast.h>
Public Member Functions | |
LitExpr (Loc loc, Tok tok, Ptr< Expr > &&type) | |
Tok | tok () const |
Tok::Tag | tag () const |
const Expr * | type () 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 () |
|
overridevirtual |
Implements mim::ast::Expr.
Definition at line 120 of file bind.cpp.
References mim::ast::Expr::bind(), mim::ast::Node::loc(), tag(), and type().
Implements mim::ast::Expr.
Definition at line 156 of file emit.cpp.
References mim::ast::Expr::emit(), mim::ast::Tok::lit_i(), tag(), tok(), and type().
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 81 of file stream.cpp.
References mim::ast::Tok::lit_u(), mim::print(), tag(), tok(), and type().
|
inline |
|
inline |
|
inline |