wenyan-lang / wenyan

文言文編程語言 A programming language for the ancient Chinese.
https://wy-lang.org/
MIT License
19.56k stars 1.1k forks source link

C language support #366

Open kernelbin opened 4 years ago

kernelbin commented 4 years ago

maybe it's hard to write a wenyan-lang2C translator(due to the strong type and many other reason) but I'm still looking forward for it.

To translate wenyan-lang to a strong type language like C, maybe the grammar have to be changed, and strictly formatted?

So I have an idea, why don't create a variant language of wenyan-lang and call it "Eight Part Essay"(八股)?

lymslive commented 4 years ago

I think it's more meaningful to develop a high performance compiler with C/C++, not convert to C. Any how, the ultimate goal is executable, not any midterm term script. Of course, both are hard.