# Teal_private **Repository Path**: xuld/Teal_private ## Basic Information - **Project Name**: Teal_private - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2014-04-04 - **Last Updated**: 2022-04-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 欢迎进入 Teal 语言 ================ Teal 语言的愿景是: 1. 方便:一分钟写出一个窗口程序,兼容全平台。 2. 简洁:无复杂概念,风格统一易懂,两小时掌握。 3. 熟悉:开源、C 风格语法,80%语法同 Java 和 C#。 ### 项目背景 开发新语言真的有必要吗? 1. Teal 可用于开发软件、脚本。未来还可开发大型游戏、无线应用和网站。有 C++ 的风格和功能,但没 C++ 的复杂。 2. Teal 语言从下载 SDK 到执行代码,只需 1 分钟。 3. 我们将致力于开发一个不从属于任何公司的、没有商业利益的第一个国产编程语言。 ### 实例代码 #### hello world import System; void main(){ Console.writeLine("hello world"); } #### 实现删除 C 盘所有 .tmp 文件(LOG.tmp 除外) import System.IO; void main(){ // 方法 1 for(var file in Dir.getFiles("C:", "*.tmp")) { if(Path.getFileNameWithoutExt(file) != "LOG") { File.delete(file); } } // 方法 2 Dir.getFiles("C:", "*.tmp") .filter(file -> Path.getFileNameWithoutExt(file) == "LOG") .each(file -> File.delete(file)); } #### 创建一个桌面编辑器软件 import System.Gui; void main() { var win = new Window(); var box = new TextBox(); win.add(box); var btn = new Button(); btn.click += (e) -> { MessageBox.show(box.text); }; win.add(btn); Application.run(win); } ### 联系方式 QQ 273208811 [更多资料](http://git.oschina.net/xuld/Teal/wikis/pages)