|
MimIR 0.1
MimIR is my Intermediate Representation
|
One of: More...
#include <mim/ast/ast.h>
Classes | |
| class | Dom |
Public Member Functions | |
| LamDecl (Loc loc, Tok::Tag tag, bool is_external, Dbg dbg, Ptrs< Dom > &&doms, Ptr< Expr > &&codom, Ptr< Expr > &&body, Ptr< RecDecl > &&next) | |
| Tok::Tag | tag () const |
| bool | is_external () const |
| const Ptrs< Dom > & | doms () const |
| const Dom * | dom (size_t i) const |
| size_t | num_doms () const |
| const Expr * | codom () const |
| void | bind_decl (Scopes &) const override |
| void | bind_body (Scopes &) const override |
| void | emit_decl (Emitter &) const override |
| void | emit_body (Emitter &) const override |
| std::ostream & | stream (Tab &, std::ostream &) const override |
Public Member Functions inherited from mim::ast::RecDecl | |
| RecDecl (Loc loc, Dbg dbg, Ptr< Expr > &&type, Ptr< Expr > &&body, Ptr< RecDecl > &&next) | |
| Dbg | dbg () const |
| const Expr * | type () const |
| const Expr * | body () const |
| const RecDecl * | next () const |
| void | bind (Scopes &) const override |
| void | emit (Emitter &) const override |
| std::ostream & | stream (Tab &, std::ostream &) const override |
Public Member Functions inherited from mim::ast::Decl | |
| const Def * | def () const |
Public Member Functions inherited from mim::ast::Node | |
| Loc | loc () const |
| void | dump () const |
Additional Inherited Members | |
Protected Member Functions inherited from mim::ast::ValDecl | |
| ValDecl (Loc loc) | |
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 | |
| const Def * | def_ = nullptr |
One of:
λ dom_0 ... dom_n-1 -> codomcn dom_0 ... dom_n-1fn dom_0 ... dom_n-1 -> codomlam dbg dom_0 ... dom_n-1 -> codomcon dbg dom_0 ... dom_n-1fun dbg dom_0 ... dom_n-1 -> codom
|
inline |
Definition at line 973 of file ast.h.
References mim::ast::RecDecl::body(), codom(), mim::ast::RecDecl::dbg(), doms(), is_external(), mim::ast::Node::loc(), mim::ast::RecDecl::next(), num_doms(), mim::ast::RecDecl::RecDecl(), and tag().
|
overridevirtual |
Reimplemented from mim::ast::RecDecl.
Definition at line 366 of file bind.cpp.
References mim::ast::RecDecl::body(), dom(), and doms().
|
overridevirtual |
Reimplemented from mim::ast::RecDecl.
Definition at line 335 of file bind.cpp.
References codom(), mim::ast::RecDecl::dbg(), dom(), doms(), mim::ast::Node::loc(), num_doms(), and tag().
|
inline |
Definition at line 994 of file ast.h.
Referenced by bind_decl(), emit_decl(), LamDecl(), and stream().
|
inline |
Definition at line 992 of file ast.h.
Referenced by bind_body(), bind_decl(), emit_body(), and emit_decl().
Definition at line 991 of file ast.h.
Referenced by bind_body(), bind_decl(), emit_body(), emit_decl(), LamDecl(), and stream().
|
overridevirtual |
Reimplemented from mim::ast::RecDecl.
Definition at line 487 of file emit.cpp.
References mim::ast::RecDecl::body(), mim::ast::Decl::def_, dom(), doms(), mim::Hole, is_external(), num_doms(), and mim::Pi::set().
|
overridevirtual |
Reimplemented from mim::ast::RecDecl.
Definition at line 460 of file emit.cpp.
References codom(), mim::ast::RecDecl::dbg(), mim::ast::Decl::def_, dom(), doms(), mim::ast::Node::loc(), and num_doms().
|
inline |
Definition at line 990 of file ast.h.
Referenced by emit_body(), and LamDecl().
|
inline |
Definition at line 993 of file ast.h.
Referenced by bind_decl(), emit_body(), emit_decl(), and LamDecl().
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 218 of file stream.cpp.
References mim::ast::RecDecl::body(), codom(), mim::ast::RecDecl::dbg(), doms(), mim::print(), and tag().
|
inline |
Definition at line 989 of file ast.h.
Referenced by bind_decl(), LamDecl(), and stream().