LogicodeLang / Logicode

An esoteric language based on logic gates.
MIT License
12 stars 3 forks source link

Explicit returns? #20

Open hanyuone opened 8 years ago

hanyuone commented 8 years ago

I was thinking of including explicit returns, using the ret keyword. - so, something like this in a circuit:

circ asdf(n) -> [
    ret n&1
]
out asdf(1)

Output: 1

Also, I propose that we shorten the input thing to inp.

hanyuone commented 8 years ago