Skip to content

A simple programming language for cats made to understand language design [WIP]

Notifications You must be signed in to change notification settings

ppmpreetham/cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

CAT(WIP)

Cat is a simple, Lisp-like programming language written in python for cats to code.

Key Features

  • Lisp-inspired Syntax: CAT uses parentheses to group expressions and operators, similar to Lisp, making it ideal for recursive processing and simple expression parsing.
  • Customizable Operators: CAT supports basic arithmetic, comparison, and logical operators, such as +, -, *, /, and, or, and more.
  • Control Structures: Support for conditional statements like if, then, and else, allowing for flexible logic flows.
  • Custom Commands: Introduces whimsical commands like meow for output, making coding more fun and engaging.
  • Simple Evaluation Model: The language uses a recursive evaluation function to process and evaluate expressions.

Syntax Overview

CAT expressions are enclosed in parentheses, where the first item is the function or operator, followed by the arguments.

Example Expressions

(meow "Hello, World!")
(+ 1 2)  # Addition
(* 3 4)  # Multiplication
(if (> 5 3) (meow "Yes") (meow "No"))

About

A simple programming language for cats made to understand language design [WIP]

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages