Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.46 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.46 KB

Seriously

A golfing language that is probably terrible. It is currently being developed. Seriously is stack-based, and is unique in its amount of single-character commands. Every character whose ordinal is in [1,255] does something (or will, once I finish development). Character 0 is excluded because it is used as the end-of-file (EOF) character, and so it cannot be used for a command.

All strings are valid programs. There is no such thing as a syntax error, and anything that appears to be a runtime error is actually a no-op (NOP). If you call a command that expects a string on top of the stack, but the top value is an integer, instead of throwing an error, it silently performs a NOP. Eventually, this will not be seen, as the goal for Seriously is for every character and stack state to map to a command.

The name was inspired by this challenge.

Try the online interpreter. This is part of Try it online! by @DennisMitchell.

If you are running code locally, you must set your terminal text encoding to CP437.

Commands

See commands.txt

Examples

Hello, World!

H

If you prefer a more interesting version:

"Hello, World!"

Primality Test

,p

99 Bottles of Beer

N

Coprimality Test

,,g1=

Counting the divisors of a number

,w`iXu`Mπ