# Silk **Repository Path**: jetgu/Silk ## Basic Information - **Project Name**: Silk - **Description**: Silk语言 - 国产开源编程语言 Silk语言是一门完全独立自主开发的跨平台动态类型编程语言,绝非“木兰”等套壳语言。 Silk简单易学,30分钟即可掌握全部语法,让你像Python一样简单地写C/C++风格代码。 Silk体积小巧,只需600K的执行文件即可运行程序,且没有任何第三方依赖。 Silk功能强大,可作为脚本嵌入任何文本,网页中生成动态内容,可轻易嵌入其它工程中作为脚本语言。 - **Primary Language**: C++ - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-02-09 - **Last Updated**: 2022-02-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # The Silk Language Silk is a lightweight cross-platform programming language which supports procedural programming and object-oriented programming. - It's simple, you can learn the entire syntax in 30 minutes. - It's small, the compiled binary is only 600K without any dependencies. - It's powerful, it can be integrated into any Text/HTML as server-side language. It's easy to extend Silk with libraries written in other languages. Silk example: ``` /* The function to caculate fibonacci sequence parameter: n return: fibonacci sequence */ func Fibonacci(n) { if (n == 0) return 0; else if (n <= 2) return 1; else return Fibonacci(n-1)+Fibonacci(n-2);//Recursion } main() { //print the top 20 fibonacci sequence for(i=0;i<20;i++) print(Fibonacci(i)); } ``` ## Building Silk - **Windows** platform: Download source code at GitHub, and extract it into any folder, open the solution file Silk.sln with Microsoft Visual Studio 2013 or higher to build the Silk program. - **Linux** platform: Download source code at GitHub, and extract it into any folder, please ensure you have installed gcc and g++, and run build.sh to build the Silk program. - **MacOS** platform: Download source code at GitHub, and extract it into any folder, please ensure you have installed XCode, and open the project file Silk.xcodeproj to build the Silk program. This is the GitHub repository of Silk source code. Please visit Silk website [Silklang.org](https://silklang.org/) for details.