mirror of
https://github.com/IRBorisov/ConceptCore.git
synced 2025-06-26 17:20:37 +03:00
22 lines
493 B
C++
22 lines
493 B
C++
#pragma once
|
|
|
|
#include "ccl/lang/TextProcessor.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace ccl::lang {
|
|
|
|
class TextEnvironment final {
|
|
private:
|
|
std::unique_ptr<TextProcessor> processor{ std::make_unique<TextProcessor>() };
|
|
|
|
public:
|
|
bool skipResolving{ false };
|
|
|
|
public:
|
|
static void SetProcessor(std::unique_ptr<TextProcessor> newProcessor) noexcept;
|
|
[[nodiscard]] static TextProcessor& Processor() noexcept;
|
|
[[nodiscard]] static TextEnvironment& Instance() noexcept;
|
|
};
|
|
|
|
} // namespace ccl::lang
|