mirror of
https://gitlab.com/niansa/pilang3.git
synced 2025-03-06 20:49:20 +01:00
23 lines
510 B
C++
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;
|
|
//}
|
|
}
|
|
}
|