Zen
A cross-platform functional programming language
|
Class that generates the declarations for implementation items. More...
Public Member Functions | |
DeclWriter (Indenter &ind, z::stream &pos) | |
Default constructor. | |
Private Member Functions | |
void | writeContinuation (const Ast::ContinuationImplItem &continuation) |
Writes a continuation implementation item. | |
template<typename ImplItemT > | |
void | enterFunction (const ImplItemT &item) |
Writes the entry code for an implementation item. | |
template<typename ImplItemT > | |
void | leaveFunction (const ImplItemT &item) |
Writes the exit code for an implementation item. | |
virtual void | visit (const Ast::ContinuationImplItem &item) |
Abstract visitor function. | |
virtual void | visit (const Ast::RoutineImplItem &item) |
Abstract visitor function. | |
virtual void | visit (const Ast::FunctionImplItem &item) |
Abstract visitor function. | |
virtual void | visit (const Ast::GrammarImplItem &item) |
Abstract visitor function. | |
virtual void | visit (const Ast::WindowImplItem &item) |
Abstract visitor function. | |
Private Attributes | |
Indenter & | _ind |
Current indentation level. | |
z::stream & | _os |
Output stream. |
Class that generates the declarations for implementation items.
DeclWriter | ( | Indenter & | ind, |
z::stream & | pos | ||
) | [inline] |
Default constructor.
ind | The indentation level |
pos | The output stream |
void enterFunction | ( | const ImplItemT & | item | ) | [inline, private] |
Writes the entry code for an implementation item.
item | The implementation item |
void leaveFunction | ( | const ImplItemT & | item | ) | [inline, private] |
Writes the exit code for an implementation item.
item | The implementation item |
virtual void visit | ( | const Ast::GrammarImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
virtual void visit | ( | const Ast::ContinuationImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
virtual void visit | ( | const Ast::RoutineImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
virtual void visit | ( | const Ast::WindowImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
virtual void visit | ( | const Ast::FunctionImplItem & | item | ) | [inline, private, virtual] |
Abstract visitor function.
item | The implementation item reference to handle |
Implements ImplItem::Visitor.
void writeContinuation | ( | const Ast::ContinuationImplItem & | continuation | ) | [inline, private] |
Writes a continuation implementation item.
continuation | The continuation implementation item |