CASC is a handwritten compiler which can compile English or Manderin or even mixed codes!
Currently it's under developement by ChAoS_UnItY.
This project is inspired by Minsk.
for i = 0 to 100 {
print(i)
}
從 甲 = 零 到 一百 {
print(甲)
}
Operator | Traditional Chinese | Simplified Chinese | Note |
---|---|---|---|
+ | 加 / 正 | TODO | |
- | 減 / 負 | TODO | |
/ | 除 | TODO | |
* | 乘 | TODO | |
( | |||
) | |||
&& | 且 | TODO | |
|| | 或 | TODO | |
! | 反 | TODO | |
== | 是 | TODO | |
!= | 不是 | TODO | |
= | 賦 | TODO | |
> | 大於 | TODO | |
>= | 大等於 | TODO | |
< | 小於 | TODO | |
<= | 小等於 | TODO |
Keyword | Traditional Chinese | Simplified Chinese | Note |
---|---|---|---|
true | 真 | TODO | |
false | 假 | TODO | |
let | 讓 | TODO | |
var | 變數 / 變值 | TODO | |
val | 終值 | TODO | |
if | 如果 / 若 | TODO | |
else | 否則 | TODO | |
while | 當 | TODO | |
for...to | 從...到 | TODO | |
do...while | 持續..當 | TODO | |
func | 函式 | TODO | |
import | 導入 | TODO |