From 484b47d7250a6fe2a225ede873c4efbb35d08d66 Mon Sep 17 00:00:00 2001 From: niansa Date: Wed, 10 Mar 2021 10:24:14 +0100 Subject: [PATCH] Added simple true/false --- include/pilang.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/pilang.hpp b/include/pilang.hpp index c8fe8e4..2706012 100644 --- a/include/pilang.hpp +++ b/include/pilang.hpp @@ -85,7 +85,10 @@ namespace Pilang3 { void *anybuf = nullptr; Environment() { - variableScope.push({}); + variableScope.push({ + {"true", std::make_shared(Variable{Variable::id_integer, 1})}, + {"false", std::make_shared(Variable{Variable::id_integer, 0})} + }); globalScope = &variableScope.top(); }