|
MimIR 0.1
MimIR is my Intermediate Representation
|
let ptrn: type = value;
More...
#include <mim/ast/ast.h>
Public Member Functions | |
| LetDecl (Loc loc, Ptr< Ptrn > &&ptrn, Ptr< Expr > &&value) | |
| const Ptrn * | ptrn () const |
| const Expr * | value () 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 |
Definition at line 837 of file ast.h.
References mim::ast::Node::loc(), ptrn(), mim::ast::ValDecl::ValDecl(), and value().
|
overridevirtual |
Implements mim::ast::ValDecl.
|
overridevirtual |
Implements mim::ast::ValDecl.
Definition at line 421 of file emit.cpp.
References mim::ast::Decl::def_, ptrn(), and value().
|
inline |
|
overridevirtual |
Implements mim::ast::Node.
Definition at line 201 of file stream.cpp.
References mim::print(), ptrn(), and value().
|
inline |