Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Fundamentally, there may be no basis for anything.


devel / comp.lang.c / Re: simplifying c syntax & thoughts from inside the compiler

SubjectAuthor
* simplifying c syntax & thoughts from inside the compilerfir
+* Re: simplifying c syntax & thoughts from inside the compilerfir
|`* Re: simplifying c syntax & thoughts from inside the compilerfir
| `* Re: simplifying c syntax & thoughts from inside the compilerfir
|  `* Re: simplifying c syntax & thoughts from inside the compilerfir
|   `- Re: simplifying c syntax & thoughts from inside the compilerfir
`* Re: simplifying c syntax & thoughts from inside the compilerluser droog
 `- Re: simplifying c syntax & thoughts from inside the compilerfir

1
simplifying c syntax & thoughts from inside the compiler

<6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21636&group=comp.lang.c#21636

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:b742:0:b0:6a0:5e42:2fa8 with SMTP id h63-20020a37b742000000b006a05e422fa8mr10246339qkf.274.1652185222097;
Tue, 10 May 2022 05:20:22 -0700 (PDT)
X-Received: by 2002:a05:622a:148:b0:2f3:e454:760 with SMTP id
v8-20020a05622a014800b002f3e4540760mr2169571qtw.543.1652185221918; Tue, 10
May 2022 05:20:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 10 May 2022 05:20:21 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.128; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.128
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com>
Subject: simplifying c syntax & thoughts from inside the compiler
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 10 May 2022 12:20:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2759
 by: fir - Tue, 10 May 2022 12:20 UTC

in compiler i go simple thpugh im not saying this is final form of
language i just want to s\go for simple (most or almost most 'naked' from various decorators_ syntax and see how can it go

for example i now may compile such things

void draw
DrawSomeText2 0xffffff|0|160|"c1 %08x c2 %08x c3 %08x \x00"|c1|c2|c3
DrawSomeText2 0xffffff|0|170|"c4 %08x c5 %08x c6 %08x \x00"|c4|c5|c6
DrawSomeText2 0xffffff|0|180|"c7 %08x c8 %08x c9 %08x \x00"|c7|c8|c9
DrawSomeText2 0xffffff|0|190|"c10 %08x c11 %08x c12 %08x \x00"|c10|c11 c12
DrawSomeText2 0xffffff|10|220|"test aa %f \x00"|aa+=0.010101

;

void OnResize;

void main: RegisterRunFrame &RunFrame, RegisterMouseMove &ProcessMouseMove
RegisterKeyDown &ProcessKeyDown, RegisterOnResize &OnResize, SetSleepValue 30, SetScaleOnResize 1
SetupWindow3 " compiled by fir's furia proto c compiler \x00" 20 20 640 480 320 240 ;

the ; goes for return and | are optional
for if i temporarely use

last_key_pressed?=keyR: AddBackgrounColor 0x10 .

i mean dot is and end of if block (i think return and ending if should be different siggns possibly becouse tis is easily mistaken and makes well known compile errors when you got few }}}}}} at the end

hivever i kno if i use , as a log line spearators then possibly ; shpoul be made as an ifs block ends and . as a function end this way it would more resemble normal sentence - maybe i will change it for now i think i yet stay(becouse i got it this as i got and changing it now dont changes much) though in fact this is tempting, so maybe indeed, i wil change it

what else? a bit more on this later

Re: simplifying c syntax & thoughts from inside the compiler

<4a458e15-6846-4972-929c-7f86709760cfn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21638&group=comp.lang.c#21638

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:29ed:b0:45a:aa8f:49 with SMTP id jv13-20020a05621429ed00b0045aaa8f0049mr18106193qvb.41.1652189121158;
Tue, 10 May 2022 06:25:21 -0700 (PDT)
X-Received: by 2002:a05:6214:246f:b0:45a:c441:4744 with SMTP id
im15-20020a056214246f00b0045ac4414744mr17924419qvb.13.1652189120893; Tue, 10
May 2022 06:25:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 10 May 2022 06:25:20 -0700 (PDT)
In-Reply-To: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.109; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.109
References: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4a458e15-6846-4972-929c-7f86709760cfn@googlegroups.com>
Subject: Re: simplifying c syntax & thoughts from inside the compiler
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 10 May 2022 13:25:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3656
 by: fir - Tue, 10 May 2022 13:25 UTC

