-
Notifications
You must be signed in to change notification settings - Fork 0
Web Playground Guide
MinJeong Hong edited this page Nov 24, 2025
·
1 revision
웹 플레이그라운드에서 MINT를 시작하는 방법
- 웹 플레이그라운드 접속
- 터미널 아이콘을 더블클릭하여 터미널 창 열기
- 명령어 입력 후 Enter로 실행
Tip
help 명령어로 사용 가능한 모든 명령어를 확인할 수 있습니다.
Important
웹 플레이그라운드에서 mint 명령어를 사용할 때는
문자열 내부의 따옴표를 백슬래시(\)로 이스케이프해야 합니다.
# 올바른 예시
mint "sparkle \"hello, mint!\""
# 여러 줄 코드
mint "plant x = 10\nbreeze (x > 5) softly {\n sparkle x\n}"# 잘못된 예시 - 따옴표가 닫혀버림
mint "sparkle "hello, mint!""
# 잘못된 예시 - 따옴표 이스케이프 없음
mint "sparkle 'hello, mint!'"| 문자 | 이스케이프 | 설명 |
|---|---|---|
" |
\" |
문자열 내부의 큰따옴표 |
' |
\' |
문자열 내부의 작은따옴표 |
\n |
\\n |
줄바꿈 (문자열 내부) |
\t |
\\t |
탭 (문자열 내부) |
Warning
문자열 내부에 따옴표가 있을 때는 반드시 백슬래시로 이스케이프하세요! 그렇지 않으면 파서 에러가 발생합니다.
MINT 코드를 실행합니다.
사용법
mint "코드"예시
mint "sparkle \"hello, mint!\""
mint "plant x = 10\nsparkle x"주의사항
- 코드는 큰따옴표로 감싸야 합니다
- 문자열 내부의 따옴표는
\"로 이스케이프하세요 - 여러 줄 코드는
\n으로 구분하세요
부드러운 메시지를 속삭입니다.
사용법
whisper "메시지"예시
whisper "peace and calm"
whisper "코드는 자연처럼 흐른다"랜덤으로 MINT 예제를 보여줍니다.
사용법
exampleMINT 언어에 대한 소개를 보여줍니다.
사용법
about사용 가능한 모든 명령어를 보여줍니다.
사용법:
help터미널 화면을 지웁니다.
사용법
clear또는 단축키: Ctrl + L
텍스트를 그대로 출력합니다.
사용법
echo 텍스트예시
echo hello world
echo "여러 단어도 가능합니다"현재 날짜와 시간을 표시합니다.
사용법
date이전에 입력한 명령어 목록을 보여줍니다.
사용법
historyTip
-
Arrow Up키로 이전 명령어를 불러올 수 있습니다 -
Arrow Down키로 다음 명령어로 이동할 수 있습니다
MINT 버전 정보를 표시합니다.
사용법:
version파일 내용을 출력합니다.
사용법
cat 파일명예시
cat hello.mint
cat examples/conditional.mint디렉토리의 파일 목록을 보여줍니다.
사용법
ls [디렉토리명]예시
ls
ls examplesmint "sparkle \"hello, mint!\""출력
hello, mint!
mint "plant name = \"mint whisperer\"\nplant age = 1\nsparkle name\nsparkle age"출력:
mint whisperer
1
mint "plant mood = \"sunny\"\nbreeze (mood == \"sunny\") softly {\n sparkle \"time to bask in the sunlight\"\n}"출력:
time to bask in the sunlight
mint "plant count = 0\nbloom (count < 3) softly {\n sparkle count\n plant count = count + 1\n}"출력:
0
1
2
mint "petal greet(name) {\n sparkle \"hello, \" + name\n gift \"🌼\"\n}\nsparkle greet(\"mint whisperer\")"출력:
hello, mint whisperer
🌼
mint "plant day = \"day \"\nplant count = 0\nsparkle day + count"출력:
day 0
mint "plant i = 0\nbloom (i < 2) softly {\n plant j = 0\n bloom (j < 2) softly {\n sparkle i + \"-\" + j\n plant j = j + 1\n }\n plant i = i + 1\n}"출력:
0-0
0-1
1-0
1-1
mint "plant x = 10\nbreeze (x > 5) softly {\n breeze (x < 20) softly {\n sparkle \"between 5 and 20\"\n }\n}"출력:
between 5 and 20
mint "plant mood = \"sunny\"\nplant count = 0\nbreeze (mood == \"sunny\") softly {\n bloom (count < 3) softly {\n sparkle \"day \" + count\n plant count = count + 1\n }\n}"출력:
day 0
day 1
day 2
mint "petal add(a, b) {\n gift a + b\n}\npetal multiply(a, b) {\n gift a * b\n}\nsparkle add(5, 3)\nsparkle multiply(4, 2)"출력:
8
8
mint "plant width = 10\nplant height = 5\nplant area = width * height\nplant perimeter = (width + height) * 2\nsparkle \"area: \" + area\nsparkle \"perimeter: \" + perimeter"출력:
area: 50
perimeter: 30
mint "plant limit = 5\nplant current = 0\nbloom (current < limit) softly {\n breeze (current == 0) softly {\n sparkle \"starting...\"\n }\n sparkle \"count: \" + current\n plant current = current + 1\n}\nsparkle \"finished!\""출력:
starting...
count: 0
count: 1
count: 2
count: 3
count: 4
finished!
mint "plant age = 20\nbreeze (age >= 18) softly {\n sparkle \"adult\"\n}\nbreeze (age < 18) softly {\n sparkle \"minor\"\n}"출력:
adult
mint "plant name = \"mint\"\nplant version = 1\nplant year = 2025\nsparkle name + \" v\" + version + \" released in \" + year"출력:
mint v1 released in 2025
웹 플레이그라운드에서 MINT를 충분히 체험했다면,
-
CLI 환경으로 전환
- 로컬에 설치하여 파일로 코드를 작성하고 실행해보세요!
- Getting Started 가이드 참고
-
더 많은 예제 탐색
-
example명령어로 랜덤 예제를 확인하세요 - 프로젝트의
examples/폴더에 또 다른 예제가 있습니다!
-
-
문법 가이드 학습
- 언어 가이드에서 상세한 문법을 확인하세요
-
에러 이해하기
- 에러 이해하기에서 에러 메시지 해석 방법을 배우세요
| 단축키/명령어 | 설명 |
|---|---|
Arrow Up |
이전 명령어 불러오기 |
Arrow Down |
다음 명령어로 이동 |
history |
전체 히스토리 확인 |
-
clear또는Ctrl + L로 화면을 즉시 정리하세요
- 여러 줄 코드는
\n으로 구분하세요 - 문자열 내부의 따옴표는 반드시
\"로 이스케이프하세요
-
help명령어로 언제든지 사용 가능한 명령어를 확인할 수 있습니다
마지막 업데이트: 2025-11-24