Created
October 16, 2016 21:08
-
-
Save ConorOBrien-Foxx/cc96f5034d4dbe08e5e6b0fbdd42bf32 to your computer and use it in GitHub Desktop.
Chat command processing in ><>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
001. > >~" " >$2p ~ 0&703. | |
:i:0(?^:a=?^:" "=?^$2p1+ | |
:&:&$g&:&2g:" "=?v=?!v&1+& > | |
;Dv? =";"~< >1+&~0&:c)?v^ ;< v o< | |
>&$.; >02g"@"=?!^0["` dnammoc dezingocernu">l?^1v | |
v o;?< ^ number of commands ;o"`"v!?=" ":g2:< | |
@type; >i:0(^ v o< v < > o:1+ ^ | |
@bye; "!eyb"oooo; r>l?^;2[0[>i:0(?!^~:a=?~r]r$.; | |
@what; "this is a command chat interface written in ><>."c2*8. | |
@help; "available commands: "rv o< v +1 < | |
@eval; "nope."c2*8.; >l?^7>:0$g"@"=?!;0>}:{:@$g:o";"=?v^; | |
@rev; eca3*8.rc2*8. ^ +1~o" "< | |
made by Conor O'Brien, October 16th, 2016. You may use and modify this, but | |
you must also give me credit for it. | |
guide for running: | |
run as: | |
echo <message>|chat.fish | |
e.g.: | |
echo @help|chat.fish | |
guide to macros: | |
`c2*8.` prints the stack as a string and terminates the program. | |
`a3*8.` assumes that coordinates (x, y) are on the top of the stack, and puts the rest of the input in a new stack. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment