Skip to content

Latest commit

 

History

History
100 lines (98 loc) · 2.83 KB

commands.md

File metadata and controls

100 lines (98 loc) · 2.83 KB

This document is just for reference when checking if a character is in use (because I forget a lot :P) For real documentation, please see o.readthedocs.org.

##Comands In the format HEX (char): use. Things in bold need to be checked in the interpreter because they either aren't implemented or are implemented improperly.

  • 21 (!):
  • 22 ("): String parsing
  • 23 (#): String to number
  • 24 ($): Take object from lower stack up
  • 25 (%): Modulous
  • 26 (&): Get element from array
  • 27 ('): Character literal
  • 28 ((): Decrement
  • 29 ()): Increment
  • 2a (*): Multiplication
  • 2b (+): Addition
  • 2c (,): Range
  • 2d (-): Subtraction
  • 2e (.): Clone the top of the stack
  • 2f (/): Division
  • 30 (0): Push 0
  • 31 (1): Push 1
  • 32 (2): Push 2
  • 33 (3): Push 3
  • 34 (4): Push 4
  • 35 (5): Push 5
  • 36 (6): Push 6
  • 37 (7): Push 7
  • 38 (8): Push 8
  • 39 (9): Push 9
  • 3a (:): Assign to variable
  • 3b (;): Pop top value of stack
  • 3c (<): Less than
  • 3d (=): Equal to
  • 3e (>): Greater than
  • 3f (?): If????
  • 40 (@): Rotate top three items on stack
  • 41 (A): Push 10
  • 42 (B): Push 11
  • 43 (C): Push 12
  • 44 (D): Push 13
  • 45 (E): Push 14
  • 46 (F): Push 15
  • 47 (G): Push alphabet
  • 48 (H): Macro for [Q
  • 49 (I): Macro for [i
  • 4a (J): Magic var
  • 4b (K): Magic var
  • 4c (L): Lambda (Push next character as a standalone CodeBlock: Lo -> {o})
  • 4d (M): Macro for [i~
  • 4e (N): Push blank CodeBlock
  • 4f (O):
  • 50 (P):
  • 51 (Q): Input var
  • 52 (R):
  • 53 (S): Blank String
  • 54 (T): String with space " "
  • 55 (U): Newline string "\n"
  • 56 (V): Commonly used for variables
  • 57 (W): Push 32
  • 58 (X): Push 33
  • 59 (Y): Push 34
  • 5a (Z): Push 35
  • 5b ([): Start array
  • 5c (\): Swap two objects on stack
  • 5d (]): End array
  • 5e (^): Power?
  • 5f (_): Negate
  • 60 (`): Reverse String
  • 61 (a):
  • 62 (b):
  • 63 (c): Compress int to string
  • 64 (d): For loop
  • 65 (e): Is even? / String length
  • 66 (f):
  • 67 (g):
  • 68 (h):
  • 69 (i): String input
  • 6a (j): Number input
  • 6b (k):
  • 6c (l): Push length of stack
  • 6d (m): Math functions
  • 6e (n): Used in for loops
  • 6f (o): Print object
  • 70 (p): Print object with new line
  • 71 (q): Push input as string/number
  • 72 (r):
  • 73 (s): Split string into char array
  • 74 (t):
  • 75 (u):
  • 76 (v):
  • 77 (w): While Loop
  • 78 (x):
  • 79 (y):
  • 7a (z):
  • 7b ({): Start CodeBlock
  • 7c (|):
  • 7d (}): End CodeBlock
  • 7e (~): Eval