Standalone vq interpreter.
More...
#include <vq.h>
|
|
| VQ ()=default |
| | Deleted default constructor.
|
| |
|
| VQ (VQ &&) noexcept=default |
| | Move-construct a VQ object.
|
| |
|
VQ & | operator= (VQ &&) noexcept=default |
| | Move-assign a VQ object.
|
| |
|
| VQ (const VQ &) noexcept=default |
| | Copy-construct a VQ object.
|
| |
|
VQ & | operator= (const VQ &) noexcept=default |
| | Copy-assign a VQ object.
|
| |
|
| ~VQ () noexcept=default |
| | Destroy the VQ object.
|
| |
|
| static void | runFile (const std::filesystem::path path) noexcept |
| | Run a file.
|
| |
| static void | runPrompt () noexcept |
| | Run the prompt.
|
| |
| static void | run (const std::string &source) noexcept |
| | Run a source string.
|
| |
| static void | error (Token token, const std::string &message) noexcept |
| | Handle an error.
|
| |
| static void | runtimeError (const RuntimeError &error) noexcept |
| | Handle a runtime error.
|
| |
Standalone vq interpreter.
Definition at line 17 of file vq.h.
◆ size_type
| using vkdb::VQ::size_type = uint64_t |
Definition at line 19 of file vq.h.
◆ error()
| void vkdb::VQ::error |
( |
Token | token, |
|
|
const std::string & | message ) |
|
staticnoexcept |
Handle an error.
Reports the error and sets the had_error_ flag.
- Parameters
-
| token | Token where the error occurred. |
| message | Error message. |
Definition at line 58 of file vq.cpp.
◆ run()
| void vkdb::VQ::run |
( |
const std::string & | source | ) |
|
|
staticnoexcept |
Run a source string.
- Parameters
-
Definition at line 44 of file vq.cpp.
◆ runFile()
| void vkdb::VQ::runFile |
( |
const std::filesystem::path | path | ) |
|
|
staticnoexcept |
Run a file.
- Parameters
-
Definition at line 13 of file vq.cpp.
◆ runPrompt()
| void vkdb::VQ::runPrompt |
( |
| ) |
|
|
staticnoexcept |
Run the prompt.
The user can enter queries and commands interactively.
Definition at line 30 of file vq.cpp.
◆ runtimeError()
Handle a runtime error.
Reports the runtime error and sets the had_runtime_error_ flag.
- Parameters
-
Definition at line 66 of file vq.cpp.
The documentation for this class was generated from the following files:
- /home/runner/work/vkdb/vkdb/include/query/vkdb/vq.h
- /home/runner/work/vkdb/vkdb/src/query/vq.cpp