MimIR 0.1
MimIR is my Intermediate Representation
|
dbg_0 ... dbg_n-2 id
where id
= dbg_n-1: type
More...
#include <mim/ast/ast.h>
Public Member Functions | |
GrpPtrn (Dbg dbg, const IdPtrn *id) | |
const IdPtrn * | id () const |
void | bind (Scopes &, bool quiet=false) const override |
Ref | emit_type (Emitter &) const override |
std::ostream & | stream (Tab &, std::ostream &) const override |
Public Member Functions inherited from mim::ast::Ptrn | |
Ptrn (Loc loc, bool rebind, Dbg dbg) | |
bool | rebind () const |
Dbg | dbg () const |
Ref | emit_value (Emitter &, Ref) const |
Public Member Functions inherited from mim::ast::Decl | |
Ref | def () const |
Public Member Functions inherited from mim::ast::Node | |
Loc | loc () const |
void | dump () const |
Additional Inherited Members | |
Static Public Member Functions inherited from mim::ast::Ptrn | |
static Ptr< Expr > | to_expr (AST &, Ptr< Ptrn > &&) |
static Ptr< Ptrn > | to_ptrn (Ptr< Expr > &&) |
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 |
|
overridevirtual |
Implements mim::ast::Ptrn.
Definition at line 106 of file bind.cpp.
References mim::ast::Ptrn::dbg(), and mim::ast::Ptrn::rebind().
Implements mim::ast::Ptrn.
Definition at line 75 of file emit.cpp.
References mim::ast::IdPtrn::emit_type(), and id().
|
inline |
Definition at line 238 of file ast.h.
Referenced by emit_type().
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 64 of file stream.cpp.
References mim::ast::Ptrn::dbg().