19 using size_type = uint64_t;
31 VQ(
VQ&&) noexcept = default;
37 VQ& operator=(
VQ&&) noexcept = default;
43 VQ(const
VQ&) noexcept = default;
49 VQ& operator=(const
VQ&) noexcept = default;
55 ~
VQ() noexcept = default;
62 static
void runFile(const
std::filesystem::path path) noexcept;
76 static
void run(const
std::
string& source) noexcept;
85 static
void error(
Token token, const
std::
string& message) noexcept;
105 const
std::
string& where,
106 const
std::
string& message
113 static
bool had_error_;
119 static
bool had_runtime_error_;
Represents a database in vkdb.
Standalone vq interpreter.
static void error(Token token, const std::string &message) noexcept
Handle an error.
static void run(const std::string &source) noexcept
Run a source string.
VQ(VQ &&) noexcept=default
Move-construct a VQ object.
static void runFile(const std::filesystem::path path) noexcept
Run a file.
static void runPrompt() noexcept
Run the prompt.
VQ()=default
Deleted default constructor.
static void runtimeError(const RuntimeError &error) noexcept
Handle a runtime error.