wtorek, 10 maja 2022 o 14:20:31 UTC+2 fir napisał(a):
> in compiler i go simple thpugh im not saying this is final form of
> language i just want to s\go for simple (most or almost most 'naked' from various decorators_ syntax and see how can it go
>
> for example i now may compile such things
>
>
> void draw
> DrawSomeText2 0xffffff|0|160|"c1 %08x c2 %08x c3 %08x \x00"|c1|c2|c3
> DrawSomeText2 0xffffff|0|170|"c4 %08x c5 %08x c6 %08x \x00"|c4|c5|c6
> DrawSomeText2 0xffffff|0|180|"c7 %08x c8 %08x c9 %08x \x00"|c7|c8|c9
> DrawSomeText2 0xffffff|0|190|"c10 %08x c11 %08x c12 %08x \x00"|c10|c11 c12
> DrawSomeText2 0xffffff|10|220|"test aa %f \x00"|aa+=0.010101
>
> ;
>
> void OnResize;
>
> void main: RegisterRunFrame &RunFrame, RegisterMouseMove &ProcessMouseMove
> RegisterKeyDown &ProcessKeyDown, RegisterOnResize &OnResize, SetSleepValue 30, SetScaleOnResize 1
> SetupWindow3 " compiled by fir's furia proto c compiler \x00" 20 20 640 480 320 240 ;
>
> the ; goes for return and | are optional
> for if i temporarely use
>
> last_key_pressed?=keyR: AddBackgrounColor 0x10 .
>
> i mean dot is and end of if block (i think return and ending if should be different siggns possibly becouse tis is easily mistaken and makes well known compile errors when you got few }}}}}} at the end
>
> hivever i kno if i use , as a log line spearators then possibly ; shpoul be made as an ifs block ends and . as a function end this way it would more resemble normal sentence - maybe i will change it for now i think i yet stay(becouse i got it this as i got and changing it now dont changes much) though in fact this is tempting, so maybe indeed, i wil change it
>
> what else? a bit more on this later

i changed so now . is return and ; is loop and if end block
this sole dot is lookin weird though its standable imo

so this is for example legal

void OnResize:a?=2:doo;.
i could also use ; as for ending block
some could maybe say this void OnResize:a?=2:doo;; looks better
though i probbaly add yet now
void OnResize{a?=2{doo}}
as an optional for void OnResize:a?=2:doo;.
in this case } will check the nesting level and emit ret if not loop/if opened

i used a{3} as an initializer for int but the advantages of readiblity probably promote it here
for block use

Re: simplifying c syntax & thoughts from inside the compiler

<065dbb13-f914-4368-91ed-1a0365e2aaa3n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21639&group=comp.lang.c#21639

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a0c:cc08:0:b0:45a:8f81:d8a8 with SMTP id r8-20020a0ccc08000000b0045a8f81d8a8mr18252816qvk.88.1652191487859;
Tue, 10 May 2022 07:04:47 -0700 (PDT)
X-Received: by 2002:a05:622a:349:b0:2f3:cba9:242c with SMTP id
r9-20020a05622a034900b002f3cba9242cmr17873132qtw.50.1652191487549; Tue, 10
May 2022 07:04:47 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!news.swapon.de!news.uzoreto.com!peer03.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 10 May 2022 07:04:47 -0700 (PDT)
In-Reply-To: <4a458e15-6846-4972-929c-7f86709760cfn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.109; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.109
References: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com> <4a458e15-6846-4972-929c-7f86709760cfn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <065dbb13-f914-4368-91ed-1a0365e2aaa3n@googlegroups.com>
Subject: Re: simplifying c syntax & thoughts from inside the compiler
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 10 May 2022 14:04:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4464
 by: fir - Tue, 10 May 2022 14:04 UTC

