Nope.

From Esolang
Jump to navigation Jump to search
The official logo.

Nope. is an esoteric programming language made by Areallycoolusername. You can code anything you would like, but the language will refuse to compile nor process it. This unfortunately means that Nope. is not Turing-complete. You still could create a quine and a cat program[see discussion].

Implementations

6969 Assembler

DFS %?
JMP n?%s::Oof
MOV C*::Nope.
JMP END
PNT n
MOV C*::Nope.
PNT END

Backwords

##A".epoN":z;,#6v

brainfuck

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,>++++++++++[>++++++++>++
+++++++++>+++++++++++>++++++++++>+++++<<<<<-]>--.>+.>++.>+.>----.

C

#include <stdio.h>

int main () {
    printf("Nope.");
}

C++

#include <iostream>
using namespace std;

int main() {
 
    string input;
    getline(cin,input);
 
    //for the lols     
    if(input=="Oof") {
        cout << "Nope.";
    } else {
        cout << "Nope.";
    }

}

Lazy K

 K(  # Consume source
 S(SI(K(
   S(K(S(S(KS)K)(S(S(KS)K)I)))(S(S(KS)K)(S(S(KS)K)I(S(S(KS)K)(SII(S(S(KS)K)I)))))  # N
 )))
 (K(S(SI(K(
   S(S(KS)K)(S(K(S(S(KS)K)I))(S(S(KS)K)(S(K(S(S(KS)K)I))(SII(S(S(KS)K)(S(S(KS)K)I))))))  # o
 )))
 (K(S(SI(K(
   S(K(SII(S(S(KS)K)I)))(S(S(KS)K)(SII(S(S(KS)K)(S(S(KS)K)I))))  # p
 )))
 (K(S(SI(K(
   S(S(KS)K)(S(S(KS)K)I(S(K(S(S(KS)K)I))(S(S(KS)K)(SII(S(S(KS)K)I)))))  # e
 )))
 (K(S(SI(K(
   S(S(KS)K)(S(K(S(S(KS)K)(SII(S(S(KS)K)I))))(S(S(KS)K)I(S(S(KS)K)(S(S(KS)K)I)))) # .
 )))(K(
   K(SII(SII(S(S(KS)K)I)))  # K(256) for output
 )))))))))))

Lua

input = io.input()
if input == "Oof" then
    print("Nope.")
else
    print("Nope.")
end

Python

print("Nope." if input() == "Oof" else "Nope.")

VB.Net

Module Module1
    Sub Main()
        Dim userCode As String = Nothing
        userCode = Console.ReadLine()
        If userCode = "Oof" Then
            Console.WriteLine("Nope.")
        Else
            Console.WriteLine("Nope.")
        End If
    End Sub
End Module

Wren

Fn.new{|n|n=="Oof"?"Nope.":"Nope."}


It's pretty pointless, to be honest.