Commercial

From Esolang
Jump to navigation Jump to search

This language is based off, as the title implies, TV commercials. This language was created by User:Poolala. It's probably Turing complete, but there's no formal proof.

Operations

Operation Description
Variable now value dollar(s) off! Declare an int, or change its value (You can use a variable as a value)
"Value" - Satisfied Consumer of Variable Declare a string, or change its value
Variable now sold at your local grocery store! Input int (can be used for declaration)
Variable now sold at your local drug store! Input string (can be used for declaration)
Variable: made by the makers of Variable2 Add variables and store the result in Variable. If Variable is a string, the number will be stored as a unicode character. If Variable2 is a string, its first character's unicode number will be used. (Same for subtraction)
Variable has shown much more positive feedback than other products, like Variable2 Subtract variables and store the result in Variable
Variable has been selling out worldwide! Output variable
Customers are jumping for joy for Variable! If variable is 0 (int), jump backwards to either the last jump or the start of the program, else if 1 jump either to the next jump or the end of the program
HeadOn - Apply directly to the forehead Halt execution

Comments are simply lines that aren't an operation.

Programs

Hello, world!

"Hello, world!" - Satisfied Consumer of Hello
Hello has been selling out worldwide!

Cat program

Jump now 2 dollars off!
Customers are jumping for joy for Jump!
Customers are jumping for joy for Jump!
Jump now 0 dollars off!
Input now sold at your local drug store!
Input has been selling out worldwide!
Customers are jumping for joy for Jump!

Implementations

Python implementation by User:TuxCrafting (Note: does not implement loops correctly)