wtorek, 10 maja 2022 o 15:25:27 UTC+2 fir napisał(a):
> wtorek, 10 maja 2022 o 14:20:31 UTC+2 fir napisał(a):
> > in compiler i go simple thpugh im not saying this is final form of
> > language i just want to s\go for simple (most or almost most 'naked' from various decorators_ syntax and see how can it go
> >
> > for example i now may compile such things
> >
> >
> > void draw
> > DrawSomeText2 0xffffff|0|160|"c1 %08x c2 %08x c3 %08x \x00"|c1|c2|c3
> > DrawSomeText2 0xffffff|0|170|"c4 %08x c5 %08x c6 %08x \x00"|c4|c5|c6
> > DrawSomeText2 0xffffff|0|180|"c7 %08x c8 %08x c9 %08x \x00"|c7|c8|c9
> > DrawSomeText2 0xffffff|0|190|"c10 %08x c11 %08x c12 %08x \x00"|c10|c11 c12
> > DrawSomeText2 0xffffff|10|220|"test aa %f \x00"|aa+=0.010101
> >
> > ;
> >
> > void OnResize;
> >
> > void main: RegisterRunFrame &RunFrame, RegisterMouseMove &ProcessMouseMove
> > RegisterKeyDown &ProcessKeyDown, RegisterOnResize &OnResize, SetSleepValue 30, SetScaleOnResize 1
> > SetupWindow3 " compiled by fir's furia proto c compiler \x00" 20 20 640 480 320 240 ;
> >
> > the ; goes for return and | are optional
> > for if i temporarely use
> >
> > last_key_pressed?=keyR: AddBackgrounColor 0x10 .
> >
> > i mean dot is and end of if block (i think return and ending if should be different siggns possibly becouse tis is easily mistaken and makes well known compile errors when you got few }}}}}} at the end
> >
> > hivever i kno if i use , as a log line spearators then possibly ; shpoul be made as an ifs block ends and . as a function end this way it would more resemble normal sentence - maybe i will change it for now i think i yet stay(becouse i got it this as i got and changing it now dont changes much) though in fact this is tempting, so maybe indeed, i wil change it
> >
> > what else? a bit more on this later
> i changed so now . is return and ; is loop and if end block
> this sole dot is lookin weird though its standable imo
>
> so this is for example legal
>
> void OnResize:a?=2:doo;.
> i could also use ; as for ending block
> some could maybe say this void OnResize:a?=2:doo;; looks better
> though i probbaly add yet now
> void OnResize{a?=2{doo}}
> as an optional for void OnResize:a?=2:doo;.
> in this case } will check the nesting level and emit ret if not loop/if opened
>
> i used a{3} as an initializer for int but the advantages of readiblity probably promote it here
> for block use

ok i added it accepts all 3 syntaxes now

void OnResize1:a?=2:doo;.
void OnResize2:a?=2:doo;;
void OnResize3{a?=2{doo}}

void OnResize.
void OnResize;
void OnResize{}

i think teh first ist most basic/fundamental but the third is liek to be more likely to see on,
also funni it seems those block parenthesis gat a feel of c, so liek they more responsible for it (as for surface things as for me c is more semantically inside, but hios surface also counts)

Re: simplifying c syntax & thoughts from inside the compiler

<cd7e1ac6-f617-4aa6-831b-777bd218835fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21640&group=comp.lang.c#21640

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:5cac:0:b0:45a:8e5c:677 with SMTP id q12-20020ad45cac000000b0045a8e5c0677mr18428045qvh.125.1652192737507;
Tue, 10 May 2022 07:25:37 -0700 (PDT)
X-Received: by 2002:a37:9d82:0:b0:69f:9cc9:135d with SMTP id
g124-20020a379d82000000b0069f9cc9135dmr15927169qke.371.1652192737234; Tue, 10
May 2022 07:25:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 10 May 2022 07:25:37 -0700 (PDT)
In-Reply-To: <065dbb13-f914-4368-91ed-1a0365e2aaa3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.39; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.39
References: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com>
<4a458e15-6846-4972-929c-7f86709760cfn@googlegroups.com> <065dbb13-f914-4368-91ed-1a0365e2aaa3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cd7e1ac6-f617-4aa6-831b-777bd218835fn@googlegroups.com>
Subject: Re: simplifying c syntax & thoughts from inside the compiler
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 10 May 2022 14:25:37 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1673
 by: fir - Tue, 10 May 2022 14:25 UTC

