views
181
likes
5

Comments

What do you think?
No comments yet.

Spam Programming language

The object is:
Try to make programming code look like shitty spam!

The programming language only recognizes a few terms the rest is simply ignored.

Like real spam, efficiency plays no role, so slowdowns and lags may be expected.

This is a joke programming language, I hope you like it.

You can download the .NET version you can run from the command prompt (If you are on Linux or Mac you'll need to install the Mono framework for this), or if that's too much trouble use the demo (which may lack some functionality).

Report any bugs you find in the web version here
Report any bugs you find in the .NET version here

(I was just frustrated when I came up with this, and when you've seen the forums at the time I programmed this, you'd understand!)

NOTE! This is NOT a game! The rule to post games only has been removed, but the website is not yet entirely adapted to the new situation. ;)

Recognized words

These words are "keywords" and will make Spam respond. Like I said all other words are ignored.
Commands are case INSENSITIVE. So lower case or upper case won't matter.

WIN

Increases current byte by 1

CASINO

Decrease current byte by 1

MONEY

Move pointer up by 1 (1023 is max. If the max has been reached it goes back to 0)

CASH

Move pointer down by 1 (0 is min. If the min has been reached it goes back to 1023)

BET

Show the value of the current byte as a character

SHOW

Show the ASCII value of the current byte as a number

NEXT

New line

CHECK

If the current byte is 0 skip the next (recognized) command

VIAGRA

User can input a string that will be converted into a number.
The number of memory slots used depends on the height of the number.

DIPLOMA

User can input a string and will take up as many memory spots as it needs to fill it out.
You can cap this by using the $ prefix anywhere prior to the Diploma command

PREFIX: HTTP://

When you prefix something with HTTP:// it will serve as a label. If you type the same url without http:// it will act as a goto command to go to the http:// varianbt.
If you use the same url in a HTTP:// twice only the last one will be counted.
This too is case insensitive.

PREFIX: X

When you type a number after the x (no spaces or anything) it will perform the last valid command the number of times you want.
If no command available or no valid number was entered nothing will happen

SUFFIX: X

Same as 'PREFIX: X'

PREFIX: $

Set the maximum length of a string "DIPLOMA" can accept. This allows you "cleaner" coding when accepting strings.
For the "VIAGRA" command nothing changes.

#utility #esolang #spam #programminglanguage #joke #donttakethisseriously #Iknowthisisnotagamebutthatdoesntmatteranymoresodontwasteyourtimeandminereportingthis #theonlyplacewherespamisuseful :P
#other #opensource



all-ages

"Hello world"

Well when you've cleaned up a lot of spam (like me), you'd understand the inspiration for this was obvious. As the rule to post games only was removed, I decided to post this on GJ. ;)