wenyan-lang / wenyan

文言文編程語言 A programming language for the ancient Chinese.

Home Page:https://wy-lang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

希望能增加JS/python/c程序编译成文言文的功能

Tairraos opened this issue · comments

希望能增加JS/python/c程序编译成文言文的功能

确实,如果直接用文言写还是有点累,如果能直接从JS代码转译就很方便了

先从c到LLVM,然后而emscripten到js。js应该能比较容易的转换成wenyan
https://github.com/emscripten-core/emscripten

Reference to: #67

antlr4 了解一下...

There is a project wenyanizer by @zxch3n allowing you to compile JS to wenyan now.