1
0
Fork 0
mirror of https://gitlab.com/niansa/pilang3.git synced 2025-03-06 20:49:20 +01:00
pilang3/main.cpp
2021-02-01 15:24:40 +01:00

23 lines
510 B
C++

#include <iostream>
#include <memory>
#include "pilang.hpp"
int main() {
using namespace Pilang3;
// Initialise
std::string line;
auto env = std::make_shared<Environment>();
// CLI loop
while (true) {
std::getline(std::cin, line);
//try {
Evaluation evaluation(env, line);
evaluation.execute(env);
//} catch (exceptions::langException& e) {
// std::cout << "E: Language exception: " << &e << std::endl;
//}
}
}