helvm / helpa

🏭 🌾 HelPA - Haskellish Esoteric Little Pseudo Assembler to Esoteric Languages implemented in Haskell
https://helvm.github.io/helpa
9 stars 0 forks source link

Implement HaPyLi for WhiteSpace #60

Open kamil-adam opened 1 year ago

kamil-adam commented 1 year ago

But HaPyLi should look more like Scheme.

Try using scripting style. Like Schema scripts. I know, It is assembler, but try. The function has number of parameters. But also has size of result.

Types:

Syntax:

We need standard Schema expression:

We need special expression:

Functions:

Examples

(define alloc (lambda [n] (asm 
  (ld 0) 
  (cp 1)
  (cp 3)
  (add)
  (st 0)
)))

(define + (lambda [] asm (add)))