#if 0 #include "Parser.h" #include "Environment.h" #include #include #include 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