A simple interpreted programming language.
Built for learning, experimenting, and having fun.
Note
A full rewrite for tea is planned, I am planning on rewriting it in C language
Tea is a small interpreted programming language written as a learning project. Its goal is to stay simple and easy to understand while gradually growing with new language features.
Whether you're curious about how interpreters work or just want a tiny language to experiment with, Tea aims to provide a clean starting point.
Current features include:
- Variables
- Comments
print()function
Planned features:
- String Conecatenation
- Variable Scopes
- If Statements
- For Loops
- While Loops
- Functions
Create a main.tea file.
print("Hello, Tea!")Run it using the interpreter:
python3 src/main.py main.teaOutput:
Hello, Tea!
Clone the repository:
git clone https://github.com/nothingfr87/tea.git
cd teaRun any Tea source file:
python3 src/main.py main.teaYou can also look at the examples provided in the examples/ directory.
print("Hello, Tea!")Tea is intentionally minimal.
The project focuses on:
- Keeping the language simple
- Making the interpreter easy to read
- Gradually implementing common language features
- Learning compiler/interpreter development
Currently supported:
- Linux
- macOS
- Windows (via Python)
Since Tea is written in Python, it should run anywhere Python 3 is available.
Contributions, bug reports, and feature suggestions are always welcome.
If you encounter a bug or have an idea for improving Tea, feel free to open an issue or submit a pull request.
This project is licensed under the GPLv3 License.
If you enjoy Tea, consider giving the repository a ⭐.
