wrenpp/src/main.cpp

19 lines
400 B
C++
Raw Normal View History

2020-04-25 18:45:59 +00:00
#include "wren/vm.hpp"
#include "wren/def_configuration.hpp"
#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!\")");
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
return 0;
}