aaronryank / Cubically

An esoteric programming language based on Rubik's Cubes
https://github.com/Cubically
GNU General Public License v3.0
28 stars 6 forks source link

Command that allows arguments to be passed from stdin? #9

Closed rexroni closed 7 years ago

rexroni commented 7 years ago

Why is there no way to specify the argument of any function from input?

For example, F1 always turns the front face 1, but there's no way to specify F(whatever-is-in-7).

You could add a dereference character, we'll say X, where FX7 is interpreted as F(whatever-is-in-7). That would be more difficult, but more versatile.

I propose that you just add a new character that reads an argument from stdin, say: '#', so F# would read a 0-9 from stdin.

In fact I wrote a patch for this too, and I will submit the pull request shortly.

TehPers commented 7 years ago

Pull request: #11

aaronryank commented 7 years ago

Here are some ways we've come up with that could do this (without messing with Cubically's existing syntax):

TehPers commented 7 years ago

Is there anyway to rotate layer x?

aaronryank commented 7 years ago

Ok, so:

aaronryank commented 6 years ago

@rexroni I added your original suggestion for # as š•€ in one the most recent commits.