MimIR 0.1
MimIR is my Intermediate Representation
|
#include <mim/ast/ast.h>
Public Member Functions | |
Ptrn (Loc loc, bool rebind, Dbg dbg) | |
bool | rebind () const |
Dbg | dbg () const |
virtual void | bind (Scopes &, bool quiet=false) const =0 |
Ref | emit_value (Emitter &, Ref) const |
virtual Ref | emit_type (Emitter &) const =0 |
Public Member Functions inherited from mim::ast::Decl | |
Ref | def () const |
Public Member Functions inherited from mim::ast::Node | |
Loc | loc () const |
virtual std::ostream & | stream (Tab &, std::ostream &) const =0 |
void | dump () const |
Static Public Member Functions | |
static Ptr< Expr > | to_expr (AST &, Ptr< Ptrn > &&) |
static Ptr< Ptrn > | to_ptrn (Ptr< Expr > &&) |
Private Member Functions | |
virtual void | emit_value_ (Emitter &, Ref) const |
Additional Inherited Members | |
Protected Member Functions inherited from mim::ast::Decl | |
Decl (Loc loc) | |
Protected Member Functions inherited from mim::ast::Node | |
Node (Loc loc) | |
virtual | ~Node () |
Protected Attributes inherited from mim::ast::Decl | |
Ref | def_ = nullptr |
|
pure virtual |
Implemented in mim::ast::ErrorPtrn, mim::ast::GrpPtrn, mim::ast::IdPtrn, and mim::ast::TuplePtrn.
Referenced by mim::ast::PiExpr::Dom::bind(), and mim::ast::TuplePtrn::bind().
|
inline |
Definition at line 179 of file ast.h.
Referenced by mim::ast::GrpPtrn::bind(), mim::ast::IdPtrn::bind(), mim::ast::TuplePtrn::bind(), mim::ast::TuplePtrn::emit_body(), mim::ast::TuplePtrn::emit_decl(), emit_value(), mim::ast::IdPtrn::mk_id(), mim::ast::GrpPtrn::stream(), mim::ast::IdPtrn::stream(), mim::ast::TuplePtrn::stream(), and to_expr().
Implemented in mim::ast::ErrorPtrn, mim::ast::GrpPtrn, mim::ast::IdPtrn, and mim::ast::TuplePtrn.
Referenced by mim::ast::PiExpr::Dom::emit_type(), and emit_value().
Definition at line 53 of file emit.cpp.
References dbg(), mim::ast::Decl::def(), mim::ast::Decl::def_, emit_type(), emit_value_(), mim::ast::Node::loc(), and mim::Def::set().
Referenced by mim::ast::TuplePtrn::emit_body(), mim::ast::PiExpr::Dom::emit_type(), and mim::ast::TuplePtrn::emit_value_().
Reimplemented in mim::ast::TuplePtrn.
Definition at line 189 of file ast.h.
Referenced by emit_value().
|
inline |
Definition at line 178 of file ast.h.
Referenced by mim::ast::GrpPtrn::bind(), mim::ast::IdPtrn::bind(), and mim::ast::TuplePtrn::bind().
Definition at line 167 of file ast.cpp.
References dbg(), mim::ast::TuplePtrn::is_brckt(), and mim::ast::AST::ptr().