MimIR 0.1
MimIR is my Intermediate Representation
|
#include <mim/ast/ast.h>
Public Member Functions | |
Ref | emit (Emitter &) const |
virtual void | bind (Scopes &) const =0 |
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 |
virtual std::ostream & | stream (Tab &, std::ostream &) const =0 |
void | dump () const |
Protected Member Functions | |
Expr (Loc loc) | |
Protected Member Functions inherited from mim::ast::Node | |
Node (Loc loc) | |
virtual | ~Node () |
Private Member Functions | |
virtual Ref | emit_ (Emitter &) const =0 |
|
pure virtual |
Implemented in mim::ast::AppExpr, mim::ast::ArrOrPackExpr< arr >, mim::ast::ArrowExpr, mim::ast::DeclExpr, mim::ast::ErrorExpr, mim::ast::ExtractExpr, mim::ast::IdExpr, mim::ast::InferExpr, mim::ast::InsertExpr, mim::ast::LamExpr, mim::ast::LitExpr, mim::ast::PiExpr, mim::ast::PrimaryExpr, mim::ast::RetExpr, mim::ast::SigmaExpr, mim::ast::TupleExpr, and mim::ast::TypeExpr.
Referenced by mim::ast::ArrowExpr::bind(), mim::ast::CDecl::bind(), mim::ast::DeclExpr::bind(), mim::ast::IdPtrn::bind(), mim::ast::LitExpr::bind(), mim::ast::PiExpr::bind(), and mim::ast::LamDecl::bind_decl().
Definition at line 112 of file emit.cpp.
References emit_(), and mim::ast::Node::loc().
Referenced by mim::ast::CDecl::emit(), mim::ast::ArrOrPackExpr< arr >::emit_(), mim::ast::ArrowExpr::emit_(), mim::ast::DeclExpr::emit_(), mim::ast::LitExpr::emit_(), mim::ast::PiExpr::emit_(), mim::ast::RetExpr::emit_(), mim::ast::TypeExpr::emit_(), mim::ast::ArrowExpr::emit_body(), mim::ast::LamDecl::emit_body(), mim::ast::PiExpr::emit_body(), mim::ast::LamDecl::emit_decl(), and mim::ast::IdPtrn::emit_type().
Implemented in mim::ast::AppExpr, mim::ast::ArrOrPackExpr< arr >, mim::ast::ArrowExpr, mim::ast::DeclExpr, mim::ast::ErrorExpr, mim::ast::ExtractExpr, mim::ast::IdExpr, mim::ast::InferExpr, mim::ast::InsertExpr, mim::ast::LamExpr, mim::ast::LitExpr, mim::ast::PiExpr, mim::ast::PrimaryExpr, mim::ast::RetExpr, mim::ast::SigmaExpr, mim::ast::TupleExpr, and mim::ast::TypeExpr.
Referenced by emit().
Reimplemented in mim::ast::ArrowExpr, mim::ast::LamExpr, mim::ast::PiExpr, and mim::ast::SigmaExpr.
Reimplemented in mim::ast::ArrowExpr, mim::ast::LamExpr, mim::ast::PiExpr, and mim::ast::SigmaExpr.