Sim

command module
v0.0.0-...-ab8d200 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 7 Imported by: 0

README

Sim

Sim是一门简洁的、强类型的编译型语言

Features:

  • 语法简单,关键字尽可能的少,向C与Go语言看齐

  • 面向对象,Go+Rust

  • 自动内存管理

TODO List

  • 基础语法(基础运算 / 流程控制 / 函数 / 变量)

  • 基本类型(int / uint / float / bool / reference / function / array / tuple / struct / union)

  • 函数/变量导出 && 函数/变量链接

  • 类型定义 && 类型别名

  • 方法定义与调用

  • 泛型(泛型函数 / 泛型结构体 / 泛型方法)

  • trait

  • 运算符重载

  • 泛型约束

  • 异常处理

  • 垃圾回收

  • 闭包

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL