30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
#if 0
|
|
#include "Parser.h"
|
|
#include "Environment.h"
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <sstream>
|
|
|
|
int main() {
|
|
auto f = [](NVL::Environment::Variable x) { return NVL::Environment::Variable(NVL::Environment::Type::Nil); };
|
|
NVL::Environment::ENVIRONMENT.enter("Hello", { f, 1 });
|
|
NVL::Environment::ENVIRONMENT.enter("Command", { f, 1 });
|
|
NVL::Environment::ENVIRONMENT.enter("Do", { f, 2 });
|
|
NVL::Environment::ENVIRONMENT.enter("Set", { f, 2 });
|
|
NVL::Environment::ENVIRONMENT.enter("This", { f, 1 });
|
|
NVL::Environment::ENVIRONMENT.enter("ClearDialog", { f, 0 });
|
|
NVL::Environment::ENVIRONMENT.enter("Choice", { f, 2 });
|
|
NVL::Environment::ENVIRONMENT.enter("=?", { f, 2 });
|
|
NVL::Environment::ENVIRONMENT.enter("+", { f, 2 });
|
|
NVL::Environment::ENVIRONMENT.enter("switch", { f, 2 });
|
|
NVL::Environment::ENVIRONMENT.enter("SwitchSpeaker", { f, 1 });
|
|
NVL::Environment::ENVIRONMENT.enter("Say", { f, 1 });
|
|
|
|
const std::string PJ_DIR = "E:\\Archive\\Projects\\NouVeL\\NouVeL\\";
|
|
for (auto& s : NVL::Parse::ParseFile(PJ_DIR + "test.nvl")) {
|
|
NVL::Environment::EvalScene(s);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
#endif
|