ORS

From Esolang
Jump to navigation Jump to search

ORS (Objects R Succinct), designed by User:None1 in 2025, is an object-oriented language that has a very succinct syntax, like most other esoteric programming languages.

Examples

Hello, world!

p:
sc Writer;
Writer.write("Hello, world!");

Cat

o mouse;
f mouse.be_eaten();
wo status;
sc voice;
in input;

f mouse.be_eaten():
wo squeaky sound;
in.rO squeaky sound;
i.do()?status="eaten";
voice.w(squeaky sound);

o cat;
cat.eat(mouse);
li Lingo;

f cat.eat(mouse):
mouse.be_eaten();
li.fo=mouse.status;
li.so="eaten";
li.cm();
li.ne?lp;

p:
cat a;
mouse b;
b.status="alive";
a.eat(b);

See also