Zen
A cross-platform functional programming language
|
Convenience class that wraps an ExprGenerator. More...
Public Member Functions | |
ExprWriter (const Ast::Expr &pexpr) | |
Default constructor. | |
ExprWriter & | isRoutine (const bool &val=true) |
Sets true if this is called from a routine. | |
z::stream & | write (z::stream &os) const |
Writes the type reference to the output stream. | |
Private Attributes | |
const Ast::Expr & | expr |
The expression to write. | |
bool | _isRoutine |
True if this is called from a routine. |
Convenience class that wraps an ExprGenerator.
ExprWriter | ( | const Ast::Expr & | pexpr | ) | [inline] |
Default constructor.
pexpr | The expression to generate |
ExprWriter& isRoutine | ( | const bool & | val = true | ) | [inline] |
Sets true if this is called from a routine.
val | True if called from a routine |
Writes the type reference to the output stream.
os | The output stream |