Hi Rustaceans,
I just published Han v0.2.1 to crates.io:
cargo install han-lang
Han is an experimental programming language where Korean is the primary syntax of the toolchain: keywords, type names, built-ins, logical operators, error-handling forms, examples, and diagnostics are written in
Korean.
The compiler/tooling is written in Rust. The installed CLI is hgl.
A tiny example:
함수 더하기(a: 정수, b: 정수) -> 정수 {
반환 a + b
}
출력(더하기(2, 3))
Run it with:
hgl interpret hello.hgl
What is included
- tree-walking interpreter: hgl interpret <file.hgl>
- native build path through generated LLVM IR + clang: hgl build <file.hgl>
- type checker: hgl check <file.hgl>
- REPL: hgl repl
- LSP server: hgl lsp
- VS Code extension in the repository
- browser playground
- examples covering basics, structs, arrays, pattern matching, file I/O, JSON, HTTP, regex, etc.
Why I built it
This is partly a compiler/tooling project and partly a language experiment.
Korean is spoken by many people, but programming languages overwhelmingly treat English as the default syntax layer. Han asks what a compiler/toolchain feels like when a non-English language is treated as first-
class syntax rather than only comments, strings, or identifiers.
It is also interesting from an AI/tokenization angle: Korean code is rare in public corpora, so LLM tokenizers often represent it inefficiently. More real Korean-language code examples may help future tools
understand non-English programming contexts better.
Current status
Han is experimental. It is not intended as a production language today.
The current release is meant for trying the language, reading the implementation, experimenting with the CLI/LSP, and giving feedback.
One practical note: Python interop is now opt-in. The default cargo install han-lang build is Python-free so the installed hgl binary does not require a local Python dynamic library. If you want the Python built-
ins, install with:
cargo install han-lang --features python
Links
- Crate: crates.io: Rust Package Registry
- GitHub: GitHub - xodn348/han: A compiled programming language with Korean keywords, written in Rust · GitHub
- Docs: Introduction - Han (한) Programming Language
- Playground: Han (한) Playground
If the project looks interesting, starring the GitHub repo would help with visibility and make it easier to collect feedback from more Rust developers.
Thanks!