Git Product home page Git Product logo

oryx's Introduction

I highly recommend to check nori.ni too! It is another esolang of mine, but oryx won't be updated since it's for a jam, nori.ni is updated frequently instead!

oryx

oryx is a 2D, stack-based esolang made for an esojam, this esolang was made in under 2 hours!

To run main.yx just type python main.py, if you want to run another file, use python main.py path/to/file.yx

Commands

oryx has a thing called energy, every programs starts with 100 energy, some commands may use a bit of it, to get more, run ·!

The interpreter ignores every other character than these, making them no-op

Every program's first character should be a space and the default direction for a program is right.

IP direction commands

Arrow Direction
\ Right mirror
/ Left mirror
^ Up
v Down

Main commands

Command Energy Description
0-F Push the corrisponding hex number as an integer
! Pop the last value
n -5 Push numeric user input
a -10 Push the user input as ASCII values
O -5 Output the last value to the console then pop it
o -5 Output the last ASCII value to the console then pop it
: Duplicate the top value
; Swap the last two values
$ Reverse the whole stack
+ Add last two values together, leaving only the result
- Subtract last two values together, leaving only the result
* Multiply last two values together, leaving only the result
| Divide last two values together, leaving only the result
° Raise last two values together, leaving only the result
% Modulo last two values together, leaving only the result
I Push a random bit (either 0 or 1)
? The next instruction is only executed if the popped value is non-zero
· +10 Get a bit of energy

oryx arithmetic is NOS × TOS, meaning that 32* &, for example, will duplicate 3 (2nd value) by 2 (last value)

Example programs

Here are some example programs!

1 char cat program

 ao &

Numerical cat program

 nO &

Infinite 1-char cat program

 v\
 n
 O
 \^

Truth machine

 n?v0O &
   v\
   1·
   O 
   \^

Bit inverter

 1;-

Random binary sequence screensaver

 v\
 I·
 O
 \^

oryx's People

Contributors

kwmu4k avatar

Watchers

 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.