polserver/pol-core/bscript/compiler/codegen/AbstractSyntaxTreeStringGenerator.h

23 lines
401 B
C
Raw Permalink Normal View History

#pragma once
#include "bscript/compiler/ast/NodeVisitor.h"
#include <string>
namespace Pol::Bscript::Compiler
{
class AbstractSyntaxTreeStringGenerator : public NodeVisitor
{
public:
AbstractSyntaxTreeStringGenerator();
void visit_children( Node& parent ) override;
const std::string& tree() const { return _tree; }
private:
std::string _tree;
};
} // namespace Pol::Bscript::Compiler