Skip to content
项目

antfu/wenyan-lang-vscode

在 GitHub 查看

关于

文言 Wenyan Lang for VS Code

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

logo

Visual Studio Marketplace Version Visual Studio Marketplace Downloads Visual Studio Marketplace Installs Marketplace Trending Monthly
GitHub last commit GitHub issues GitHub stars

for 文言 Wenyan Lang, a programming language for the ancient Chinese.

Compile & Execute

View the compiled Javascript side by side or Direct execute it.

The compiler is shipped with this extension, no installation required.

Punctuations Replacement

Punctuations will be automatically replaced to fit the language.

You will get the result immediately, the delay is added for demostraction purpose

Snippets

You can write Wenyan quickly by using snippets:

Here are some common snippets. For full list, check out this file.

Triggers Snippet
if 若⋯者。⋯也。
else 若非。⋯也。
for 為是⋯遍。⋯云云。
break 乃止。
while 恆為是。⋯云云。
function 吾有一術。名之曰「⋯」。是術曰。
int 吾有一數。曰⋯。名之曰「⋯」。
str 吾有一言。曰「「⋯」」。名之曰「⋯」。
bool 吾有一爻。曰陰。名之曰「⋯」。
array 吾有一列。名之曰「⋯」。
object 吾有一物。名之曰「⋯」。

Wenyanizer by @zxch3n

From v0.10.0, we shipped support for compiling Javascript back to Wenyan. Thanks for @zxch3n's great work!

Configurations

Fields Default Note
wenyan-lang.executablePath built-in Filepath to executable wenyan.js
wenyan-lang.targetLanguage javascript Target language that compiles to. Can be javascript, python or ruby
wenyan-lang.runOnSave true Execute the code on save
wenyan-lang.romanizeMethod null Romanize identifiers. The method can be pinyin, baxter or unicode

ToDo

  • Syntax Highlight
  • Snippets
  • Dynamic Snippets
  • Execute
  • Compile
  • Compile to Python
  • Rendering
  • Code Completion
  • Language Server

License

MIT License © 2019-2020 Anthony Fu

探索相关项目

加载中…