wtorek, 10 maja 2022 o 16:04:57 UTC+2 fir napisał(a):
>
> void OnResize1:a?=2:doo;.
> void OnResize2:a?=2:doo;;
> void OnResize3{a?=2{doo}}

compare it to standard c
void OnResize3(){if(a==2){doo;}}

its quite longer - 7 characters its quite a lot

where in my versiondoo may be both a variable or function call - if defined

Re: simplifying c syntax & thoughts from inside the compiler

<14bf3302-f19b-44b7-ac52-9e49dec2a7e8n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21641&group=comp.lang.c#21641

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:2f04:0:b0:663:397d:7051 with SMTP id v4-20020a372f04000000b00663397d7051mr15466795qkh.333.1652194357845;
Tue, 10 May 2022 07:52:37 -0700 (PDT)
X-Received: by 2002:a05:6214:13e5:b0:458:812:217e with SMTP id
ch5-20020a05621413e500b004580812217emr18056565qvb.60.1652194357690; Tue, 10
May 2022 07:52:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 10 May 2022 07:52:37 -0700 (PDT)
In-Reply-To: <cd7e1ac6-f617-4aa6-831b-777bd218835fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.39; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.39
References: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com>
<4a458e15-6846-4972-929c-7f86709760cfn@googlegroups.com> <065dbb13-f914-4368-91ed-1a0365e2aaa3n@googlegroups.com>
<cd7e1ac6-f617-4aa6-831b-777bd218835fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <14bf3302-f19b-44b7-ac52-9e49dec2a7e8n@googlegroups.com>
Subject: Re: simplifying c syntax & thoughts from inside the compiler
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 10 May 2022 14:52:37 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2412
 by: fir - Tue, 10 May 2022 14:52 UTC

wtorek, 10 maja 2022 o 16:25:44 UTC+2 fir napisał(a):
> wtorek, 10 maja 2022 o 16:04:57 UTC+2 fir napisał(a):
> >
> > void OnResize1:a?=2:doo;.
> > void OnResize2:a?=2:doo;;
> > void OnResize3{a?=2{doo}}
> compare it to standard c
> void OnResize3(){if(a==2){doo;}}
>
> its quite longer - 7 characters its quite a lot
>
> where in my versiondoo may be both a variable or function call - if defined

so for example this syntax is compiled

void ProcessKeyDown int last_key_pressed
{
.PAGE_UP=33
.keyR=0x52
.keyG=0x47
.keyB=0x42
last_key_pressed?=PAGE_UP{ToggleFullscreen}
last_key_pressed?=0x41{foo frame_size_x frame_size_y/2 3 4}
last_key_pressed?=0x53{foo 2|3|4|5,foo 6 7 8 9}
last_key_pressed?=0x43{MessageBoxA 0 "captionC\x00" "title\x00" 0}
last_key_pressed?=keyR{AddBackgrounColor 0x10} last_key_pressed?=keyG{AddBackgrounColor 0x1000}
last_key_pressed?=keyB{AddBackgrounColor 0x100000}
}

Re: simplifying c syntax & thoughts from inside the compiler

<275d8985-931a-4bce-84b6-7baae3960da1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21657&group=comp.lang.c#21657

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:2b09:b0:45b:59b:5df6 with SMTP id jx9-20020a0562142b0900b0045b059b5df6mr1557228qvb.22.1652384253294;
Thu, 12 May 2022 12:37:33 -0700 (PDT)
X-Received: by 2002:a05:620a:99a:b0:69f:8204:d8de with SMTP id
x26-20020a05620a099a00b0069f8204d8demr1241827qkx.58.1652384253112; Thu, 12
May 2022 12:37:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Thu, 12 May 2022 12:37:32 -0700 (PDT)
In-Reply-To: <14bf3302-f19b-44b7-ac52-9e49dec2a7e8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.72; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.72
References: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com>
<4a458e15-6846-4972-929c-7f86709760cfn@googlegroups.com> <065dbb13-f914-4368-91ed-1a0365e2aaa3n@googlegroups.com>
<cd7e1ac6-f617-4aa6-831b-777bd218835fn@googlegroups.com> <14bf3302-f19b-44b7-ac52-9e49dec2a7e8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <275d8985-931a-4bce-84b6-7baae3960da1n@googlegroups.com>
Subject: Re: simplifying c syntax & thoughts from inside the compiler
From: profesor...@gmail.com (fir)
Injection-Date: Thu, 12 May 2022 19:37:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Thu, 12 May 2022 19:37 UTC

