@9tech.solutions/thailang
v0.1.0
Published
ภาษาโปรแกรมมิงไทย — Thai-first programming language. Compiles to JS; ships as a Node-only CLI (no Rust toolchain needed at install time).
Maintainers
Readme
thailang
ภาษาโปรแกรมมิงไทย — Thai-first programming language.
npm i -g thailang
# or
npx thailang run hello.thAlso available as the scoped alias @9tech.solutions/thailang (same
package, same version, different registry surface for org discovery):
npm i -g @9tech.solutions/thailangWhat you get
thailang run <file.th>— type-check, compile to JS, execute via Nodethailang emit-js <file.th>— print the emitted JavaScript to stdoutthailang check <file.th>— type-check only (exit 1 on errors)thaialias —thai run hello.thworks the same
No Rust toolchain required. The compiler ships as a bundled WASM module built from the Thailang project.
Quick taste
Save as hello.th:
ให้ ชื่อ = "ชาวโลก";
พิมพ์("สวัสดี " + ชื่อ);Run it:
$ thailang run hello.th
สวัสดี ชาวโลกRequirements
- Node.js ≥ 18
- That's it.
Links
- Website: https://thailang.dev
- Docs: https://thailang.dev/docs
- Source: https://github.com/9Tech-Solutions/thailang
- Language spec: https://github.com/9Tech-Solutions/thailang/blob/main/docs/SPEC.md
License
MIT © Thailang Contributors
