Desrever
- This is still a work in progress. It may be changed in the future.
Desrever is an esoteric programming language created by User:Fazaazafg. Its syntax is structured like most typical programming languages, but backwards. Here is a Hello, world! program in Desrever.
{ ;("Hello, world!")print } ()main func
Syntax
The syntax should be understandable if you're already familiar with most typical programming languages. It's just like C, but in reverse. Anyway, comments. Single-line comments are made using //
with the contents placed before it. Multi-line comments are made using \*
and */
to mark where the comment begins and where it ended respectively. Here's an example of one.
{ /* This is a multi-line comment. It spans multiple lines. */ This is a comment. // ;("Hi, world.")print } ()main func
As you might've guessed, programs execute commands from bottom to top in this language, instead of the usual top to bottom. Comments should be placed from bottom to top, but the contents doesn't have to be.
{ /* Prints to the console: 1 2 10 */ But this one prints 10. // ;("10")print And this prints 2, // ;("2")print This prints 1, // ;("1")print } ()main func
This is a work in progress, please don't forget about this, me aka User:Fazaazafg