Skip to content

Latest commit

 

History

History
46 lines (23 loc) · 587 Bytes

operators.md

File metadata and controls

46 lines (23 loc) · 587 Bytes

Operators

Simple Operators

+ plus

- minus

/ divide

* multiply

[ enter stack

] exit stack

( move towards the first value pushed to the stack

) move towards the last value pushed to the stack

. output as number

, output as char

? inputs a char

``` pops top element

++ plus one

-- minus one

! not symbol, relies on if value is truthy

>, <, <=, >= regular compare operators

= equals

Pointers

& creates a pointer if followed with a name

* pushes the value at the pointer to the current stack

^ jumps to the pointer