User:Unname4798/Esolangs/Coolbeans: Difference between revisions
Jump to navigation
Jump to search
Unname4798 (talk | contribs) Created page with "Coolbeans is an esoteric programming language created by User:Tommyaweosme and User:Unname4798 == Stuff == - path | path \ turn / turn + intersection (they keep going the same way) > signal going right < signal going left ^ signal going up v signal going down Signals can hold values. When a signal runs into a hashtag sign, it replaces its value with the number until the next hashtag. v | | # 1 2 # \---$ This collects 12 and outputs it. $ output..." |
Unname4798 (talk | contribs) No edit summary |
||
| Line 41: | Line 41: | ||
Turns from up to right if the value is 0. Otherwise, it deletes. Turns right to up if value is non 0 or string. Otherwise, it deletes. | Turns from up to right if the value is 0. Otherwise, it deletes. Turns right to up if value is non 0 or string. Otherwise, it deletes. | ||
== Examples == | == Examples == | ||
=== Hello World === | === Hello World === | ||
| Line 60: | Line 59: | ||
\$| | \$| | ||
\/ | \/ | ||
=== Multiply by 2 === | |||
% | |||
| | |||
----- | |||
| | | |||
--Y-- | |||
| | |||
$ | |||
Revision as of 05:41, 9 June 2024
Coolbeans is an esoteric programming language created by User:Tommyaweosme and User:Unname4798
Stuff
- path | path \ turn / turn + intersection (they keep going the same way) > signal going right < signal going left ^ signal going up v signal going down
Signals can hold values.
When a signal runs into a hashtag sign, it replaces its value with the number until the next hashtag.
v | | # 1 2 # \---$
This collects 12 and outputs it.
$ output % input
To duplicate, make a split in the path
v | | -----
Both signals have the same value.
@ trash
Any signal running into trash gets trashed.
& stringify
Stringifying a pointer means that when it runs into *, it treats it like a hashtag but for strings.
Two spaces in a row means newline, by the way.
Y add
A Y adds values that go on sides of it and releases it on a new track.
L conditional turn
Turns from up to right if the value is 0. Otherwise, it deletes. Turns right to up if value is non 0 or string. Otherwise, it deletes.
Examples
Hello World
>&*Hello,*$\ $*!dlroW */
A+B problem
v v %Y% $
Truth Machine
% /--\ L--+-$ /\| #L/ 1 #/\ \$| \/
Multiply by 2
% | ----- | | --Y-- | $