[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-3734":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},3734,"wenyan","wenyan-lang\u002Fwenyan","wenyan-lang","文言文編程語言 A programming language for the ancient Chinese.","https:\u002F\u002Fwy-lang.org\u002F",null,"TypeScript",20250,1103,244,199,0,1,9,3,44.13,"MIT License",false,"master",true,[26,27,28,7],"classical-chinese","esoteric-language","programming-language","2026-06-12 02:00:53","\u003Cimg src=\"screenshots\u002Flogo.png\" align=\"right\" width=\"128\" height=\"128\"\u002F>\n\n# 文言 wenyan-lang\n\n[![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@wenyan\u002Fcore)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@wenyan\u002Fcore)\n[![build](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fworkflow\u002Fstatus\u002Fwenyan-lang\u002Fwenyan\u002FBuild%20%26%20Test)](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Factions)\n[![Netlify Status](https:\u002F\u002Fapi.netlify.com\u002Fapi\u002Fv1\u002Fbadges\u002Fc36d4838-1c8f-4cfe-986e-43e0de6f71a3\u002Fdeploy-status)](https:\u002F\u002Fapp.netlify.com\u002Fsites\u002Fwenyan-lang\u002Fdeploys)\n\n### [wy-lang.org](https:\u002F\u002Fwy-lang.org) | [Wiki](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki) | [The Book](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fbook)\n\nEnglish | [简体中文](.\u002FREADME.zh-Hans.md) | [繁體中文](.\u002FREADME.zh-Hant.md)\n\n文言文編程語言。A programming language for the ancient Chinese. [Try it online.](https:\u002F\u002Fide.wy-lang.org\u002F)\n\n![](screenshots\u002Fscreenshot01.png)\n\n[**CHANGELOG**](.\u002FCHANGELOG.md)\n\n## 序\n\n> 夫[唐](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FEmperor_Yao)、[虞](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FEmperor_Shun)之世，[結繩而足治](https:\u002F\u002Fctext.org\u002Fbook-of-changes\u002Fxi-ci-xia\u002Fzh)，屈指而足算。是時豈料百代之後，計算機械之巧，精於[公輸](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FLu_Ban)之[木鳶](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FLu_Ban#Inventions)，善於[武侯](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FZhuge_Liang)之[流馬](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FWooden_ox)；程式語言之多，繁若[《天官》](https:\u002F\u002Fctext.org\u002Fshiji\u002Ftian-guan-shu\u002Fzh)之星宿，奇勝[《山經》](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FClassic_of_Mountains_and_Seas)之走獸。[鼠](https:\u002F\u002Fgolang.org\u002F)、[蟹](https:\u002F\u002Fwww.rust-lang.org\u002F)、[鑽](https:\u002F\u002Fwww.ruby-lang.org\u002Fen\u002F)、[魚](https:\u002F\u002Ffishshell.com\u002F)，或以速稱。[蛇](https:\u002F\u002Fwww.python.org\u002F)、[象](https:\u002F\u002Fwww.php.net\u002F)、[駱](https:\u002F\u002Fwww.perl.org\u002F)、[犀](http:\u002F\u002Fshop.oreilly.com\u002Fproduct\u002F9780596805531.do)，各爭文采。方知[鬼之所以夜哭，天之所以雨粟](https:\u002F\u002Fctext.org\u002Fhuainanzi\u002Fben-jing-xun\u002Fzh)。然以文言編程者 ，似所未有。此誠非文脈之所以傳，文心之所以保。[嗟予小子](https:\u002F\u002Fzh.wikisource.org\u002Fzh-hant\u002F%E6%A6%AE%E6%9C%A8_(%E9%99%B6%E6%B7%B5%E6%98%8E))，遂有斯志。然則數寸之烏絲猶覆於頭，[萬卷之素書未破於手](https:\u002F\u002Fzh.wikisource.org\u002Fzh-hant\u002F%E5%A5%89%E8%B4%88%E9%9F%8B%E5%B7%A6%E4%B8%9E%E4%B8%88%E4%BA%8C%E5%8D%81%E4%BA%8C%E9%9F%BB)；一身長羈於遠邦，兩耳久曠于[雅言](https:\u002F\u002Fzh.wikipedia.org\u002Fwiki\u002F%E9%9B%85%E9%9F%B3)。然夫文章者吾之所宿好，程式者偶承時人之謬譽。故[希孟](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FWang_Ximeng)不慚年少，[莊生](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FZhuang_Zhou)不望[無涯](https:\u002F\u002Fctext.org\u002Fzhuangzi\u002Fnourishing-the-lord-of-life\u002Fzh)。乃作斯言。誠未能嘔瀝[長吉](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FLi_He)之[心血](https:\u002F\u002Fzh.wikisource.org\u002Fzh-hant\u002F%E6%9D%8E%E8%B3%80%E5%B0%8F%E5%82%B3)，亦庶幾免於[義山](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FLi_Shangyin)之[流沫](https:\u002F\u002Fzh.wikisource.org\u002Fzh-hant\u002F%E9%9F%93%E7%A2%91)。既成之後，復學[干將鑄劍](https:\u002F\u002Fzh.wikisource.org\u002Fwiki\u002F%E9%91%84%E5%8A%8D)而自飼，[越王嚐糞](https:\u002F\u002Fctext.org\u002Fwu-yue-chun-qiu\u002Fyue-wang-gou-jian-wu-nian\u002Fzh)而當先。自謂偶追[《十書》](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FTen_Computational_Canons)之筆意，但恨少[八家](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FEight_Masters_of_the_Tang_and_Song)之淋漓。此[子山](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FYu_Xin)所謂[士衡撫掌而甘心，平子見陋而固宜](https:\u002F\u002Fzh.wikisource.org\u002Fzh-hant\u002F%E5%93%80%E6%B1%9F%E5%8D%97%E8%B3%A6)。然則雖實[覆甕](https:\u002F\u002Fzh.wikisource.org\u002Fzh-hant\u002F%E6%99%89%E6%9B%B8\u002F%E5%8D%B7092#%E5%B7%A6%E6%80%9D)之質，尚存斧正之望；雖乏[呂相](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FL%C3%BC_Buwei)之金，[易字](https:\u002F\u002Fzh.wikisource.org\u002Fzh\u002F%E5%8F%B2%E8%A8%98\u002F%E5%8D%B7085)之渴蓋同。此亦開源之大義，吾輩之所以勉勵也。一笑。\n\n## Helloworld\n\nWenyan:\n\n```\n吾有一數。曰三。名之曰「甲」。\n為是「甲」遍。\n\t吾有一言。曰「「問天地好在。」」。書之。\n云云。\n```\nEquivalent JavaScript:\n\n```JavaScript\nvar n = 3;\nfor (var i = 0; i \u003C n; i++) {\n\tconsole.log(\"問天地好在。\");\n}\n```\n\nOutput:\n\n```\n問天地好在。\n問天地好在。\n問天地好在。\n```\n\nPunctuations and newlines are completely optional (just like they are in Classical Chinese), so the above code is equivalent to:\n\n```\n吾有一數曰三名之曰「甲」為是「甲」遍吾有一言曰「「問天地好在」」書之云云\n```\n\nMore sophisticated examples, such as the Sieve of Eratosthenes, Quicksort, Mandelbrot set, and Tower of Hanoi, can be found in the `.\u002Fexamples` folder.\n\n## Features\n- [Natural Language Programming](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FNatural-language_programming) sharing the grammar of [Classical Chinese](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FClassical_Chinese)\n- Compiles to [JavaScript](https:\u002F\u002Fdeveloper.mozilla.org\u002Fen-US\u002Fdocs\u002FWeb\u002FJavaScript), [Python](https:\u002F\u002Fpython.org), or [Ruby](http:\u002F\u002Fruby-lang.org)\n- [Turing complete](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fblob\u002Fmaster\u002Fexamples\u002Fturing.wy)\n- An [Online IDE](https:\u002F\u002Fide.wy-lang.org\u002F)\n- [Examples](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Ftree\u002Fmaster\u002Fexamples) to get started\n- A packages manager [wyg(文淵閣)](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwyg) and [awesome packages](http:\u002F\u002Fwyg.wy-lang.org\u002F) from the community.\n\n\n## Try it out\n\n### [The Online IDE](https:\u002F\u002Fide.wy-lang.org\u002F)\n\n![](screenshots\u002Fscreenshot02.png)\n\n### Text Editor Plugins\n\n- [Plugin for VSCode](https:\u002F\u002Fgithub.com\u002Fantfu\u002Fwenyan-lang-vscode) by [antfu](https:\u002F\u002Fgithub.com\u002Fantfu)\n- [Plugin for Vim](https:\u002F\u002Fgithub.com\u002Fvoldikss\u002Fvim-wenyan) by [voldikss](https:\u002F\u002Fgithub.com\u002Fvoldikss)\n- [Plugin for Sublime Text](https:\u002F\u002Fgithub.com\u002Fabsop\u002FSublimeWenyan) by [absop](https:\u002F\u002Fgithub.com\u002Fabsop)\n\n### Command Line Compiler\n\nInstall the compiler by\n\n```bash\nnpm install -g @wenyan\u002Fcli\n```\n\nTry run the included examples, e.g.:\n\n```bash\nwenyan examples\u002Fhelloworld.wy\n# will output: 問天地好在。\n```\n\n### [The Decompiler](https:\u002F\u002Fzxch3n.github.io\u002Fwenyanizer\u002F)\n\nYou can now translate JavaScript to wenyan-lang using the [wenyanizer](https:\u002F\u002Fgithub.com\u002Fzxch3n\u002Fwenyanizer) by [zxch3n](https:\u002F\u002Fgithub.com\u002Fzxch3n).\n\n### 3rd Party Compilers\n\n- [JVM compiler](https:\u002F\u002Fgithub.com\u002FMagicLu550\u002Fwenyan-lang_jvm) by [MagicLu550](https:\u002F\u002Fgithub.com\u002FMagicLu550)\n\n\n## Documentation\n\nCheck out our [Wiki pages](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki)\n\n- [Syntax Cheatsheet](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki\u002FSyntax-Cheatsheet)\n- [Standard Library Cheatsheet](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki\u002FStandard-Library-Cheatsheet)\n- [Library Packages](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki\u002FAvailable-Packages)\n- [Contributing](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki\u002FContributing)\n- [API Specifications](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki\u002FCompiler-API)\n- [Browser Runtime](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki\u002FBrowser-Runtime)\n- [Feature Requests](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki\u002FFeature-Requests)\n- [Known Issues](https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fwiki\u002FKnown-Issues)\n\n## Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fwenyan-lang\u002Fwenyan\u002Fgraphs\u002Fcontributors\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Fcontributors.svg?width=890&button=false\" \u002F>\u003C\u002Fa>\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [[Contribute](https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Fcontribute)]\n\n#### Individuals\n\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Findividuals.svg?width=890\">\u003C\u002Fa>\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Fcontribute)]\n\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F0\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F0\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F1\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F1\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F2\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F2\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F3\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F3\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F4\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F4\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F5\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F5\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F6\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F6\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F7\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F7\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F8\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F8\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F9\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fwenyan-lang\u002Forganization\u002F9\u002Favatar.svg\">\u003C\u002Fa>\n","wenyan-lang 是一种用文言文书写的编程语言，旨在让古代汉语与现代编程技术相结合。它支持基本的编程结构如变量定义、条件语句、循环等，并且能够编译成JavaScript代码执行。该语言采用TypeScript开发，具有良好的可读性和趣味性。wenyan-lang 适合用于教育场景，帮助学生在学习编程的同时了解中国传统文化；也适用于对中文编程感兴趣的开发者进行探索和实验。",2,"2026-06-11 02:55:55","top_language"]