#pragma once #include #include #include #include #include namespace rl { [[nodiscard]] auto repository_root(std::filesystem::path& root, std::string& error) noexcept -> bool; [[nodiscard]] auto number(std::string_view text) noexcept -> std::optional; struct source_location { std::filesystem::path file; std::size_t line; }; [[nodiscard]] auto parse_location(std::string_view text) noexcept -> std::optional; [[nodiscard]] auto read_lines(const std::filesystem::path& file, std::vector& lines, std::string& error) noexcept -> bool; auto map_sections(const std::vector& lines, std::string_view term) -> std::string; } // namespace rl