Skip to content

hansenshen2233/tea

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tea

Tea is a programming language that emphasizes coding conventions, a simple strong type system, and a modular system. It supports both object-oriented and functional programming paradigms while providing a concise syntax.

The strong type system in Tea ensures that variables and expressions have explicit types, and type checking is done statically, which enhances code reliability and maintainability.

The modular system allows code to be organized and managed in modules, each with its own scope and interface. This promotes code reusability, scalability, and facilitates teamwork and code organization.

By supporting both object-oriented and functional programming paradigms, Tea offers different programming styles and tools to cater to diverse programming needs. Object-oriented programming emphasizes encapsulation, inheritance, and polymorphism, while functional programming emphasizes purity, immutability, and the use of higher-order functions. This enables developers to choose the appropriate programming style based on specific requirements and preferences.

Tea's concise syntax aims to provide a language that is easy to read and write, reducing cognitive load for developers. By maintaining consistency with the syntax style and conventions of common programming languages, Tea reduces the learning curve and makes it easier for developers to get started.

The slogan of the Tea language is: "Programming is like drinking tea."

Install

  1. Install PHP 8.1
  2. Add the directory where the PHP execution file is located to the environment variable.
  3. Clone the Tea repository. git clone https://github.com/tealang/tea.git

Use

  1. Switch to the work directory and execute the compile command:
tea/bin/teac tea/tests/examples
  1. Create a new package, such as:
php tea/bin/teac --init myproject/hello

About

Programming is like drinking tea.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 95.3%
  • Tea 4.7%