2015-12-08 04:51:55 +08:00
|
|
|
#pragma once
|
2015-08-30 07:12:46 +08:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include "ast_visitor.hpp"
|
|
|
|
#include "values.hpp"
|
|
|
|
|
|
|
|
namespace ast
|
|
|
|
{
|
|
|
|
|
|
|
|
class AstEcho : public AstVisitor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
virtual void visit(Boolean& node)
|
|
|
|
{
|
|
|
|
std::cout << "Boolean: " << node.value << std::endl;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|