Skip to content
/ Sim Public

The Sim programming language, a strongly typed, compiled programming language with a goal of simplicity. Sim是一门简洁的、强类型的编译型语言。

License

Notifications You must be signed in to change notification settings

kkkunny/Sim

Repository files navigation

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

About

The Sim programming language, a strongly typed, compiled programming language with a goal of simplicity. Sim是一门简洁的、强类型的编译型语言。

Topics

Resources

License