Uppercase=Lowercase

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Uppercase=Lowercase is an esolang by User:ChuckEsoteric08.

Specification

When you input or output lowercase ASCII character it would be treated as uppercase character instead. *x would return value of cell .

Cells are 1-indexed

Instruction Description
lbl x Declare label x
inc x y Increment cell x by y
dec x y z If cell x is less than y goto label z. Else decrement cell x by y
inp x Set cell x to user input
out x Output cell x as ASCII character.

Examples

Cat program

An infinitely repeating cat program shall be demonstrated:

lbl start
inp 1
out 1
dec 1 256 start

Truth-machine

This program implements a truth-machine:

inp 1
inc 2 *1

dec 1 48 terminate_on_error
dec 1 1  end_if_zero

lbl repeat_if_one
out 2
dec 2 50 repeat_if_one

lbl end_if_zero
out 2

lbl terminate_on_error

Hello, world!

This program outputs the message “HELLO, WORLD!” using indirect references and the conditional goto facility:

inc  1 72
inc  2 69
inc  3 76
inc  4 76
inc  5 79
inc  6 44
inc  7 32
inc  8 87
inc  9 79
inc 10 82
inc 11 76
inc 12 68
inc 13 33

inc 14 1
inc 15 12

lbl print
out *14
inc  14  1
dec  15  1 end
dec  15 15 print

lbl end

Interpreter

  • Common Lisp implementation of the Uppercase=Lowercase programming language.