Zen
A cross-platform functional programming language
|
AST Node representing a statement that writes one or more expressions to a log. More...
#include <Ast.hpp>
Public Member Functions | |
LogStatement (const z::string &name, const Ast::ExprList &list) | |
Default constructor. | |
const z::string & | getName () const |
Returns the name of the target logger. | |
const ExprList & | getList () const |
Returns a reference to the list of expressions to be logged. | |
Private Member Functions | |
virtual void | visit (Statement::Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const z::string | _name |
Name of target logger. | |
const Ast::ExprList & | _list |
Expression list. |
AST Node representing a statement that writes one or more expressions to a log.
For example:
dlog <- 10 <- "xxx\n";
Here, 10 and xxx is written to the debug log
LogStatement | ( | const z::string & | name, |
const Ast::ExprList & | list | ||
) | [inline] |
Default constructor.
name | Name of the logger to write to |
list | List of expression to write out. |
const ExprList& getList | ( | ) | const [inline] |
Returns a reference to the list of expressions to be logged.
const z::string& getName | ( | ) | const [inline] |
Returns the name of the target logger.
void visit | ( | Statement::Visitor & | visitor | ) | const [private, virtual] |