NouVeL/NVL/NouVeL.cpp

31 lines
1.1 KiB
C++
Raw Normal View History

2022-05-09 01:50:09 -04:00
#if 0
#include "Parser.h"
2021-12-12 22:20:28 -05:00
#include "Environment.h"
2021-12-12 03:41:54 -05:00
#include <string>
#include <iostream>
2021-12-17 01:05:38 -05:00
#include <sstream>
2021-05-14 11:49:21 -04:00
2021-12-12 03:41:54 -05:00
int main() {
2021-12-17 01:05:38 -05:00
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 });
2021-12-12 22:20:28 -05:00
2021-12-12 03:41:54 -05:00
const std::string PJ_DIR = "E:\\Archive\\Projects\\NouVeL\\NouVeL\\";
2021-12-17 01:05:38 -05:00
for (auto& s : NVL::Parse::ParseFile(PJ_DIR + "test.nvl")) {
NVL::Environment::EvalScene(s);
}
2021-05-11 00:50:56 -04:00
return 0;
}
2022-05-09 01:50:09 -04:00
#endif