Share your repls and programming experiences

← Back to all posts
Wistful-C by bkul and Maltysen
mwilki7 (519)

https://github.com/Nazek42/wistful-c

This is not my work

I wanted to share this with you guys because I thought it was a hilarious programming language that I came across (or set of substitutions).

The end result is a C program, so everything outside of the wistful-syntax will just be ordinary C code.

From the above link:
When combined, these wistful and longing substitutions create depressing programs like this simple prime-checker:

if only <stdio.h> were included...
if only int n were 0...
wish "Please enter a number:" upon a star
wish for "%d", &n upon a star
if n < 1 were true...
    wish "Not a whole number" upon a star
    if wishes were horses...
*sigh*
if only int i were 2...
someday i will be n...
    if n % i were 0...
        wish "not prime" upon a star
        if wishes were horses...
    *sigh*
    if only i were i + 1...
*sigh*
wish "prime" upon a star
if wishes were horses...

Also from the above link:

Side note:

I added oh where to start... as a substitute for int main(){
so those crazy enough can use functions for larger projects.