wtorek, 10 maja 2022 o 16:52:45 UTC+2 fir napisał(a):
> wtorek, 10 maja 2022 o 16:25:44 UTC+2 fir napisał(a):
> > wtorek, 10 maja 2022 o 16:04:57 UTC+2 fir napisał(a):
> > >
> > > void OnResize1:a?=2:doo;.
> > > void OnResize2:a?=2:doo;;
> > > void OnResize3{a?=2{doo}}
> > compare it to standard c
> > void OnResize3(){if(a==2){doo;}}
> >
> > its quite longer - 7 characters its quite a lot
> >
> > where in my versiondoo may be both a variable or function call - if defined
> so for example this syntax is compiled
>
>
> void ProcessKeyDown int last_key_pressed
> {
> .PAGE_UP=33
> .keyR=0x52
> .keyG=0x47
> .keyB=0x42
> last_key_pressed?=PAGE_UP{ToggleFullscreen}
> last_key_pressed?=0x41{foo frame_size_x frame_size_y/2 3 4}
> last_key_pressed?=0x53{foo 2|3|4|5,foo 6 7 8 9}
> last_key_pressed?=0x43{MessageBoxA 0 "captionC\x00" "title\x00" 0}
> last_key_pressed?=keyR{AddBackgrounColor 0x10} last_key_pressed?=keyG{AddBackgrounColor 0x1000}
> last_key_pressed?=keyB{AddBackgrounColor 0x100000}
> }

i added

void goo int z1 int z2 int z3 -> int z4 int z5 int z6
z4=z1+z2
z5=z2+z3
z6=z3+z1;

void doo {
a b c = goo 2 3 4,
printf " a %d b %d c %d \x00" a b c }

