https://github.com/ppmpreetham/cat
A simple programming language for cats made to understand language design [WIP]
https://github.com/ppmpreetham/cat
compiler lisp-like programming-language
Last synced: 10 months ago
JSON representation
A simple programming language for cats made to understand language design [WIP]
- Host: GitHub
- URL: https://github.com/ppmpreetham/cat
- Owner: ppmpreetham
- Created: 2024-03-25T20:00:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T09:35:50.000Z (over 1 year ago)
- Last Synced: 2025-02-01T15:46:03.431Z (12 months ago)
- Topics: compiler, lisp-like, programming-language
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```lisp
(meow "Hello, World!")
(+ 1 2) # Addition
(* 3 4) # Multiplication
(if (> 5 3) (meow "Yes") (meow "No"))
```