bydgoszcz

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

commit f7383c1e7965eeeaf93ddaa6e5d3004cd5e39136
parent ac6fbc7ea7d1f166c7a64a375125c170dbddea48
Author: kocotian <kocotian@kocotian.pl>
Date:   Thu, 27 May 2021 22:57:31 +0200

Coming soon, colon after daj needed

Diffstat:
MREADME | 8++++++++
Mcompile.c | 1+
Msamples/witajswiat.by | 2+-
3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/README b/README @@ -8,3 +8,11 @@ building: samples: $ ls samples + +--------------------------------------- + +Coming soon: +- arrays +- unions +- enums +- better types diff --git a/compile.c b/compile.c @@ -407,6 +407,7 @@ g_zadzwon(File *f, ExpressionString *str) t = enextToken(f, TokenNULL); if (t->type == TokenIdentifier) { if (!Strccmp(t->c, "daj")) { + t = enextToken(f, TokenColon); while ((t = enextToken(f, TokenNULL))) { g_expression(f, &expr); strncat(str->data, expr.data, MAX_EXPRESSIONSIZE); diff --git a/samples/witajswiat.by b/samples/witajswiat.by @@ -1,5 +1,5 @@ wykorzystaj "stdio" miasto bydgoszcz: - zadzwon puts daj "Hello, world!"; + zadzwon puts daj: "Hello, world!"; koniec