bigyihsuan / International-Phonetic-Esoteric-Language

IPEL. An esoteric programming language that uses mostly IPA.
MIT License
10 stars 1 forks source link

Add a Register #14

Closed lyxal closed 4 years ago

lyxal commented 4 years ago

If I want to temporarily store a value, I have to think through using stack mechanics. A register would avoid this.

Context

This challenge

i"TI-"ob4hob5ho

Everything is printed on newlines, when it should be on one line. A register means I could concatenate everything together and print like:

lyxal commented 4 years ago
i"TI-"©®4h®5h4ɣ

Where © pops the top of stack into the register and ® retrieves the register

bigyihsuan commented 4 years ago

sure why not. also involves cursed owo-lang stuff.

details

bigyihsuan commented 4 years ago

Though there are 2 value stacks. You could use one stack as the "main" stack and the other one to store values.