Tea
Programming is like drinking tea.
Install / Use
/learn @tealang/TeaREADME
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
- Install PHP 8.1
- Add the directory where the PHP execution file is located to the environment variable.
- Clone the Tea repository.
git clone https://github.com/tealang/tea.git
Use
- Switch to the work directory and execute the compile command:
tea/bin/teac tea/tests/examples
- Create a new package, such as:
php tea/bin/teac --init myproject/hello
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
