justinmeza / lci

A LOLCODE interpreter written in C.
http://lolcode.org
GNU General Public License v3.0
784 stars 105 forks source link

Suggestion: PIPE library to allow execution of commands in LOLCODE #67

Open K4rakara opened 4 years ago

K4rakara commented 4 years ago

I ironically would like to make a lot of my dotfiles in LOLCODE, but the lack of a way to call shell commands makes that very difficult. Heres a way it could be implemented:

HAI 1.5

CAN HAS STDIO?
CAN HAS PIPE?

I HAS A pipe
pipe R I IZ PIPE'Z OPEN YR "echo Hello World"

BOTH SAEM pipe AN "Hello World"
O RLY?
    YA RLY, VISIBLE "OK"
    NO WAI, VISIBLE "SOMFING WENT WONG"
OIC

KTHXBYE