-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[target.x86_64-unknown-linux-musl] | ||
linker = "rust-lld" | ||
rustflags = ["-C", "linker-flavor=ld.lld"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/target | ||
/spec | ||
/samples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Key Lang | ||
|
||
轻快, 省心, 做最精致的编程语言. | ||
|
||
1. 消去了引用的存在, 初学者也能轻松上手 | ||
2. 更短的循环, `for!`代替`while(true)` | ||
3. 更方便的迭代器, `for i:20`即可循环20次 | ||
4. 更强大的`match`, 原生支持数字范围匹配 | ||
5. 有趣的`extern`, 用key代码直接操作动态链接库! | ||
6. 区分整数和浮点数, 再也不用`floor`遍地跑 | ||
7. 原生类型支持, 动态类型检查, 大量减少判断量 | ||
8. 像`js`一样用`{}`字面量创建哈希表 | ||
9. 原生类型`Buf`让你轻松操作内存 | ||
|
||
更多特性请见[Key语言官网](https://docs.subkey.top). | ||
|
||
在我17岁时, 就在只有标准库的情况下完成了整个工程, 并独自创建了[Key语言官网](https://docs.subkey.top)和[在线尝试Key语言](https://play.subkey.top/)两个网站. 这一切, 或许都只是我的成人礼罢了. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
|
||
//mod D:\code\rs\tst\target\debug\tstlib.dll> m; | ||
|
||
let s = 99; | ||
|
||
log(0b10101010) | ||
let a = 5; | ||
log(`a的值是:{a+5}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters