Products/ylang

ylang 0.0.1 - 모던하면서 레트로한 프로그래밍 언어

swJman 2025. 11. 5. 02:00

컴파일러면서 인터프리터 언어인 ylang...
드디어 첫 릴리즈를 했다.

다운로드는 아래 링크. 

https://github.com/jman-9/ylang/releases/tag/v0.0.1

 

Release ylang 0.0.1 — it runs · jman-9/ylang

A lightweight, C-like, retro-styled programming language. ylang implements a complete compilation pipeline — from scanning to bytecode generation — and execution on its own virtual machine, named y...

github.com

 

릴리즈는 윈도/리눅스 버전이 준비되어 있으며, 실질적으로는 플랫폼 무관하게 빌드 가능하다.

0.0.1에 걸맞게 많이 부족한 수준으로 구현 가능하다. 간단한 예제 코드를 보여 드리면 

x = 10;
y = 20;
println("sum = " + (x + y));

for(i=1; i<6; i+=1) {
    if(i == 3) {
        println("halfway!");
        continue;
    }
    println(i);
}

fn square(n) {
    return n * n;
}

println("square(5) = " + square(5));

실행 결과는

 

그래도 뿌듯하다.