|
Sen API
Sen Libraries
|
Virtual machine for executing Sen byte code. More...
#include <vm.h>
Classes | |
| struct | CompileError |
| Compilation failure report. More... | |
| struct | RuntimeError |
| Runtime error report. More... | |
Public Member Functions | |
| VM ()=default | |
| ~VM ()=default | |
| Result< Value, RuntimeError > | interpret (const Chunk &chunk, Environment environment={}) |
| Interpret a chunk of code. | |
| QueryStatement | parse (const std::string &query) const |
| Parse a query string into a statement. Throws in case of error. | |
| Result< Chunk, CompileError > | compile (const QueryStatement &statement) const |
| Compile source code into a chunk. | |
Virtual machine for executing Sen byte code.
|
default |
|
default |
|
nodiscard |
Interpret a chunk of code.
|
nodiscard |
Parse a query string into a statement. Throws in case of error.
|
nodiscard |
Compile source code into a chunk.