1.0.1 • Published 7 years ago
lost-temple v1.0.1
LostTemple
로템 2v2 초보만@@ c언어와 함께

이게 뭐죠?
LostTemple 은 C언어를 파이썬 처럼 쓰게 도와주는 트랜스파일러 입니다.

파이썬을 써본 사람이라면 누구나
위의 사진처럼 다른언어에서도 파이썬처럼 { } 와 ; 없이 코드를 짜고 싶어집니다.
#include <stdio.h>
int main():
    for (int i = 0; i < 10; i++):
        for (int j = 0; j < 10; j++):
            print("%d times %d is %d \n", i, j, i * j)
    return 0LostTemple 을 사용하여 트랜스파일하면 아래와 같이 변합니다! ↓ ↓ ↓ ↓ ↓ ↓
#include <stdio.h>
int main() {
    for (int i = 0; i < 10; i++) {
        for (int j = 0; j < 10; j++) {
            printf("%d times %d is %d \n", i, j, i * j);
        }
    }
    return 0;
}와 같은 형식으로 변환 시킬 수 있습니다.
사용법
설치
npm install lost-temple -g트랜스파일 하기
아래의 3가지 방법으로 hello.cat 을 hello.c로 트랜스파일 할 수 있습니다.
lost hello.cat
lost hello.cat -o hello.c
lost hello.cat --output hello.c