Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tea

A simple interpreted programming language.

Built for learning, experimenting, and having fun.

License GitHub Stars

Note

A full rewrite for tea is planned, I am planning on rewriting it in C language

Project

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.


Features

Current features include:

  • Variables
  • Comments
  • print() function

Planned features:

  • String Conecatenation
  • Variable Scopes
  • If Statements
  • For Loops
  • While Loops
  • Functions

Quick Start

Create a main.tea file.

print("Hello, Tea!")

Run it using the interpreter:

python3 src/main.py main.tea

Output:

Hello, Tea!

Installation

Clone the repository:

git clone https://github.com/nothingfr87/tea.git
cd tea

Run any Tea source file:

python3 src/main.py main.tea

You can also look at the examples provided in the examples/ directory.


Example

print("Hello, Tea!")

Project Goals

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

Supported Platforms

Currently supported:

  • Linux
  • macOS
  • Windows (via Python)

Since Tea is written in Python, it should run anywhere Python 3 is available.


Contributing

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.


License

This project is licensed under the GPLv3 License.


If you enjoy Tea, consider giving the repository a ⭐.

About

Tea, a simple interpreted programming langauge

Resources

Stars

3 stars

Watchers

0 watching

Forks

Contributors

Languages