civboot / fngi

a readable language that grows from the silicon
The Unlicense
60 stars 3 forks source link

`tmp` variables #29

Open vitiral opened 1 year ago

vitiral commented 1 year ago

I realized that creating tmp variables is fairly trivial actually. The basic syntax is:

tmp( myTmp1: Type1 =  (...), myTmp2: Type2 = (...) ) do ( ... use tmp variables ...)

Basically what this does is

tmp <grow return stack by size of tmp variables > do <use tmp variables> <shrink return stack by size of tmp variables>

What the compiler does is:

Something like that