Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.
/ CASC-JIT Public archive

a handwritten compiler which can compile English or Manderin or even mixed codes!

License

Notifications You must be signed in to change notification settings

CASC-Lang/CASC-JIT

Repository files navigation


Unit Test Publish


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.

Example Code
程式碼範例


for i = 0 to 100 {
    print(i)
}

從 甲 = 零 到 一百 {
    print(甲)
}

Preserved Word Conversion Table
保留字對照表


Operators 運算子

Operator Traditional Chinese Simplified Chinese Note
+ 加 / 正 TODO
- 減 / 負 TODO
/ TODO
* TODO
(
)
&& TODO
|| TODO
! TODO
== TODO
!= 不是 TODO
= TODO
> 大於 TODO
>= 大等於 TODO
< 小於 TODO
<= 小等於 TODO

Keyword 關鍵字

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