this is function retuirning many values (bit chaos mode but stoll) (later i will do that those ints can be skippd i guess
void goo z1 z2 z3 -> z4 z5 z6
z4=z1+z2
z5=z2+z3
z6=z3+z1;
this si becouse autodefining not known symbols as new ints seem to work ok as for the moment at least

Re: simplifying c syntax & thoughts from inside the compiler

<5f90b26d-1bb7-4928-be28-5cf710ad8037n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21701&group=comp.lang.c#21701

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a0c:f482:0:b0:45a:98a0:ddaf with SMTP id i2-20020a0cf482000000b0045a98a0ddafmr13098709qvm.130.1652669664173;
Sun, 15 May 2022 19:54:24 -0700 (PDT)
X-Received: by 2002:ac8:7d91:0:b0:2f3:b85b:326d with SMTP id
c17-20020ac87d91000000b002f3b85b326dmr13690931qtd.194.1652669664006; Sun, 15
May 2022 19:54:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sun, 15 May 2022 19:54:23 -0700 (PDT)
In-Reply-To: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.207.219.108; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz
NNTP-Posting-Host: 24.207.219.108
References: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5f90b26d-1bb7-4928-be28-5cf710ad8037n@googlegroups.com>
Subject: Re: simplifying c syntax & thoughts from inside the compiler
From: luser.dr...@gmail.com (luser droog)
Injection-Date: Mon, 16 May 2022 02:54:24 +0000
Content-Type: text/plain; charset="UTF-8"
 by: luser droog - Mon, 16 May 2022 02:54 UTC

On Tuesday, May 10, 2022 at 7:20:31 AM UTC-5, fir wrote:
> in compiler i go simple thpugh im not saying this is final form of
> language i just want to s\go for simple (most or almost most 'naked' from various decorators_ syntax and see how can it go
>
> for example i now may compile such things
>
>
> void draw
> DrawSomeText2 0xffffff|0|160|"c1 %08x c2 %08x c3 %08x \x00"|c1|c2|c3
> DrawSomeText2 0xffffff|0|170|"c4 %08x c5 %08x c6 %08x \x00"|c4|c5|c6
> DrawSomeText2 0xffffff|0|180|"c7 %08x c8 %08x c9 %08x \x00"|c7|c8|c9
> DrawSomeText2 0xffffff|0|190|"c10 %08x c11 %08x c12 %08x \x00"|c10|c11 c12
> DrawSomeText2 0xffffff|10|220|"test aa %f \x00"|aa+=0.010101
>
> ;

This has some similarities to the Logo language, an unparenthesized Lisp.
If all your functions (and/or operators) have a fixed arity, then you can
parse them straight up without needing any parens. This is actually the
original way Polish notation was done by the Polish guy himself.

Re: simplifying c syntax & thoughts from inside the compiler

<ae5e60e2-06a1-42dc-9989-5b885fdb7c72n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21702&group=comp.lang.c#21702

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5fd4:0:b0:2f3:f0d7:757a with SMTP id k20-20020ac85fd4000000b002f3f0d7757amr13928805qta.557.1652686333719;
Mon, 16 May 2022 00:32:13 -0700 (PDT)
X-Received: by 2002:a05:6214:194f:b0:461:b6e5:79b6 with SMTP id
q15-20020a056214194f00b00461b6e579b6mr8184958qvk.60.1652686333582; Mon, 16
May 2022 00:32:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 16 May 2022 00:32:13 -0700 (PDT)
In-Reply-To: <5f90b26d-1bb7-4928-be28-5cf710ad8037n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.134; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.134
References: <6235a29f-5921-4094-babc-858cd27558ebn@googlegroups.com> <5f90b26d-1bb7-4928-be28-5cf710ad8037n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ae5e60e2-06a1-42dc-9989-5b885fdb7c72n@googlegroups.com>
Subject: Re: simplifying c syntax & thoughts from inside the compiler
From: profesor...@gmail.com (fir)
Injection-Date: Mon, 16 May 2022 07:32:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Mon, 16 May 2022 07:32 UTC

poniedziałek, 16 maja 2022 o 04:54:31 UTC+2 luser droog napisał(a):
> On Tuesday, May 10, 2022 at 7:20:31 AM UTC-5, fir wrote:
> > in compiler i go simple thpugh im not saying this is final form of
> > language i just want to s\go for simple (most or almost most 'naked' from various decorators_ syntax and see how can it go
> >
> > for example i now may compile such things
> >
> >
> > void draw
> > DrawSomeText2 0xffffff|0|160|"c1 %08x c2 %08x c3 %08x \x00"|c1|c2|c3
> > DrawSomeText2 0xffffff|0|170|"c4 %08x c5 %08x c6 %08x \x00"|c4|c5|c6
> > DrawSomeText2 0xffffff|0|180|"c7 %08x c8 %08x c9 %08x \x00"|c7|c8|c9
> > DrawSomeText2 0xffffff|0|190|"c10 %08x c11 %08x c12 %08x \x00"|c10|c11 c12
> > DrawSomeText2 0xffffff|10|220|"test aa %f \x00"|aa+=0.010101
> >
> > ;
> This has some similarities to the Logo language, an unparenthesized Lisp.
> If all your functions (and/or operators) have a fixed arity, then you can
> parse them straight up without needing any parens. This is actually the
> original way Polish notation was done by the Polish guy himself.

this is not even a trick , i just use here newline as a separator, so the rule is just if first atom
is a function call (and if this is a functiob call i know becouse first scaning pass collected
definition names and import names) then this is a function call name and the all next atoms
are arguments

hovever this makes slight problem, too - i cant break arguments on newlines
foo arg1
arg2
arg3

(i would need to use some continue sign
foo arg1 \
arg2 \
arg3
which is not so good, and if not use continue sign i would need to denotoe end of arguments ,
but for now i just put them in one line
i also use some help rules when breaking arguments, liek i connoit break if there is no space
for example

foo 1-2 //wont break
foo 1 -2 //will break

(not all spaces break but if there is a break it is on space or |, without space or | there is no break

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor