Skip to content

Romeore/Cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 About

Cat is a general-purpose programming language, designed for humanity and cats.

image

🚀 Getting Started

The langauge offers various instructions:

Instruction Description
MEOW Increment current memory block value by 1
meow Decrement current memory block value by 1
Meow Moves current memory position back one block
meoW Moves current memory position forward one block
MeoW Print value of current memory block
mEow If no current value in the copy register, copy current memory block value. If there is a value in the copy register, and current memory block doesn't have value, then paste that value into the current memory block and clear the copy register
MeOw Start of condition
mEoW End of condition
MEow Start of loop
meOW End of loop

Conditions

When the MeOw instruction is executed, the program checks if current memory location value is greater than copy register value. if its greater, execute the instructions between MeOw and mEoW instructions.

Loops

When the MEow instruction is executed, the program iterates over a sequence of instructions between MEow and meOW instructions, and the value stored in the timesToExecute register is decremented until it reaches the value zero.

Showcase

Prints "Hello World!" to the screen:

MEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOW
MeoWmEowmeoWmEowMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOW
MEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMeoWmEowmeoWmEowMEOWMEOWMEOWMEOWMEOWMEOWMEOWMeoWMeoWMEOWMEOW
MEOWMeoWMeowMeowmEowMeowmEowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeow
meowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowMeoW
meoWmEowMeowMeowmEowMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMEOWMeoWmeoWmeoWmeoW
meoWMeoWmEowmeoWmEowMEOWMEOWMEOWMeoWmEowmeoWmEowmeowmeowmeowmeowmeowmeowMeoWmeowmeowmeowmeowmeow
meowmeowmeowMeoWMeowMeowMeowMeowMeowmEowMeowMeowmEowMEOWMeoW

Finds the largest element in the given array:

MEOWMEOWMEOWMEOWmEowmeoWmEowmeowmEowmeoWmEowMEOWMEOWMEOWmEowMeowMeowMEowMeOwmEowmEoWmeoWmeOWmeoW
meoWmEowMeoW

About

The Cat Programming Language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages