Home

Awesome

📅 OnlyToday

OnlyToday is an esoteric programming language that works with dates and times.
The source code of an OnlyToday program is never the same!
The syntax of the language depends on the date, more specifically, the HOUR you write the code in.
You can find both the EcmaScript 5 and EcmaScript 6 implementation in the src directory.

Examples

You can find some example(s) here.

The Idea

OnlyToday is stack based, and works with 13 instructions. They are as follows:

InstructionExampleOperation
PUSH2018Pushes '1' onto the stack
POPI hate mondayPops off the top of the stack
ASCII19Converts the top of the stack to a character
JUMP28Sets the instruction pointer to the address on top of the stack
COMPARE2Compares the top of the stack and the value at the instruction pointer
SUM+Pops the top two elements of the stack and pushes the result on top
DIF-Pops the top two elements of the stack and pushes the result on top
MUL*Pops the top two elements of the stack and pushes the result on top
DIV/Pops the top two elements of the stack and pushes the result on top
OUTPUT2019 will be my year!Prints the whole stack to stdout
TODAYtoday is a nice dayYou can use today for comments

The table values are based on 28 February, 2018

Don't murder me

OnlyToday is one of my very first stack based interpreters, so go easy on me. :smile:

License

OnlyToday is licensed under MIT.

OnlyToday is being worked on as of February 2018, and it does not support looping as of version 0.0.1.