2020-04-25 18:45:59 +00:00
|
|
|
#include "wren/vm.hpp"
|
|
|
|
#include "wren/def_configuration.hpp"
|
2020-04-24 23:49:46 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include <chrono>
|
|
|
|
#include <thread>
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
} //unnamed namespace
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
std::cout << "hello world\n";
|
2020-04-25 18:45:59 +00:00
|
|
|
wren::DefConfiguration config;
|
|
|
|
wren::VM vm(&config);
|
|
|
|
vm.interpret("my_module", "System.print(\"I am running in a VM!\")");
|
2020-04-24 23:49:46 +00:00
|
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|