Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Human beings were created by water to transport it uphill.


devel / comp.lang.c / Re: furia (fir's proto-c compiler)

SubjectAuthor
* furia (fir's proto-c compiler)fir
+* Re: furia (fir's proto-c compiler)fir
|`* Re: furia (fir's proto-c compiler)fir
| +- Re: furia (fir's proto-c compiler)fir
| `* Re: furia (fir's proto-c compiler)Kaz Kylheku
|  `* Re: furia (fir's proto-c compiler)fir
|   `* Re: furia (fir's proto-c compiler)fir
|    +* Re: furia (fir's proto-c compiler)fir
|    |`- Re: furia (fir's proto-c compiler)fir
|    `- Re: furia (fir's proto-c compiler)fir
`* Re: furia (fir's proto-c compiler)bart c
 +* Re: furia (fir's proto-c compiler)Joe Pfeiffer
 |`- Re: furia (fir's proto-c compiler)fir
 +* Re: furia (fir's proto-c compiler)fir
 |`- Re: furia (fir's proto-c compiler)fir
 `* Re: furia (fir's proto-c compiler)fir
  +* Re: furia (fir's proto-c compiler)fir
  |`* Re: furia (fir's proto-c compiler)fir
  | `* Re: furia (fir's proto-c compiler)fir
  |  +- Re: furia (fir's proto-c compiler)fir
  |  `* Re: furia (fir's proto-c compiler)fir
  |   `- Re: furia (fir's proto-c compiler)fir
  `* Re: furia (fir's proto-c compiler)bart c
   +- Re: furia (fir's proto-c compiler)fir
   `* Re: furia (fir's proto-c compiler)fir
    `* Re: furia (fir's proto-c compiler)fir
     `* Re: furia (fir's proto-c compiler)fir
      `* Re: furia (fir's proto-c compiler)fir
       `* Re: furia (fir's proto-c compiler)fir
        `* Re: furia (fir's proto-c compiler)fir
         `* Re: furia (fir's proto-c compiler)fir
          `* Re: furia (fir's proto-c compiler)fir
           `- Re: furia (fir's proto-c compiler)fir

Pages:12
Re: furia (fir's proto-c compiler)

<28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:4014:b0:69e:c20c:5064 with SMTP id h20-20020a05620a401400b0069ec20c5064mr2221149qko.111.1650625374562;
Fri, 22 Apr 2022 04:02:54 -0700 (PDT)
X-Received: by 2002:a0c:80ec:0:b0:444:43ec:a918 with SMTP id
99-20020a0c80ec000000b0044443eca918mr2845732qvb.20.1650625374303; Fri, 22 Apr
2022 04:02:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 22 Apr 2022 04:02:54 -0700 (PDT)
In-Reply-To: <536a454e-defd-455d-8658-473b4bfbbe9en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.116; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.116
References: <e4215069-758d-4a70-8ba5-7383bba01aa0n@googlegroups.com>
<42c02917-5ac6-417f-a3a3-d10627f44db8n@googlegroups.com> <a9d0ce49-5407-4b02-8c98-808f25e2db4dn@googlegroups.com>
<cc30eb49-19d7-47e7-aafe-1828812b3b1bn@googlegroups.com> <536a454e-defd-455d-8658-473b4bfbbe9en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com>
Subject: Re: furia (fir's proto-c compiler)
From: profesor...@gmail.com (fir)
Injection-Date: Fri, 22 Apr 2022 11:02:54 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 97
 by: fir - Fri, 22 Apr 2022 11:02 UTC

piątek, 22 kwietnia 2022 o 04:12:41 UTC+2 fir napisał(a):
> czwartek, 21 kwietnia 2022 o 19:25:03 UTC+2 bart c napisał(a):
> > This worked. Already it did say the file would be deleted after downloading (you may need to re-upload?).
> >
> the first site seemd to be designed to share something only for one download... this filebin hosts
> for 6 days
>
> i found 2 years ago i also made i may call functions in what i call naked form (what i was writing bac then i found viable alternative
>
> foo(a,b,c);
> foo a b c ; //naked form
>
> https://filebin.net/33fxpjsgk846ymb2
>
> also gave alternative for initialisation
>
> int a = 10;
> int a{10}
>
>
> so now it can compile
>
> import "green_fire.dll" cdecl DrawSomeText2
> import "green_fire.dll" cdecl ToggleFullscreen
> import "green_fire.dll" cdecl ClearFrameData
> import "green_fire.dll" cdecl DrawCircle
> import "green_fire.dll" cdecl RegisterRunFrame
> import "green_fire.dll" cdecl RegisterMouseMove
> import "green_fire.dll" cdecl RegisterKeyDown
> import "green_fire.dll" cdecl RegisterOnResize
> import "green_fire.dll" cdecl SetSleepValue
> import "green_fire.dll" cdecl SetScaleOnResize
> import "green_fire.dll" cdecl SetupWindow3
> void ProcessMouseMove(int mouse_x, int mouse_y)
> return
>
> void ProcessKeyDown(int last_key_pressed)
> int PAGE_UP{33}
> if last_key_pressed = PAGE_UP
> ToggleFullscreen(); .
> return
>
> void RollBackgroundColor()
> int background_color {0x00000001}
> background_color += 1;
> ClearFrameData background_color
> return
>
> void RunFrame()
> RollBackgroundColor()
> int r{10}
> for r from 10 to 250 step 3
> DrawCircle mouse_x mouse_y r 0xff00
> .
> DrawSomeText2 0xffffff 10 30 "this app is compiled by furia \x00"
> DrawSomeText2 0xffffff 30 130 "mouse %d %d\x00" mouse_x mouse_y
> int b {2} ; int c {10}
> b = 2;c = 10; b = c/(b-1)+c*(c-2);
> DrawSomeText2 0xffffff 20 140 " %d \x00" b
> b = 2; c = 10; lisplike b = c+b*7/4+3-12 ;
> DrawSomeText2 0xffffff 20 150 " %d \x00" b
> return
>
> void OnResize()
> return
>
> void main()
> RegisterRunFrame &RunFrame
> RegisterMouseMove &ProcessMouseMove
> RegisterKeyDown &ProcessKeyDown
> RegisterOnResize &OnResize
> SetSleepValue 30
> SetScaleOnResize 1
> SetupWindow3 " compiled by fir's furia proto c compiler \x00" 10 10 600 400 300 200
> return

i wouldnt call it especially readable but at least its proof as it work if it compiles and runs
as to readability i think if i should drop semicolons ":" and use "'," (commas) instead (thought it the first is semocolon the second should be named colon)

this makes me to coment out the code that compiles clothed/dressed form foo(a,b,c) untill i will revrite it to not break on logical lines on commas inside parenthesis (and i dont want to smend my time on such things) but bessides comma form seem interesting to me

DrawSomeText2 0xffffff 10 30 "this app is compiled by furia \x00" , DrawSomeText2 0xffffff 30 130 "mouse %d %d\x00" mouse_x mouse_y ,
int b {2}, ; int c {10} , b = 2, c = 10, b = c/(b-1)+c*(c-2), DrawSomeText2 0xffffff 20 140 " %d \x00" b , b = 2; c = 10, lisplike b = c+b*7/4+3-12 , DrawSomeText2 0xffffff 20 150 " %d \x00" b, return

worth change i guess.. i will coment out the dressed form compilation then

Re: furia (fir's proto-c compiler)

<42857ba8-94bb-4490-9bcc-e45dc763ac62n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:3d3:b0:2e2:1294:5817 with SMTP id k19-20020a05622a03d300b002e212945817mr3072562qtx.638.1650632562989;
Fri, 22 Apr 2022 06:02:42 -0700 (PDT)
X-Received: by 2002:ac8:7d50:0:b0:2f1:f199:3f57 with SMTP id
h16-20020ac87d50000000b002f1f1993f57mr3013086qtb.525.1650632562744; Fri, 22
Apr 2022 06:02:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 22 Apr 2022 06:02:42 -0700 (PDT)
In-Reply-To: <28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.142; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.142
References: <e4215069-758d-4a70-8ba5-7383bba01aa0n@googlegroups.com>
<42c02917-5ac6-417f-a3a3-d10627f44db8n@googlegroups.com> <a9d0ce49-5407-4b02-8c98-808f25e2db4dn@googlegroups.com>
<cc30eb49-19d7-47e7-aafe-1828812b3b1bn@googlegroups.com> <536a454e-defd-455d-8658-473b4bfbbe9en@googlegroups.com>
<28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <42857ba8-94bb-4490-9bcc-e45dc763ac62n@googlegroups.com>
Subject: Re: furia (fir's proto-c compiler)
From: profesor...@gmail.com (fir)
Injection-Date: Fri, 22 Apr 2022 13:02:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 109
 by: fir - Fri, 22 Apr 2022 13:02 UTC

piątek, 22 kwietnia 2022 o 13:03:04 UTC+2 fir napisał(a):
> piątek, 22 kwietnia 2022 o 04:12:41 UTC+2 fir napisał(a):
> > czwartek, 21 kwietnia 2022 o 19:25:03 UTC+2 bart c napisał(a):
> > > This worked. Already it did say the file would be deleted after downloading (you may need to re-upload?).
> > >
> > the first site seemd to be designed to share something only for one download... this filebin hosts
> > for 6 days
> >
> > i found 2 years ago i also made i may call functions in what i call naked form (what i was writing bac then i found viable alternative
> >
> > foo(a,b,c);
> > foo a b c ; //naked form
> >
> > https://filebin.net/33fxpjsgk846ymb2
> >
> > also gave alternative for initialisation
> >
> > int a = 10;
> > int a{10}
> >
> >
> > so now it can compile
> >
> > import "green_fire.dll" cdecl DrawSomeText2
> > import "green_fire.dll" cdecl ToggleFullscreen
> > import "green_fire.dll" cdecl ClearFrameData
> > import "green_fire.dll" cdecl DrawCircle
> > import "green_fire.dll" cdecl RegisterRunFrame
> > import "green_fire.dll" cdecl RegisterMouseMove
> > import "green_fire.dll" cdecl RegisterKeyDown
> > import "green_fire.dll" cdecl RegisterOnResize
> > import "green_fire.dll" cdecl SetSleepValue
> > import "green_fire.dll" cdecl SetScaleOnResize
> > import "green_fire.dll" cdecl SetupWindow3
> > void ProcessMouseMove(int mouse_x, int mouse_y)
> > return
> >
> > void ProcessKeyDown(int last_key_pressed)
> > int PAGE_UP{33}
> > if last_key_pressed = PAGE_UP
> > ToggleFullscreen(); .
> > return
> >
> > void RollBackgroundColor()
> > int background_color {0x00000001}
> > background_color += 1;
> > ClearFrameData background_color
> > return
> >
> > void RunFrame()
> > RollBackgroundColor()
> > int r{10}
> > for r from 10 to 250 step 3
> > DrawCircle mouse_x mouse_y r 0xff00
> > .
> > DrawSomeText2 0xffffff 10 30 "this app is compiled by furia \x00"
> > DrawSomeText2 0xffffff 30 130 "mouse %d %d\x00" mouse_x mouse_y
> > int b {2} ; int c {10}
> > b = 2;c = 10; b = c/(b-1)+c*(c-2);
> > DrawSomeText2 0xffffff 20 140 " %d \x00" b
> > b = 2; c = 10; lisplike b = c+b*7/4+3-12 ;
> > DrawSomeText2 0xffffff 20 150 " %d \x00" b
> > return
> >
> > void OnResize()
> > return
> >
> > void main()
> > RegisterRunFrame &RunFrame
> > RegisterMouseMove &ProcessMouseMove
> > RegisterKeyDown &ProcessKeyDown
> > RegisterOnResize &OnResize
> > SetSleepValue 30
> > SetScaleOnResize 1
> > SetupWindow3 " compiled by fir's furia proto c compiler \x00" 10 10 600 400 300 200
> > return
> i wouldnt call it especially readable but at least its proof as it work if it compiles and runs
> as to readability i think if i should drop semicolons ":" and use "'," (commas) instead (thought it the first is semocolon the second should be named colon)
>
> this makes me to coment out the code that compiles clothed/dressed form foo(a,b,c) untill i will revrite it to not break on logical lines on commas inside parenthesis (and i dont want to smend my time on such things) but bessides comma form seem interesting to me
>
> DrawSomeText2 0xffffff 10 30 "this app is compiled by furia \x00" , DrawSomeText2 0xffffff 30 130 "mouse %d %d\x00" mouse_x mouse_y ,
> int b {2}, ; int c {10} , b = 2, c = 10, b = c/(b-1)+c*(c-2), DrawSomeText2 0xffffff 20 140 " %d \x00" b , b = 2; c = 10, lisplike b = c+b*7/4+3-12 , DrawSomeText2 0xffffff 20 150 " %d \x00" b, return
>
> worth change i guess.. i will coment out the dressed form compilation then

sorry for posting a lot of post (in the mode of adding remarks as post below my own posts as i like to do)
i find it somewhat interesting besides after writing few days i will probably wanish for another half a year or so

as to this above replacing ; by , dont changed like to much though imo , looks slightly better ..so i couldnt be sure worthing to do this but another argument is that typing , is easier than : so i think it may stay

Re: furia (fir's proto-c compiler)

<2aab77dc-f2ce-4622-b397-d7a0ebca358bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a0c:ed46:0:b0:444:3e69:767b with SMTP id v6-20020a0ced46000000b004443e69767bmr5211400qvq.71.1650661987213;
Fri, 22 Apr 2022 14:13:07 -0700 (PDT)
X-Received: by 2002:a37:b605:0:b0:69e:6d6f:aea7 with SMTP id
g5-20020a37b605000000b0069e6d6faea7mr3839960qkf.655.1650661986993; Fri, 22
Apr 2022 14:13:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 22 Apr 2022 14:13:06 -0700 (PDT)
In-Reply-To: <42857ba8-94bb-4490-9bcc-e45dc763ac62n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.45; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.45
References: <e4215069-758d-4a70-8ba5-7383bba01aa0n@googlegroups.com>
<42c02917-5ac6-417f-a3a3-d10627f44db8n@googlegroups.com> <a9d0ce49-5407-4b02-8c98-808f25e2db4dn@googlegroups.com>
<cc30eb49-19d7-47e7-aafe-1828812b3b1bn@googlegroups.com> <536a454e-defd-455d-8658-473b4bfbbe9en@googlegroups.com>
<28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com> <42857ba8-94bb-4490-9bcc-e45dc763ac62n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2aab77dc-f2ce-4622-b397-d7a0ebca358bn@googlegroups.com>
Subject: Re: furia (fir's proto-c compiler)
From: profesor...@gmail.com (fir)
Injection-Date: Fri, 22 Apr 2022 21:13:07 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 74
 by: fir - Fri, 22 Apr 2022 21:13 UTC

i made yet some additions

https://filebin.net/c7cns125ysfca8d2

i repaired splitter, now it i dont made mistake its poroof on beraking
on logical lines becouse it splits on "," not after ","

aa aa,aaa ,a s s,s,s,ss ->
aa aa
aaa
a s s
s s
ss

befoe it was
aa aa,
aaa ,
a s s,
s,
s,
ss
and those additional atoms could interfere with interpretation insade lines

also i made braking on logical lines on 3 values 0x0a "," and ":"

the code it compiles

import "green_fire.dll" cdecl DrawSomeText2 ToggleFullscreen
import "green_fire.dll" cdecl ClearFrameData DrawCircle
import "green_fire.dll" cdecl RegisterRunFrame RegisterMouseMove
import "green_fire.dll" cdecl RegisterKeyDown RegisterOnResize
import "green_fire.dll" cdecl SetSleepValue SetScaleOnResize SetupWindow3
import "green_fire.dll" variable frame_size_x frame_size_y

void ProcessMouseMove(int mouse_x; int mouse_y): return

void ProcessKeyDown(int last_key_pressed)
int PAGE_UP{33}
if last_key_pressed = PAGE_UP: ToggleFullscreen() :.
return

void RollBackgroundColor()
int background_color {0x00000001}
background_color += 1
ClearFrameData background_color
return

void RunFrame()
RollBackgroundColor()
int r, int wx = 0, int wy = 0, wx = frame_size_x, wy = frame_size_y, wx /= 2, wy /= 2
for r from 20 to 100 step 2: DrawCircle wx wy r 0xff4455 :.
for r from 20 to 200 step 2: DrawCircle mouse_x mouse_y r 0xff00 :.

DrawSomeText2 0xffffff 10 30 "this app is compiled by furia \x00"
DrawSomeText2 0xffffff 30 130 "mouse %d %d\x00" mouse_x mouse_y
int b {2},int c {10}
b = 2, c = 10, b = c/(b-1)+c*(c-2), DrawSomeText2 0xffffff 20 150 " %d \x00" b
b = 2, c = 10, lisplike b = c+b*7/4+3-12 , DrawSomeText2 0xffffff 20 170 " %d \x00" b
return

void OnResize(): return

void main()
RegisterRunFrame &RunFrame,
RegisterMouseMove &ProcessMouseMove
RegisterKeyDown &ProcessKeyDown,
RegisterOnResize &OnResize
SetSleepValue 30
SetScaleOnResize 1
SetupWindow3 " compiled by fir's furia proto c compiler \x00" 10 10 600 400 300 200
return

Re: furia (fir's proto-c compiler)

<9b20c7e2-e5dc-428c-a9eb-d031ac9416ebn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:59d0:0:b0:2f1:fc58:2fce with SMTP id f16-20020ac859d0000000b002f1fc582fcemr6420427qtf.290.1650717304563;
Sat, 23 Apr 2022 05:35:04 -0700 (PDT)
X-Received: by 2002:ad4:5f87:0:b0:446:46af:d0d2 with SMTP id
jp7-20020ad45f87000000b0044646afd0d2mr6973553qvb.127.1650717304300; Sat, 23
Apr 2022 05:35:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 23 Apr 2022 05:35:04 -0700 (PDT)
In-Reply-To: <2aab77dc-f2ce-4622-b397-d7a0ebca358bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.157; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.157
References: <e4215069-758d-4a70-8ba5-7383bba01aa0n@googlegroups.com>
<42c02917-5ac6-417f-a3a3-d10627f44db8n@googlegroups.com> <a9d0ce49-5407-4b02-8c98-808f25e2db4dn@googlegroups.com>
<cc30eb49-19d7-47e7-aafe-1828812b3b1bn@googlegroups.com> <536a454e-defd-455d-8658-473b4bfbbe9en@googlegroups.com>
<28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com> <42857ba8-94bb-4490-9bcc-e45dc763ac62n@googlegroups.com>
<2aab77dc-f2ce-4622-b397-d7a0ebca358bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9b20c7e2-e5dc-428c-a9eb-d031ac9416ebn@googlegroups.com>
Subject: Re: furia (fir's proto-c compiler)
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 23 Apr 2022 12:35:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 59
 by: fir - Sat, 23 Apr 2022 12:35 UTC

https://filebin.net/7nvpszd5eru4o4uf

i added yet some syntax changes ment to maybe try later to put this some c little programs meant to be
stripped for size and see in what syntax i could obtain the possible minimum (though for now i got yet many things yet not implemented for examlple no float expressions (need to put stubs in assembly)
acces to array is obtainalble only thru a = b[i] and c[i]=d etc) now it compiles

import "green_fire.dll" cdecl DrawSomeText2 ToggleFullscreen
import "green_fire.dll" cdecl ClearFrameData DrawCircle
import "green_fire.dll" cdecl RegisterRunFrame RegisterMouseMove
import "green_fire.dll" cdecl RegisterKeyDown RegisterOnResize
import "green_fire.dll" cdecl SetSleepValue SetScaleOnResize SetupWindow3
import "green_fire.dll" variable frame_size_x frame_size_y

void ProcessMouseMove(int mouse_x; int mouse_y): return

.PAGE_UP{33}

void ProcessKeyDown(int last_key_pressed)
? last_key_pressed=PAGE_UP: ToggleFullscreen() :.
return

.background_color{0x00000001}

void RollBackgroundColor()
background_color += 1, ClearFrameData background_color
return

void RunFrame()
RollBackgroundColor()
.wx=frame_size_x, .wy=frame_size_y, wx/=2, wy/=2
20/100/2 .r: DrawCircle wx wy r 0xff4455:.
20/200/2 r: DrawCircle mouse_x mouse_y r 0xff00:.
DrawSomeText2 0xffffff 10 30 "this app is compiled by furia \x00",
DrawSomeText2 0xffffff 30 130 "mouse %d %d\x00" mouse_x mouse_y
.b=2, .c=10, b = c/(b-1)+c*(c-2), DrawSomeText2 0xffffff 20 150 " %d \x00" b
b=2, c=10, lisplike b = c+b*7/4+3-12 , DrawSomeText2 0xffffff 20 170 " %d \x00" b
return

void OnResize(): return

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
return

i got a little weary already but it is potential fun..potentially if i would implement more and rise quality of source i can give the c source of this compiler too (though taking my kinda novative (i guess) hints how to write it esp if someone would target nasm or something and not write his own asm it not so hard) but this is yet to be seen

Re: furia (fir's proto-c compiler)

<c3f1c7a7-4b9c-410b-8bab-2b9e8c20332dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:494:b0:2f3:40ad:fe64 with SMTP id p20-20020a05622a049400b002f340adfe64mr2694376qtx.424.1651309282050;
Sat, 30 Apr 2022 02:01:22 -0700 (PDT)
X-Received: by 2002:a37:9d82:0:b0:69f:9cc9:135d with SMTP id
g124-20020a379d82000000b0069f9cc9135dmr2106465qke.371.1651309281824; Sat, 30
Apr 2022 02:01:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 30 Apr 2022 02:01:21 -0700 (PDT)
In-Reply-To: <9b20c7e2-e5dc-428c-a9eb-d031ac9416ebn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.181; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.181
References: <e4215069-758d-4a70-8ba5-7383bba01aa0n@googlegroups.com>
<42c02917-5ac6-417f-a3a3-d10627f44db8n@googlegroups.com> <a9d0ce49-5407-4b02-8c98-808f25e2db4dn@googlegroups.com>
<cc30eb49-19d7-47e7-aafe-1828812b3b1bn@googlegroups.com> <536a454e-defd-455d-8658-473b4bfbbe9en@googlegroups.com>
<28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com> <42857ba8-94bb-4490-9bcc-e45dc763ac62n@googlegroups.com>
<2aab77dc-f2ce-4622-b397-d7a0ebca358bn@googlegroups.com> <9b20c7e2-e5dc-428c-a9eb-d031ac9416ebn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c3f1c7a7-4b9c-410b-8bab-2b9e8c20332dn@googlegroups.com>
Subject: Re: furia (fir's proto-c compiler)
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 30 Apr 2022 09:01:22 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 62
 by: fir - Sat, 30 Apr 2022 09:01 UTC

somewhat upgraded version

https://filebin.net/pethf87gfgorfuz7

takes code like

//////////////////////////////
import "green_fire.dll" (cdecl) DrawSomeText2 ToggleFullscreen ...
ClearFrameData DrawCircle RegisterRunFrame RegisterMouseMove ...
RegisterKeyDown RegisterOnResize SetSleepValue SetScaleOnResize ...
SetupWindow3 (var) frame_size_x frame_size_y
import "user32.dll" (stdcall) MessageBoxA
import "msvcrt.dll" (cdecl) printf

void ProcessMouseMove(int mouse_x int mouse_y), return

void foo(int z1 int z2 int z3 int z4 )
printf " %d %d %d %d \x00" z1 z2 z3 z4, return

void AddBackgrounColor(int addX)
background_color = background_color + addX , return

void ProcessKeyDown(int last_key_pressed)
int PAGE_UP=33, int keyR = 0x52, int keyG = 0x47, int 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).

return

void RollBackgroundColor(), int background_color += 0x01, ClearFrameData background_color,
return
double aa = 1111.111111111, double bb = 7.22, int cc = 2, int dd = 3
void RunFrame(),
RollBackgroundColor(),
30;.r;100;2: DrawCircle frame_size_x/4 frame_size_y/3 r 0xff4455 .
20; r;100;3: DrawCircle frame_size_x/5*4 frame_size_y/4 r 0xff00 .
10; r;70;2: DrawCircle frame_size_x/2 frame_size_y/5*4 r 0xffff00 .

20; r;200;2: DrawCircle mouse_x mouse_y r 0xffff .
DrawSomeText2 0xffffff 10 30 "this app is compiled by furia \x00",
DrawSomeText2 0xffffff 30 180 "mouse %d %d\x00" mouse_x mouse_y
cc+=1, aa+=0.01, aa-=0.00001,
DrawSomeText2 0xffffff 30 100 "cc %d aa %f \x00" cc aa,
return
void OnResize(), return
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
return

now some can put expresions as argument of functions,,it doesnt seem a big upgrade but
in fact the core things in the inner layer/ring of compilers are those two: microcompiler of expressions and code that compiles-in this expressions in given place (here for me it is those arguments of functions)

those two things emmn most thing done, probably teh harded thing in thic compiler, so when i done it i may feel like 51% of compiler done
(my expresions are errorouns and simple (only +-*/) but extending it is easy work... sadly i myself feel like emeritus so harder parts was wearing me...its a doom of my life, need to do work when began to feel really old)

Re: furia (fir's proto-c compiler)

<d44e8a10-f8e2-4365-8ce1-6bac5a150435n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:aa49:0:b0:69f:cd34:7b25 with SMTP id t70-20020a37aa49000000b0069fcd347b25mr1335228qke.744.1651349485563;
Sat, 30 Apr 2022 13:11:25 -0700 (PDT)
X-Received: by 2002:a05:6214:c44:b0:44d:adfa:612e with SMTP id
r4-20020a0562140c4400b0044dadfa612emr4183014qvj.3.1651349485417; Sat, 30 Apr
2022 13:11:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sat, 30 Apr 2022 13:11:25 -0700 (PDT)
In-Reply-To: <c3f1c7a7-4b9c-410b-8bab-2b9e8c20332dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.251; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.251
References: <e4215069-758d-4a70-8ba5-7383bba01aa0n@googlegroups.com>
<42c02917-5ac6-417f-a3a3-d10627f44db8n@googlegroups.com> <a9d0ce49-5407-4b02-8c98-808f25e2db4dn@googlegroups.com>
<cc30eb49-19d7-47e7-aafe-1828812b3b1bn@googlegroups.com> <536a454e-defd-455d-8658-473b4bfbbe9en@googlegroups.com>
<28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com> <42857ba8-94bb-4490-9bcc-e45dc763ac62n@googlegroups.com>
<2aab77dc-f2ce-4622-b397-d7a0ebca358bn@googlegroups.com> <9b20c7e2-e5dc-428c-a9eb-d031ac9416ebn@googlegroups.com>
<c3f1c7a7-4b9c-410b-8bab-2b9e8c20332dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d44e8a10-f8e2-4365-8ce1-6bac5a150435n@googlegroups.com>
Subject: Re: furia (fir's proto-c compiler)
From: profesor...@gmail.com (fir)
Injection-Date: Sat, 30 Apr 2022 20:11:25 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 23
 by: fir - Sat, 30 Apr 2022 20:11 UTC

yet i may add some remarks:
the compiler is now, i checked 100k bytes source )including commented and not needed parts_
which gave 5k lines (which in turn stands for 2 weeks of crazy work, as for me month of crazy work
is 10k lines - this was whan i was younger and able to code 10k lines a month) ... for me it took
probably like about 5-6 weeks of coding (i dont remember exactly, proably about 5)

i will need to add things yet but overally it seems in 10k lines one could build basic proto-c compiler
if one could try to not get too long it also can go in few k lines possinly (like 5k) hovever i skipped some things so if add some it probably will go up to 20 k maybe (but 20k seem a lot)

as to how hard it is i seen easier thibgs to code but also is not so hard, hovever i found a trouble
of writing it stright from begin to end good way, it rather put my head of state when i just added and added those ifs (as its damn many ifs) and not being sure if it all packs together and forget precise
code flow..it seems to pack together though

overally when i see on code i can compile i see: logical lines containing
- function call
- function definition (header)
- expression
- if-header
- for-header
and thats mostly all (yet i may add ends of if/for.function blocks)

from those 6 mentioned 4 are easy, expression and function calls are those that are harder...
still i dont see all that things to much clear i may say bot some experience here i got... i eventually suspect that investing more in that could give some good vision of things here (but its yet to see)

Re: furia (fir's proto-c compiler)

<6a986c3e-66cb-49c5-8220-71eb96439db7n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:13cb:b0:2f3:8888:136f with SMTP id p11-20020a05622a13cb00b002f38888136fmr6111813qtk.43.1651395649585;
Sun, 01 May 2022 02:00:49 -0700 (PDT)
X-Received: by 2002:a05:6214:c44:b0:44d:adfa:612e with SMTP id
r4-20020a0562140c4400b0044dadfa612emr5519676qvj.3.1651395649346; Sun, 01 May
2022 02:00:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sun, 1 May 2022 02:00:49 -0700 (PDT)
In-Reply-To: <d44e8a10-f8e2-4365-8ce1-6bac5a150435n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.192; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.192
References: <e4215069-758d-4a70-8ba5-7383bba01aa0n@googlegroups.com>
<42c02917-5ac6-417f-a3a3-d10627f44db8n@googlegroups.com> <a9d0ce49-5407-4b02-8c98-808f25e2db4dn@googlegroups.com>
<cc30eb49-19d7-47e7-aafe-1828812b3b1bn@googlegroups.com> <536a454e-defd-455d-8658-473b4bfbbe9en@googlegroups.com>
<28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com> <42857ba8-94bb-4490-9bcc-e45dc763ac62n@googlegroups.com>
<2aab77dc-f2ce-4622-b397-d7a0ebca358bn@googlegroups.com> <9b20c7e2-e5dc-428c-a9eb-d031ac9416ebn@googlegroups.com>
<c3f1c7a7-4b9c-410b-8bab-2b9e8c20332dn@googlegroups.com> <d44e8a10-f8e2-4365-8ce1-6bac5a150435n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6a986c3e-66cb-49c5-8220-71eb96439db7n@googlegroups.com>
Subject: Re: furia (fir's proto-c compiler)
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 01 May 2022 09:00:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 110
 by: fir - Sun, 1 May 2022 09:00 UTC

sobota, 30 kwietnia 2022 o 22:11:32 UTC+2 fir napisał(a):
> yet i may add some remarks:
> the compiler is now, i checked 100k bytes source )including commented and not needed parts_
> which gave 5k lines (which in turn stands for 2 weeks of crazy work, as for me month of crazy work
> is 10k lines - this was whan i was younger and able to code 10k lines a month) ... for me it took
> probably like about 5-6 weeks of coding (i dont remember exactly, proably about 5)
>
> i will need to add things yet but overally it seems in 10k lines one could build basic proto-c compiler
> if one could try to not get too long it also can go in few k lines possinly (like 5k) hovever i skipped some things so if add some it probably will go up to 20 k maybe (but 20k seem a lot)
>
> as to how hard it is i seen easier thibgs to code but also is not so hard, hovever i found a trouble
> of writing it stright from begin to end good way, it rather put my head of state when i just added and added those ifs (as its damn many ifs) and not being sure if it all packs together and forget precise
> code flow..it seems to pack together though
>
> overally when i see on code i can compile i see: logical lines containing
> - function call
> - function definition (header)
> - expression
> - if-header
> - for-header
> and thats mostly all (yet i may add ends of if/for.function blocks)
>
> from those 6 mentioned 4 are easy, expression and function calls are those that are harder...
> still i dont see all that things to much clear i may say bot some experience here i got... i eventually suspect that investing more in that could give some good vision of things here (but its yet to see)

i added yet new version https://filebin.net/hhwx77gjc4zmeyax

this compiles a bit cleanised syntax

//////////////////////////////
import "green_fire.dll" (cdecl) DrawSomeText2 ToggleFullscreen ClearFrameData DrawCircle RegisterRunFrame RegisterMouseMove RegisterKeyDown RegisterOnResize SetSleepValue SetScaleOnResize SetupWindow3 (var) frame_size_x frame_size_y
import "user32.dll" (stdcall) MessageBoxA
import "msvcrt.dll" (cdecl) printf
////////////////////////////////////

void ProcessMouseMove int mouse_x int mouse_y
return

void foo int z1 int z2 int z3 int z4
printf " %d %d %d %d \x00" z1 z2 z3 z4
return

void AddBackgrounColor int addX
background_color += addX
return

void ProcessKeyDown int last_key_pressed :
int PAGE_UP{33}, int keyR{0x52}, int keyG{0x47}, int 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 .
return

void RollBackgroundColor: int background_color += 0x01
ClearFrameData background_color
return

double aa {21111.111111111},double bb{7.22},int cc{2}, int dd{3}

void RunFrame
RollBackgroundColor,
30;.r;100;2: DrawCircle frame_size_x/4 frame_size_y/3 r 0xff4455 .
20; r;100;3: DrawCircle frame_size_x/5*4 frame_size_y/4 r 0xff00 .
10; r;70 ;4: DrawCircle frame_size_x/6*5 frame_size_y/5*4 r 0xffff00 .
11; r;70 ;4: DrawCircle frame_size_x/6*5 frame_size_y/5*4 r 0x00ffff .

30; r;200;2: DrawCircle mouse_x mouse_y r 0xffff .
DrawSomeText2 0xffffff 10 30 "this app is compiled by furia \x00"
DrawSomeText2 0xffffff 30 180 "mouse %d %d\x00" mouse_x mouse_y
DrawSomeText2 0xffffff 10 220 "test cc %d test aa %f \x00" cc+=1 aa+=0.111111
return

void OnResize, return

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
return

though still it has a bunch of small syntax holes and wrongings
most possibly i will get a break and return to it some other day hovever as i said i think
wthe worst of this is done and 52% of it is done, the rest is just easy typing

Re: furia (fir's proto-c compiler)

<700be7e0-91db-4d3b-b8f7-ab5f44fb70d0n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:e102:0:b0:69f:8463:cbdd with SMTP id c2-20020a37e102000000b0069f8463cbddmr9192216qkm.766.1652028196106;
Sun, 08 May 2022 09:43:16 -0700 (PDT)
X-Received: by 2002:ad4:5d6c:0:b0:45a:5e75:6825 with SMTP id
fn12-20020ad45d6c000000b0045a5e756825mr10411928qvb.110.1652028195906; Sun, 08
May 2022 09:43:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.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, 8 May 2022 09:43:15 -0700 (PDT)
In-Reply-To: <6a986c3e-66cb-49c5-8220-71eb96439db7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.44; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.44
References: <e4215069-758d-4a70-8ba5-7383bba01aa0n@googlegroups.com>
<42c02917-5ac6-417f-a3a3-d10627f44db8n@googlegroups.com> <a9d0ce49-5407-4b02-8c98-808f25e2db4dn@googlegroups.com>
<cc30eb49-19d7-47e7-aafe-1828812b3b1bn@googlegroups.com> <536a454e-defd-455d-8658-473b4bfbbe9en@googlegroups.com>
<28ebbb9d-de79-4e51-b3ee-2e263d09d6a1n@googlegroups.com> <42857ba8-94bb-4490-9bcc-e45dc763ac62n@googlegroups.com>
<2aab77dc-f2ce-4622-b397-d7a0ebca358bn@googlegroups.com> <9b20c7e2-e5dc-428c-a9eb-d031ac9416ebn@googlegroups.com>
<c3f1c7a7-4b9c-410b-8bab-2b9e8c20332dn@googlegroups.com> <d44e8a10-f8e2-4365-8ce1-6bac5a150435n@googlegroups.com>
<6a986c3e-66cb-49c5-8220-71eb96439db7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <700be7e0-91db-4d3b-b8f7-ab5f44fb70d0n@googlegroups.com>
Subject: Re: furia (fir's proto-c compiler)
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 08 May 2022 16:43:16 +0000
Content-Type: text/plain; charset="UTF-8"
 by: fir - Sun, 8 May 2022 16:43 UTC

some newer version

https://filebin.net/qg6zad6s27xb80vt

i upgraded those 'vector' separation code and
allowed both use ; or | separators or none
like
foo a b c
foo a|b|c

i throwed old reducer code to trash bin and wrote one notably cleaner though
still i didnt wanted even to test that (probably not all works but may be mended)

possibly i could go on and add something more

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor