1#ifndef ARK_FORMATTER_HPP
2#define ARK_FORMATTER_HPP
27 Formatter(std::string filename,
bool dry_run);
40 [[nodiscard]]
const std::string&
output()
const;
124 [[nodiscard]]
static std::string
prefix(
const std::size_t indent)
131 return std::ranges::count(formatted,
'\n') >= 1;
145 [[nodiscard]] std::string
formatComment(
const std::string& comment, std::size_t indent)
const;
Parse ArkScript code, but do not handle any import declarations.
A node of an Abstract Syntax Tree for ArkScript.
Keyword
The different keywords available.