Highlighter

From Esolang
Jump to navigation Jump to search

Highlighter is a programming language that is inspired by highlighters. It was created by User:Hammy.

Commands

The actual commands don't matter, only the highlighting.

Highlight color Type Combination Operation
Red Primary Red Push 0 to the stack.
Yellow Primary Yellow Push 1 to the stack.
Blue Primary Blue Mathematical operations (depends on what it's mixed with). On it's own, pop a value from the stack and jump to the command with the index of that value.
White/None1 Primary (at least, User:Hammy thinks so...) White NOP. Just a modifier for other colors.
Black Primary Black Halt. In real life, it would be represented by scribbling over a letter.
Pink Secondary Red + White Output the top value of the stack as an ASCII character.
Green Secondary Blue + Yellow Subtraction.
Orange Secondary Red + Yellow If the top value of the stack is 0, push 1. Otherwise, push 0.
Purple Secondary Red + Blue Add.
Olive Tertiary Blue + Yellow + Black I don't know yet.
Brown Tertiary Red + Blue + Yellow I don't know yet.