Topaz Language
A modern programming language specifically designed for the Core Syntax Kernel.
Two Implementations, One Philosophy
The Topaz language philosophy is realized through two distinct implementations, each with a different goal. While the core syntax is the same, they serve different purposes.
💎 Topaz Native
The high-performance, systems-level implementation. It's the ultimate goal for AI/Robotics and is under long-term development.
🚀 Topaz Script
The practical, TypeScript-based implementation available now. It is optimized for scripting, automation, and learning.
Core Language Features (Based on Topaz Script)
Definitions: $
($ IDENTIFIER EXPRESSION)
Examples:
($ pi 3.14159)
($ sum (+ pi 10))
Operations
(OPERATOR ARG1 ARG2 ...)
Examples:
(+ 10 20 30)
(> 10 5)
Conditionals: IF
(IF CONDITION THEN ELSE)
Examples:
(IF (> temperature 20)
"It's warm"
"It's cool")
Functions: defn & λ
(defn name (params) body)
(λ (params) body)
(λ (params) body)
Examples:
(defn square (n) (* n n))
((λ (n) (+ n 5)) 10)
Data Structures
(list item1...) & (make-map :k v...)
Examples:
($ nums (list 1 2 3))
($ user (make-map :name "Alice"))
Module System
(MODULE ...)
(IMPORT "path" as alias)
(IMPORT "path" as alias)
Examples:
(IMPORT "./math" as m)
(m:square 5)
This was a brief overview. For detailed guides, tutorials, and to start coding now, please visit the official Topaz Script documentation.
View Topaz Script Docs →