22 lines
268 B
C++
22 lines
268 B
C++
#pragma once
|
|
|
|
#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;
|
|
}
|
|
};
|
|
|
|
}
|