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:
parent
e4de76cb38
commit
484b47d725
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ namespace Pilang3 {
|
|||
void *anybuf = nullptr;
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue