wenyan-lang / wenyan

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

[ANNOUNCEMENT] Language Spec & New IDE #515

Open LingDong- opened 4 years ago

LingDong- commented 4 years ago

Language Spec

Issue #1 is finally resolved! wenyan-lang now has a (relatively complete) specification written in ANTLR (thanks @jiangzoi) 🎉. This also means that parsers in other langauges can potentially be generated automatically (in fact, @jiangzoi is now working on C++ compiler). Check it out here http://wy-lang.org/spec or plain text here ./documentation/wenyan.g4.

The HTML version has clickable anchors and in-page links. Handy for navigation, and links to specific statement/grammar can be posted like so: https://wy-lang.org/spec#assign_statement. Hope you find it useful!

New IDE: /ide2

Our online IDE now has a shiny new look (and a ton of new features). Please check it out here: https://wy-lang.org/ide2. New features include:

Snip20200110_5 Snip20200110_7

Please do check it out and let me know what you think! If it works well we'll replace the old one as the default IDE. I'll also do some dogfooding myself and make improvements. Thanks!

P.S. Currently the code for it (./ide2.html) is a pile of HTML-CSS-JS mixture all dumped in a 500-line soup. Some cleaning up needs to be done before it can be shown to the faint of heart :P

antfu commented 4 years ago

Actually I like how blunt the dark mode hack is! XD

antfu commented 4 years ago

A few ideas

Just listing the ideas here. I can also try to implement this when I got some time.

cuixiping commented 4 years ago

I think that the IDE should to be another repository.