# wenyan-lang/wenyan

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/wenyan-lang-wenyan).**

20,198 stars · 1,100 forks · TypeScript · mit

## Links

- GitHub: https://github.com/wenyan-lang/wenyan
- Homepage: https://wy-lang.org/
- awesome-repositories: https://awesome-repositories.com/repository/wenyan-lang-wenyan.md

## Topics

`classical-chinese` `esoteric-language` `programming-language` `wenyan-lang`

## Description

Wenyan is an esoteric programming language that enables the composition of functional logic using the grammar and vocabulary of classical Chinese literature. It functions as a source-to-source compiler, translating literary scripts into standard high-level programming languages such as JavaScript, Python, and Ruby to facilitate execution across diverse computing environments.

The project distinguishes itself by bridging the gap between ancient linguistic structures and modern computational tasks. It utilizes a specialized transpilation process that maps classical grammatical particles and vocabulary into an abstract syntax tree, allowing for the creation of executable programs that maintain the aesthetic and structural conventions of traditional writing.

Beyond its core compilation capabilities, the project includes a web-based editor that renders code and text in a traditional book layout. It supports modular development through a dependency resolution system that links external libraries, and it provides a browser-based environment for the immediate execution and visualization of literary scripts.

## Tags

### Programming Languages & Runtimes

- [Programming Languages](https://awesome-repositories.com/f/programming-languages-runtimes/programming-language-varieties/programming-languages.md) — A programming language that compiles classical Chinese literature into executable code.
- [Source Code Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers.md) — A source-to-source compiler that converts classical Chinese scripts into standard high-level languages.
- [Classical Language Programming](https://awesome-repositories.com/f/programming-languages-runtimes/classical-language-programming.md) — Provides a programming paradigm based on classical Chinese literature.
- [Esoteric Programming Languages](https://awesome-repositories.com/f/programming-languages-runtimes/programming-language-varieties/programming-languages/language-specific-resources/esoteric-programming-languages.md) — An esoteric programming language bridging ancient literary grammar and modern functional logic.
- [Transpilers](https://awesome-repositories.com/f/programming-languages-runtimes/compiler-interpreter-internals/transpilers.md) — Converts literary source code into common programming languages for cross-platform execution. ([source](https://wy-lang.org/))
- [Literary Programming Environments](https://awesome-repositories.com/f/programming-languages-runtimes/literary-programming-environments.md) — Enables composing functional logic using the grammar and vocabulary of classical literature. ([source](https://wy-lang.org/))
- [Multi-Target Compilers](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/multi-target-compilers.md) — Generates human-readable source code in multiple high-level languages from an internal AST.

### Development Tools & Productivity

- [Code Editors](https://awesome-repositories.com/f/development-tools-productivity/code-editors.md) — A web-based editor for writing and rendering code in traditional book layouts.
- [Browser-Based Execution Environments](https://awesome-repositories.com/f/development-tools-productivity/browser-based-execution-environments.md) — Provides a browser-based runtime environment for executing and visualizing literary scripts.
- [Script Execution Engines](https://awesome-repositories.com/f/development-tools-productivity/script-execution-engines.md) — Executes compiled literary scripts within a web browser environment. ([source](https://wy-lang.org/ide.html))

### Artificial Intelligence & ML

- [Literary Compilers](https://awesome-repositories.com/f/artificial-intelligence-ml/program-compilers/literary-compilers.md) — Compiles classical Chinese grammar into executable functional logic. ([source](https://wy-lang.org/ide.html))

### Software Engineering & Architecture

- [Grammar-Based Parsers](https://awesome-repositories.com/f/software-engineering-architecture/trees/syntax-tree-construction/grammar-based-parsers.md) — Translates classical linguistic structures into abstract syntax trees for further processing.

### Content Management & Publishing

- [Document Rendering](https://awesome-repositories.com/f/content-management-publishing/content-processing-transformation/document-processing-conversion/document-processing/rendering-visualization/document-rendering.md) — Renders code and text into a traditional book layout for improved readability. ([source](https://wy-lang.org/ide.html))
