Page 17 sur 24

Re: ICE Compiler

Message non luPosté: 04 Sep 2017, 16:29
de PT_
Good news! I added GetPixel( in the ASM version! :D

It's still a bit primitive, the syntax should look like this: det(7,[expression],[expression])→[variable].
You do need the closing parenthesis, otherwise it won't work.

Download: archives_voir.php?id=587211

Image

Re: ICE Compiler

Message non luPosté: 11 Sep 2017, 19:30
de PT_
Okay, a question for y'all: what would you like to see implemented?
I'm almost done with the functions I wanted to add, I'm done with adding pointers, I've fixed strings, added sub( and length( and what more.
What do you want to see added? If it's not a common routine/function, please explain what it does and why it's useful. Thanks! :D

Re: ICE Compiler

Message non luPosté: 11 Sep 2017, 20:53
de Ruadh
What I would really like is having more variables. I personally don't care about custom variable names, so I would be happy with just two letter variables.

Re: ICE Compiler

Message non luPosté: 11 Sep 2017, 21:11
de Ti64CLi++
@PT_ I would like the reading of any file like appvars and programs. The possibility to compile in application

Re: ICE Compiler

Message non luPosté: 13 Sep 2017, 17:57
de PT_
So it seems I had a bunch of free time and integrated the fileioc lib! :D

Image

I've decided to use "sum(', but I can easily switch if necessary.

Re: ICE Compiler

Message non luPosté: 14 Sep 2017, 12:52
de TheMachine02
Excellent ! It will open a wide range of possibilities :D

Re: ICE Compiler

Message non luPosté: 16 Sep 2017, 20:30
de PT_
Okay, I've added sin( and cos( :D I took this routine and modified a *bit*, because ICE only handles integers. The input is [0,256] and the output is [-256,256]. Only problem: the routine is 176 bytes large...
***PT_ hides

Image
Image

Re: ICE Compiler

Message non luPosté: 19 Sep 2017, 14:02
de PT_
Multi-letter variables are now implemented :D

Image

Re: ICE Compiler

Message non luPosté: 19 Sep 2017, 19:41
de V0id
BooYay ! :D

Re: ICE Compiler

Message non luPosté: 27 Sep 2017, 13:28
de PT_
I'm ready with implementing everything, so it's time for bugtesting. I've tested all the non-expression functions, like If, Repeat, Call etc.
Also, it seems the icon and description works :D

Image