#include <Repl.hpp>
|
| Repl (uint16_t options, const std::vector< std::string > &libenv) |
| Construct a new Repl object.
|
|
int | run () |
| Start the REPL.
|
|
Definition at line 25 of file Repl.hpp.
◆ Repl()
Ark::Repl::Repl |
( |
uint16_t |
options, |
|
|
const std::vector< std::string > & |
libenv |
|
) |
| |
Construct a new Repl object.
- Parameters
-
options | the REPL options |
libenv | search path for the std library |
Definition at line 11 of file Repl.cpp.
◆ count_open_braces()
int Ark::Repl::count_open_braces |
( |
const std::string & |
line | ) |
|
|
private |
◆ count_open_parentheses()
int Ark::Repl::count_open_parentheses |
( |
const std::string & |
line | ) |
|
|
private |
◆ cui_setup()
void Ark::Repl::cui_setup |
( |
| ) |
|
|
private |
◆ print_repl_header()
void Ark::Repl::print_repl_header |
( |
| ) |
|
|
inlineprivate |
◆ run()
Start the REPL.
Definition at line 15 of file Repl.cpp.
References count_open_braces(), count_open_parentheses(), cui_setup(), Ark::State::doString(), Ark::VM::init(), Ark::VM::m_execution_contexts, m_libenv, m_lines, m_old_ip, m_options, m_repl, print_repl_header(), Ark::State::reset(), Ark::VM::safeRun(), Ark::State::setDebug(), and trim_whitespace().
Referenced by main().
◆ trim_whitespace()
void Ark::Repl::trim_whitespace |
( |
std::string & |
line | ) |
|
|
private |
◆ m_libenv
std::vector<std::string> Ark::Repl::m_libenv |
|
private |
◆ m_lines
unsigned Ark::Repl::m_lines |
|
private |
◆ m_old_ip
◆ m_options
uint16_t Ark::Repl::m_options |
|
private |
◆ m_repl
The documentation for this class was generated from the following files:
- /Users/fola/Documents/ArkScript/Ark/include/Ark/REPL/Repl.hpp
- /Users/fola/Documents/ArkScript/Ark/src/arkscript/REPL/Repl.cpp