Skip to content

Cynthia-cnn/CynLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cynlang Programing Js

Contoh Program

File: examples/halo.cyn

biarkan x = benar
biarkan y = salah

jika x dan bukan y
    tulis "Logika jalan"
selesai

fungsi faktorial(n)
    jika n == 0
        kembalikan 1
    selesai
    kembalikan n * faktorial(n - 1)
selesai

tulis tutorial(5)

Output

true
false
Logika jalan
120

Instalasi

Clone repo:

git clone https://github.com/Cynthia-cnn/CynLang.git
cd CynLang
npm install -g .

Jalankan .cyn:

cyn examples/halo.cyn

About

Experiment

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors