repositorypackage
0.0.0-20241210072153-715181f1cdc9
Repository: https://github.com/kkkunny/sim.git
Documentation: pkg.go.dev
# README
Sim
Sim是一门简洁的、强类型的编译型语言
Features:
-
语法简单,关键字尽可能的少,向C与Go语言看齐
-
面向对象,Go+Rust
-
自动内存管理
TODO List
-
基础语法(基础运算 / 流程控制 / 函数 / 变量)
-
基本类型(int / uint / float / bool / reference / function / array / tuple / struct / union)
-
函数/变量导出 && 函数/变量链接
-
类型定义 && 类型别名
-
方法定义与调用
-
泛型(泛型函数 / 泛型结构体 / 泛型方法)
-
trait
-
运算符重载
-
泛型约束
-
defer
-
异常处理
-
垃圾回收
-
闭包
Dependences
-
linux
-
llvm(version==18)
-
golang
-
c lib
Hello World
compiler/examples/hello_world.sim
func main(){
debug("Hello World")
}
> make run TEST_FILE=$PWD/compiler/examples/hello_world.sim
Hello World