1
0
Fork 0
mirror of https://gitlab.com/niansa/pilang3.git synced 2025-03-06 20:49:20 +01:00

Added simple true/false

This commit is contained in:
niansa 2021-03-10 10:24:14 +01:00
parent e4de76cb38
commit 484b47d725

View file

@ -85,7 +85,10 @@ namespace Pilang3 {
void *anybuf = nullptr; void *anybuf = nullptr;
Environment() { Environment() {
variableScope.push({}); variableScope.push({
{"true", std::make_shared<Variable>(Variable{Variable::id_integer, 1})},
{"false", std::make_shared<Variable>(Variable{Variable::id_integer, 0})}
});
globalScope = &variableScope.top(); globalScope = &variableScope.top();
} }