Obratnaya
h
TheForArkLD (734)

Obratnaya repl
Source
@SixBeeps @RaidTheWeb @NoNameByProgram Here is post!

Table for features

JavaScriptC#Obratnaya
No undefined⭕️⭕️
Null⭕️⭕️⭕️
Library⭕️⭕️⭕️
Function or Section⭕️⭕️⭕️
Class⭕️⭕️
Type⭕️⭕️
Type Generic⭕️
Goto⭕️⭕️
Data section⭕️
Section⭕️
Function⭕️⭕️
Readable⭕️⭕️⭕️
Word for operator⭕️
Exact equality operator⭕️⭕️

Samples

Hello world

#include <stdout.oba>
.main:
    push Hello, world!
    push msgln
    call @
    ret

What does this program do?

  1. Include stdout.oba (It contains section for output text with \r\n)
  2. Declare "This is main section"
  3. Push "Hello, world!"
  4. Push "msgln"
  5. Call "msgln"
  6. End program by exit code 0

99 Bottles of beer

#include <stdout.oba>
.data:
    .empty
    .empty
    .empty
    .decimal 100
.main:
    mov 3,@
    sub @,1
    movd @,3
    mov 3,@
    push  bottles of beer on the wall, 
    concat @,@
    mov 3,@
    push  bottles of beer,
    concat @,@
    concat @,@
    push msgln
    call @
    mov 3,@
    sub @,1
    movd @,3
    push Take on down, pass it around,
    push msgln
    call @
    mov 3,@
    push  bottles of beer on the wall
    concat @,@
    push msgln
    call @
    jmp 5

What does this program do?

  1. Include stdout.oba
  2. Declare "This is data section"
  3. Push empty / empty / empty / 100 to data section
  4. Declare "This is main section"
  5. Get value from Index 3
  6. Subtract it by 1
  7. Move value to data section
  8. Get value from Index 3
  9. Push " bottles of beer on the wall,"
  10. Concat
  11. Get value from Index 3
  12. Push " bottles of beer,"
  13. Concat
  14. Concat
  15. Push "msgln"
  16. Call "msgln"
  17. Get value from Index 3
  18. Subtract it by 1
  19. Move value to data section
  20. Push "Take on down, pass it around,"
  21. Push "msgln"
  22. Call "msgln"
  23. Get value from Index 3
  24. Push " bottles of beer on the wall"
  25. Concat
  26. Push "msgln"
  27. Call "msgln"
  28. Jump to line 5
You are viewing a single comment. View All
DynamicSquid (4344)

How'd you pronounce the name?

HahaYes (1246)

@DynamicSquid We've got some rivals eh?

AmazingMech2418 (938)

@HahaYes Eh, Rex is higher level and actually has an advantage over most modern languages. (sorry, but this seems more like a hybrid between Assembly, C, Forth, and even some BASIC, but doesn't have an advantage over most modern languages including JS and Python...)

HahaYes (1246)

@AmazingMech2418 yes we do! Which one do we submit... rex or adaptX? Confusion?

HahaYes (1246)

@AmazingMech2418 we could split our teams to get a better chance...

AmazingMech2418 (938)

@HahaYes Rex and AdaptX are the same thing. We changed the name to Rex, but the AdaptX repl is just C++ Rex.

HahaYes (1246)

@AmazingMech2418 ah ok we've also got some easter eggs

AmazingMech2418 (938)

@HahaYes Nice! LOL! I'll make sure to add them to the JS version!

AmazingMech2418 (938)

@HahaYes By the way, the JS version has functions now! Now, for returning values from the functions... LOL!