Okayako

From Esolang
Jump to navigation Jump to search

OkayakO is object-oriented language by User:ChuckEsoteric08. It is Schwa, but more useful.

Commands

Command State 1 State 2
@ Switch state Switch state
! Set accumulator to 0 Increment accumulator
# Change state to state 2 Decrement accumulator
` Execute object secified by accumulator Change state to state 1
" Output accumulator Output accumulator

Making object looks like this:

<object number>:
<your code><next object that will be executed>

Examples

Counter

0:
@!"@`
1:
@!"@`
2:
@!"`
3:
@!"
Output:
1234

Countdown

A program which counts down from four (4) to one (1) is implemented below:

0:
@!!!!"@`

1:

2:
@#"@`
3:
@#"@`
4:
@#"@`

Interpreter

  • Common Lisp implementation of the OkayakO programming language.