bydgoszcz

simple, fast and efficient programming language
git clone git://git.kocotian.pl/bydgoszczscript.git
Log | Files | Refs | README | LICENSE

commit 58e085c3230c3de9d34c09904bdc210f60c8ab37
parent 57a9b6f9b32bdf27d4b221b4ef9e4f51b5fa1c92
Author: kocotian <kocotian@kocotian.pl>
Date:   Fri, 28 May 2021 12:46:37 +0200

wielkosc (size of)

Diffstat:
Mcompile.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/compile.c b/compile.c @@ -356,6 +356,12 @@ g_expression(File *f, ExpressionString *str) g_expression(f, &expr); str->len = (size_t)snprintf(str->data, MAX_EXPRESSIONSIZE, "!(%.*s)", Strevalf(expr)); + } else if (!Strccmp(t->c, "wielkosc")) { + ExpressionString expr; + t = enextToken(f, TokenNULL); + g_expression(f, &expr); + str->len = (size_t)snprintf(str->data, MAX_EXPRESSIONSIZE, "sizeof (%.*s)", + Strevalf(expr)); } else if (!Strccmp(t->c, "naprawde") || !Strccmp(t->c, "czy")) { ExpressionString lexpr, rexpr; int not; int equal; int greater; int lower;