Git Product home page Git Product logo

onlytoday's Introduction

๐Ÿ“… 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:

Instruction Example Operation
PUSH 2018 Pushes '1' onto the stack
POP I hate monday Pops off the top of the stack
ASCII 19 Converts the top of the stack to a character
JUMP 28 Sets the instruction pointer to the address on top of the stack
COMPARE 2 Compares 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
OUTPUT 2019 will be my year! Prints the whole stack to stdout
TODAY today is a nice day You 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. ๐Ÿ˜„

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.

onlytoday's People

Contributors

molnarmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.